/* Senqu Projects — design system
   Tokens mirror brand-tokens.json. Radius 0 everywhere; 2px rules; flush left. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;  /* no swap reflow = no CLS; preload keeps it present */
}
:root {
  --ink: #201E1D;
  --ground: #F3F2F2;
  --paper: #FFFFFF;
  --grey: #6B6660;
  --accent: #F26522;   /* the Senqu is the Orange River — accent follows the mark */
  --sand: #B8A27A;     /* reserved secondary from the original palette */
  --rule: 2px solid var(--ink);
  --wrap: 1280px;
  --gut: 24px;
}
* { margin: 0; padding: 0; box-sizing: border-box; border-radius: 0 !important; }
html { scroll-behavior: smooth; }
/* nothing may make the page pannable sideways: clip, not a scroll container */
html, body { overflow-x: hidden; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
body {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink);
  color: #fff; padding: 10px 18px; z-index: 99;
}
.skip:focus { left: 0; }

/* type */
h1, .h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.04;
}
h2, .h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
.label {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase;
}
.grey { color: var(--grey); }
p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 44em; }
p { max-width: 44em; }

/* layout */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
section { padding-block: clamp(48px, 7vw, 88px); }
section.tight { padding-block: clamp(32px, 4vw, 48px); }
.rule-t { border-top: var(--rule); }
.stack > * + * { margin-top: 18px; }

/* modular cells with visible 2px dividers */
.cells {
  display: grid; gap: 2px; background: var(--ink);
  border-top: var(--rule); border-bottom: var(--rule);
}
.cells > * { background: var(--paper); padding: 30px 24px 34px; min-width: 0; }
.cells--2 { grid-template-columns: repeat(2, 1fr); }
.cells--3 { grid-template-columns: repeat(3, 1fr); }
.cells--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .cells--3, .cells--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .cells--2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cells--2, .cells--3, .cells--4 { grid-template-columns: 1fr; }
}

