/* ==========================================================================
   SAKHA — shared design system
   Layout concept: an editorial folio. Oversized Cormorant headlines set
   against generous ivory space, asymmetric two-column spreads, and small
   Bricolage "folio" labels that index each section like the company profile.
   Single brand look (warm ivory) by design; every colour is set explicitly.
   ========================================================================== */
:root {
  --ivory: #F7F5F2;
  --ivory-deep: #EFEBE6;
  --stone: #D1CCC7;
  --terracotta: #BA6132;
  --terracotta-deep: #9E4F26;
  --brown: #834C29;
  --ink: #3B2417;          /* deep warm brown for dark bands */
  --ink-soft: #5A3A26;
  --on-ink: #F7F5F2;
  --muted: #8E6B55;        /* secondary text on ivory */
  --line: rgba(131, 76, 41, .18);
  --line-strong: rgba(131, 76, 41, .38);
  --focus: #BA6132;

  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --body: "Bricolage Grotesque", "Helvetica Neue", Arial, system-ui, sans-serif;

  --step--1: clamp(.8rem, .78rem + .1vw, .86rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + .4vw, 1.45rem);
  --step-2: clamp(1.4rem, 1.25rem + .8vw, 2rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.8vw, 3rem);
  --step-4: clamp(2rem, 1.5rem + 3vw, 4.6rem);
  --step-5: clamp(2.4rem, 1.6rem + 5vw, 7.5rem);

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--brown);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
body::before { /* safe-area band above the sticky header */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ivory);
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.02; margin: 0; color: var(--brown); text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0; }
em, .it { font-style: italic; }
::selection { background: var(--terracotta); color: var(--ivory); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 64px); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 900px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.section { padding-block: clamp(52px, 8vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.band-ink { background: var(--ink); color: var(--on-ink); }
.band-ink h1, .band-ink h2, .band-ink h3 { color: var(--on-ink); }
.band-stone { background: var(--ivory-deep); }

/* ---------- Folio labels ---------- */
.folio { display: flex; align-items: center; gap: 12px; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.folio::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.band-ink .folio { color: #D9B9A3; }
.folio--plain::before { display: none; }

.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.4rem); line-height: 1.5; max-width: 38ch; color: var(--brown); }
.band-ink .lede { color: #EADFD5; }
.body-copy { max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--terracotta);
  background: var(--terracotta); color: #FFF9F4; font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--brown); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--brown); border-color: var(--brown); color: var(--ivory); }
.band-ink .btn--ghost { color: var(--on-ink); border-color: rgba(247,245,242,.4); }
.band-ink .btn--ghost:hover { background: var(--on-ink); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: progress; }

.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--terracotta-deep);
  text-decoration: none; padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link .arr { transition: transform .3s var(--ease); }
.link:hover .arr { transform: translateX(4px); }
.band-ink .link { color: #F0B892; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(247, 245, 242, .92); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; padding: 8px 0; }
.brand img { width: 92px; height: auto; }
.nav { display: none; }
.nav ul { display: flex; gap: clamp(14px, 2vw, 30px); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: .95rem; padding: 8px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--terracotta); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--terracotta-deep); }
.header-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 2px 8px 10px; background: none; border: 0; cursor: pointer; font-weight: 600; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.menu-btn .bars { width: 18px; height: 8px; position: relative; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn .bars::before { top: 0; } .menu-btn .bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .bars::before { top: 3px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { top: 3px; transform: rotate(-45deg); }

.mobile-nav { gap: 22px !important; position: fixed; inset: calc(56px + env(safe-area-inset-top, 0px)) 0 0; z-index: 49; background: var(--ivory); padding: 24px var(--gutter-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gutter); display: flex; flex-direction: column; gap: 28px; overflow-y: auto; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav a.m-link { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; text-decoration: none; font-family: var(--display); font-size: 1.45rem; line-height: 1.15; }
.mobile-nav a.m-link[aria-current="page"] { color: var(--terracotta); font-style: italic; }
.mobile-nav .m-num { font-family: var(--body); font-size: .8rem; color: var(--muted); letter-spacing: .1em; }
@media (min-width: 1000px) {
  .nav, .header-cta { display: flex; }
  .menu-btn, .mobile-nav { display: none !important; }
  .header-cta { min-height: 38px; padding: 6px 16px; font-size: .84rem; }
  .nav a { font-size: .88rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E9DCD1; font-size: .92rem; padding-top: clamp(40px, 6vw, 72px); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.site-footer a { color: #F7F5F2; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.footer-statement { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.1; color: var(--on-ink); max-width: 18ch; }
.footer-statement em { color: #F0B892; }
.footer-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.footer-cols li { min-width: 0; }
@media (max-width: 859px) { .footer-cols > div:nth-child(2) { grid-column: 1 / -1; order: -1; } }
.footer-cols h4 { font-family: var(--body); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: #C7A58D; font-weight: 500; margin-bottom: 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-cols a { text-decoration: none; display: inline-block; padding-block: 4px; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-final { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(247,245,242,.16); font-size: .9rem; letter-spacing: .12em; color: #E9DCD1; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr; align-items: end; }
  .footer-cols { grid-template-columns: repeat(3, auto); justify-content: end; column-gap: clamp(32px, 4vw, 56px); }
}

/* ---------- Media frames ---------- */
.frame { position: relative; overflow: hidden; background: var(--stone); border-radius: var(--radius); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame--4x5 { aspect-ratio: 4 / 5; max-width: 100%; }
.frame--3x4 { aspect-ratio: 3 / 4; max-width: 100%; }
.frame--16x10 { aspect-ratio: 16 / 10; max-width: 100%; }
.frame--1x1 { aspect-ratio: 1 / 1; max-width: 100%; }
.frame--top img { object-position: top center; }
.frame-cap { font-size: var(--step--1); color: var(--muted); margin-top: 10px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: clamp(48px, 7vw, 96px); padding-right: clamp(48px, 7vw, 96px); }
.marquee-group img { height: clamp(44px, 6vw, 64px); width: auto; max-width: none; object-fit: contain; }
.marquee-group img.short { height: clamp(26px, 3.6vw, 38px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal (content visible at rest; motion only enhances) ---------- */
.js .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.pre { opacity: .001; transform: translateY(18px); }

/* ---------- Pills / chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brown); white-space: nowrap; }
.chip--accent { border-color: var(--terracotta); color: var(--terracotta-deep); }
.chip--solid { background: var(--brown); color: var(--ivory); border-color: var(--brown); }
.chip--warn { border-color: #B98A2E; color: #7A5A12; background: #F6EBD3; }

/* ---------- Forms (shared) ---------- */
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: .88rem; font-weight: 600; }
.field .hint { font-size: .82rem; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; min-height: 50px; padding: 12px 16px; background: #FFFDFB; border: 1px solid var(--line-strong); border-radius: 12px;
  font-size: 1rem; color: var(--brown); transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(186, 97, 50, .18); }
.field.has-error .input, .field.has-error .textarea { border-color: #A2381B; }
.err { color: #A2381B; font-size: .84rem; min-height: 0; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Page heads ---------- */
.page-head { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-title { font-size: var(--step-5); line-height: .92; letter-spacing: -.02em; }
.page-title em { color: var(--terracotta); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: 100%; justify-content: center; }
  .marquee-track .marquee-group[aria-hidden="true"] { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .js .reveal.pre { opacity: 1; transform: none; }
}

/* ---------- Shared small buttons + closing CTA panel (same on every page) ---------- */
.bt { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; font-size: .84rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; border: 1px solid var(--brown); color: var(--brown); background: transparent; cursor: pointer; transition: color .35s var(--ease), transform .2s var(--ease), border-color .35s; }
.bt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brown); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.bt:hover::before, .bt:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.bt:hover, .bt:focus-visible { color: var(--ivory); }
.bt:active { transform: scale(.96); }
.bt--fill { background: var(--terracotta); border-color: var(--terracotta); color: #FFF9F4; }
.bt--fill::before { background: var(--ink); }
.bt--fill:hover { border-color: var(--ink); }
.amb { background: var(--ivory); padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.amb-in { display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 56px); background: radial-gradient(90% 70% at 50% 100%, #E9DED2 0%, var(--ivory-deep) 70%); border: 1px solid var(--line); border-radius: clamp(20px, 3vw, 32px); max-width: 980px; margin-inline: auto; overflow: hidden; }
.amb h2 { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1.02; max-width: 16ch; }
.amb h2 em { display: block; color: var(--terracotta); }

/* Hide the Netlify badge / toolbar on Drop-deployed sites */
netlify-drawer,netlify-badge,netlify-hud,[id^="netlify" i],[class*="netlify" i],[data-netlify-badge],
iframe[src*="netlify" i],iframe[title*="netlify" i],a[href*="netlify.com"][style*="fixed"]{display:none!important;visibility:hidden!important;pointer-events:none!important}

/* ---------- Header: compact Start button after Menu (phones and tablets) ---------- */
.bar-end { display: flex; align-items: center; gap: 10px; }
.hdr-start { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 13px; border-radius: 999px; background: var(--terracotta); color: #FFF9F4; font-size: .76rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: background .3s; }
.hdr-start:hover, .hdr-start:focus-visible { background: var(--ink); }
@media (min-width: 1000px) { .hdr-start { display: none; } }

/* ---------- Footer: compact, essentials only ---------- */
.site-footer { padding-top: clamp(22px, 3vw, 32px) !important; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; font-size: .84rem; }
.foot { display: grid; gap: 14px 28px; align-items: center; grid-template-columns: 1fr; }
.foot-brand img { width: 74px; height: auto; filter: brightness(0) invert(.94) sepia(.12); }
.foot-nav, .foot-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-nav a, .foot-contact a { color: #F7F5F2; text-decoration: none; padding-block: 4px; }
.foot-nav a:hover, .foot-contact a:hover { color: #F0B892; }
.foot-contact a:first-child { font-weight: 600; }
.site-footer .footer-final { margin: 0; padding-top: 12px; border-top: 1px solid rgba(247,245,242,.16); font-size: .78rem; letter-spacing: .14em; grid-column: 1 / -1; }
@media (min-width: 860px) { .foot { grid-template-columns: auto 1fr auto; } .foot-nav { justify-content: center; } }

/* ---------- Client logos floating (shared by every closing call to action) ---------- */
.amb-logos { position: relative; width: min(100%, 560px); height: 300px; margin-top: 18px; }
.amb-logo { position: absolute; left: var(--x); top: var(--y); width: clamp(58px, 16vw, 92px); padding: 6px 8px; border-radius: 12px; background: rgba(255,253,251,.85); border: 1px solid rgba(131,76,41,.1); box-shadow: 0 14px 30px -18px rgba(59,36,23,.4); transform: translate(-50%, -50%) rotate(var(--r)); animation: hover-float var(--t) ease-in-out var(--d) infinite alternate; transition: box-shadow .3s; }
.amb-logo img { width: 100%; height: 30px; object-fit: contain; }
.amb-logo:hover { box-shadow: 0 18px 36px -16px rgba(59,36,23,.5); animation-play-state: paused; }
@keyframes hover-float { 0% { transform: translate(-50%, -50%) rotate(var(--r)) translateY(0); } 100% { transform: translate(-50%, -50%) rotate(calc(var(--r) * -1)) translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .amb-logo { animation: none !important; } }

/* Official creative partners: two floating badges under every "join the collective" call */
.partners { display: grid; justify-items: center; gap: 10px; margin-top: 4px; }
.partners-k { display: inline-flex; align-items: center; gap: 8px; font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.partners-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 4px rgba(186,97,50,.18); }
.partners-row { display: flex; justify-content: center; align-items: center; gap: clamp(18px, 4vw, 34px); padding: 2px 0 6px; }
.partner { display: grid; place-items: center; width: clamp(56px, 13vw, 76px); height: 38px; padding: 4px 6px; background: transparent; animation: pt-float 3.8s ease-in-out var(--d) infinite alternate; }
.partner img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; image-rendering: -webkit-optimize-contrast; }
.partner:hover { animation-play-state: paused; }
@keyframes pt-float { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.on-dark .partners-k { color: #E9CDB9; }
@media (prefers-reduced-motion: reduce) { .partner { animation: none; } }