/* buttons — flat, flush-left labels */
.btn {
  display: inline-block; background: var(--accent); color: var(--ink);
  padding: 15px 30px 14px; border: none; cursor: pointer;
  font: 500 0.8125rem/1 "Archivo", sans-serif; letter-spacing: 0.15em;
  text-transform: uppercase; text-decoration: none; text-align: left;
  transition: background 150ms, color 150ms;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--line {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--line:hover { background: var(--ink); color: #fff; }
.on-ink .btn--line { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.on-ink .btn--line:hover { background: #fff; color: var(--ink); }

/* header */
header.site {
  background: var(--paper); border-bottom: var(--rule);
  position: sticky; top: 0; z-index: 50;
}
.site-bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 24px;
}
.site-bar .logo img { height: 40px; width: auto; }
nav.main { display: flex; gap: 30px; }
nav.main a {
  text-decoration: none; padding: 6px 0 4px;
  font: 500 0.8125rem/1 "Archivo", sans-serif;
  letter-spacing: 0.15em; text-transform: uppercase;
  border-bottom: 2px solid transparent; transition: border-color 150ms, color 150ms;
}
nav.main a:hover { border-color: var(--accent); color: var(--ink); }
nav.main a[aria-current="page"] { border-color: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink);
  padding: 9px 12px; cursor: pointer; font: 500 0.75rem/1 "Archivo", sans-serif;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink);
}
@media (max-width: 820px) {
  .site-bar .logo img { height: 32px; }
  .nav-toggle { display: block; }
  nav.main {
    display: none; position: fixed; inset: 72px 0 0 0; background: var(--ink);
    flex-direction: column; gap: 0; padding: 24px var(--gut); z-index: 49;
  }
  nav.main.open { display: flex; }
  nav.main a { color: #fff; padding: 18px 0; border-bottom: 1px solid #3a3735; font-size: 1rem; }
  nav.main a[aria-current="page"] { color: var(--accent); border-bottom-color: #3a3735; }
}

/* hero */
.hero { background: var(--ink); color: #fff; }
.hero .label { color: var(--accent); }
.hero h1 { color: #fff; max-width: 12em; margin: 18px 0 22px; }
.hero p { color: #D9D6D2; }
.hero .btn { margin-top: 30px; }
.hero-inner { padding-block: clamp(64px, 10vw, 128px); }

/* river rule — the Senqu meander, once per page */
.river { background: var(--paper); line-height: 0; border-bottom: var(--rule); }
.river svg { width: 100%; height: 16px; display: block; }

/* photo placeholder slots (client photos pending) */
.ph {
  position: relative; background: var(--ground);
  background-image:
    linear-gradient(to top right, transparent calc(50% - 1px), #DAD7D3 calc(50% - 1px), #DAD7D3 calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to bottom right, transparent calc(50% - 1px), #DAD7D3 calc(50% - 1px), #DAD7D3 calc(50% + 1px), transparent calc(50% + 1px));
  outline: 1px solid #DAD7D3; outline-offset: -1px;
}
.ph > span {
  position: absolute; left: 12px; bottom: 10px;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--grey); background: var(--ground);
  padding: 3px 6px;
}
.ph--43 { aspect-ratio: 4 / 3; }
.ph--32 { aspect-ratio: 3 / 2; }
.ph--11 { aspect-ratio: 1 / 1; }
img.bw { filter: grayscale(1); }
.ph--fill { height: 100%; min-height: 320px; }
@media (max-width: 820px) { .ph--fill { min-height: 210px; } }

/* service / project cells */
.cell-num { color: var(--accent); font-weight: 700; font-size: 0.9375rem; }
.cell h3 { margin: 10px 0 10px; }
.cell p { font-size: 0.9375rem; color: var(--grey); }
.cell .more {
  display: inline-block; margin-top: 16px; font: 500 0.75rem/1 "Archivo", sans-serif;
  letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none;
  border-bottom: 2px solid var(--accent); padding-bottom: 4px;
}
.meta { font-size: 0.8125rem; color: var(--grey); letter-spacing: 0.04em; }
.tag {
  display: inline-block; font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--grey); color: var(--grey); padding: 3px 8px;
}

/* ink band */
.band { background: var(--ink); color: #fff; }
.band .label { color: var(--accent); }
.band a { color: #fff; }
.band-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.band-grid > * { min-width: 0; }
.band-grid p { overflow-wrap: anywhere; }
@media (max-width: 820px) { .band-grid { grid-template-columns: 1fr; } }
.band img.mark { height: 64px; width: auto; }
.band .big { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; }

/* deliverables lists */
ul.delivers { list-style: none; margin-top: 14px; }
ul.delivers li { padding: 9px 0 9px 22px; border-top: 1px solid #DAD7D3; position: relative; font-size: 0.9375rem; }
ul.delivers li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 2px; background: var(--accent); }

/* tables */
table.plain { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
table.plain th, table.plain td { text-align: left; padding: 12px 16px 12px 0; border-top: 1px solid #DAD7D3; vertical-align: top; }
table.plain th { font-weight: 700; white-space: nowrap; }
table.plain td { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  table.plain tr { display: block; padding: 10px 0; border-top: 1px solid #DAD7D3; }
  table.plain th, table.plain td { display: block; border: 0; padding: 2px 0; }
}

/* forms */
form.contact { display: grid; gap: 20px; }
form.contact label { display: block; font: 500 0.75rem/1 "Archivo", sans-serif; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 8px; }
form.contact input, form.contact select, form.contact textarea {
  width: 100%; border: 2px solid var(--ink); background: var(--paper);
  padding: 13px 14px; font: 400 1rem/1.4 "Archivo", sans-serif; color: var(--ink);
}
form.contact input:focus, form.contact select:focus, form.contact textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
form.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border: 2px solid var(--ink); background: var(--paper); padding: 16px 20px; margin-bottom: 28px; font-weight: 500; }
.notice.ok { border-color: var(--accent); }

/* filter row */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filters button {
  background: var(--paper); border: 2px solid var(--ink); color: var(--ink);
  font: 500 0.75rem/1 "Archivo", sans-serif; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 10px 16px; cursor: pointer;
  transition: background 150ms, color 150ms;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filters button:hover { background: var(--accent); border-color: var(--ink); color: var(--ink); }

/* map */
.map-embed { border: var(--rule); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(1) contrast(1.05); }

/* footer */
footer.site { background: var(--paper); border-top: var(--rule); }
.foot-grid {
  display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 40px;
  padding-block: 56px;
}
.foot-grid > * { min-width: 0; }
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; padding-block: 44px; }
  .foot-grid .mark { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
}
footer.site .mark img { height: 72px; width: auto; }
footer.site h4 { font: 500 0.75rem/1 "Archivo", sans-serif; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px; }
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 10px; font-size: 0.9375rem; overflow-wrap: anywhere; }
footer.site a { text-decoration: none; color: var(--grey); }
footer.site a:hover { color: var(--accent); }
.foot-legal {
  border-top: 1px solid #DAD7D3; padding-block: 18px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.8125rem; color: var(--grey);
}

/* full-bleed photo hero (Home) */
.hero--photo { position: relative; overflow: hidden; contain: paint; isolation: isolate; }
.hero--photo picture { position: absolute; inset: 0; display: block; }
.hero--photo .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  animation: hero-kb 30s ease-in-out infinite alternate;
}
@keyframes hero-kb {
  from { transform: scale(1.02); }
  to   { transform: scale(1.13) translate(-1.6%, -1.2%); }
}
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(12,18,28,.93) 0%, rgba(12,18,28,.72) 46%, rgba(12,18,28,.30) 100%);
}
.hero--photo .hero-inner { position: relative; z-index: 2; }
@media (max-width: 700px) {
  .hero--photo .hero-inner { padding-block: clamp(84px, 22vw, 128px); }
}
.hero--photo p { color: #C9D2DC; }
@media (max-width: 820px) {
  .hero--photo::before { background: linear-gradient(180deg, rgba(12,18,28,.93) 0%, rgba(12,18,28,.64) 100%); }
}
