/* ============================================================
   AKA — Interior Design & Contracting
   Palette sampled from the brand monogram.
   ============================================================ */

:root {
  --canvas:   #DCDAD0;   /* warm pale greige — the logo's ground */
  --canvas-2: #D3D0C5;   /* a half-tone deeper for panels */
  --taupe:    #A79C90;   /* the monogram taupe */
  --taupe-d:  #8E8478;   /* deeper taupe for hovers */
  --mid:      #C7C2B7;   /* hairlines, captions */
  --ink:      #2C2A26;   /* warm near-black, body text */
  --ink-soft: #56514a;

  --serif: "Forum", "Times New Roman", serif;
  --sans:  "Jost", system-ui, sans-serif;

  /* page side padding — widens to clear notches on landscape phones */
  --gut: max(clamp(20px, 5vw, 96px), env(safe-area-inset-left), env(safe-area-inset-right));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --rule: 1px solid color-mix(in srgb, var(--taupe) 45%, transparent);
  --radius: 16px;   /* soft corner radius for image frames */
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 78px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--canvas); }

a { color: inherit; text-decoration: none; }

/* ---------- monogram mask (recolorable) ---------- */
.mark {
  display: inline-block;
  background-color: var(--taupe);
  -webkit-mask: url("assets/aka-mark.png") no-repeat center / contain;
          mask: url("assets/aka-mark.png") no-repeat center / contain;
  aspect-ratio: 627 / 762;
}
.mark--sm     { width: 22px; }
.mark--footer { width: 46px; background-color: var(--taupe); }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--taupe); z-index: 1000;
  transition: width 0.1s linear;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gut);
  mix-blend-mode: multiply;
  transition: padding 0.5s var(--ease);
}
.nav.is-scrolled { padding-top: 14px; padding-bottom: 14px; }
.nav.is-scrolled::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--rule);
  mix-blend-mode: normal;
}

.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__word {
  /* matches the logo wordmark — geometric sans (Jost), wide tracking, caps */
  font-family: "Jost", var(--sans); font-size: 21px; font-weight: 400;
  letter-spacing: 0.34em; padding-left: 0.34em;
}

.nav__links { display: flex; gap: clamp(18px, 3vw, 46px); }
.nav__links a {
  position: relative;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.4s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--ink); transition: width 0.45s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
/* scroll-spy: current section */
.nav__links a.is-current { color: var(--ink); }
.nav__links a.is-current::after { width: 100%; }
.lnk-idx { font-size: 9px; color: var(--taupe); margin-right: 3px; vertical-align: 2px; }

/* icons */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.13em; fill: currentColor; }

.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__lang {
  display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px;
  border-radius: 999px; border: var(--rule); color: var(--ink-soft);
  font-size: 15px; line-height: 1;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav__lang:hover { background: var(--ink); color: var(--canvas); border-color: var(--ink); }

.nav__social { display: flex; align-items: center; gap: 9px; }
.nav__icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 999px; border: var(--rule); color: var(--ink-soft);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav__icon .ic { width: 16px; height: 16px; }
.nav__icon:hover { background: var(--ink); color: var(--canvas); border-color: var(--ink); }

/* ---------- mobile menu (hidden on desktop) ---------- */
.nav__toggle { display: none; }
.menu { display: none; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__right { display: none; }

  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px;
    width: 44px; height: 44px; padding: 0; margin: -6px -6px -6px 0;
    background: none; border: 0; cursor: pointer; z-index: 1001;
  }
  .nav__toggle span {
    display: block; width: 24px; height: 1.5px; background: var(--ink);
    transition: transform 0.45s var(--ease), opacity 0.3s var(--ease), width 0.45s var(--ease);
  }
  body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); width: 26px; }
  body.menu-open .nav__toggle span:nth-child(2) { transform: translateY(-7.5px) rotate(-45deg); width: 26px; }

  .menu {
    display: flex; position: fixed; inset: 0; z-index: 800;
    flex-direction: column; justify-content: center;
    padding: 96px var(--gut) max(40px, env(safe-area-inset-bottom));
    background: var(--canvas);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s;
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .menu { opacity: 1; visibility: visible; transform: none; }

  .menu__links { display: flex; flex-direction: column; }
  .menu__links a {
    font-family: var(--serif); font-weight: 400; color: var(--ink);
    font-size: clamp(36px, 13vw, 60px); line-height: 1.18;
    display: flex; align-items: baseline; gap: 16px; padding: 6px 0;
    opacity: 0; transform: translateY(14px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .menu__links .lnk-idx { font-family: var(--sans); font-size: 12px; color: var(--taupe); vertical-align: middle; }
  body.menu-open .menu__links a { opacity: 1; transform: none; }
  body.menu-open .menu__links a:nth-child(1) { transition-delay: 0.10s; }
  body.menu-open .menu__links a:nth-child(2) { transition-delay: 0.16s; }
  body.menu-open .menu__links a:nth-child(3) { transition-delay: 0.22s; }
  body.menu-open .menu__links a:nth-child(4) { transition-delay: 0.28s; }

  .menu__foot {
    margin-top: clamp(40px, 8vh, 80px); padding-top: 26px; border-top: var(--rule);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
  }
  .menu__lang {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
  }
  .menu__social { display: flex; gap: 10px; }
  .menu__social a {
    display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 999px; border: var(--rule); color: var(--ink-soft);
    transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  }
  .menu__social a .ic { width: 18px; height: 18px; }
  .menu__social a:active { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gut) clamp(36px, 6vh, 70px);
  overflow: hidden;
}
/* oversized monogram watermark */
.mark--hero {
  position: absolute;
  top: 50%; right: clamp(-40px, 2vw, 80px); transform: translateY(-48%);
  width: clamp(220px, 34vw, 520px);
  background-color: color-mix(in srgb, var(--taupe) 40%, var(--canvas));
}
.js .mark--hero {
  opacity: 0;
  animation: markIn 1.6s var(--ease) 0.2s forwards;
}
@keyframes markIn {
  from { opacity: 0; transform: translateY(-44%) scale(1.04); }
  to   { opacity: 1; transform: translateY(-48%) scale(1); }
}
/* phones: lift the watermark into the empty upper space + fade it,
   so it reads as a soft ghost behind the headline rather than crowding it */
@media (max-width: 760px) {
  /* spread the hero content across the full height: kicker under the logo,
     scroll cue at the bottom line */
  /* spread content from under the nav to the bottom line; the headline grows
     to fill the middle and distributes its lines, so it scales with any screen */
  /* hero = inner (kicker + headline) at top, foot (studio line + scroll) at bottom */
  .hero { justify-content: space-between; padding-top: 76px; padding-bottom: clamp(22px, 4vh, 42px); padding-left: 14px; padding-right: 14px; }
  .hero__inner { width: 100%; }
  .hero__title { display: flex; flex-direction: column; gap: 0.46em; font-size: clamp(48px, 20.5vw, 128px); line-height: 1.04; }
  .kicker { margin-bottom: clamp(22px, 4.5vh, 46px); white-space: nowrap; letter-spacing: 0.04em; word-spacing: -0.12em; font-size: clamp(8px, 2.35vw, 11px); }
  .hero__foot { margin-top: 0; }
  /* logo sits a bit lower, behind the headline */
  .mark--hero { width: min(58vw, 280px); top: 62%; }
}

.hero__inner { position: relative; z-index: 2; max-width: 1100px; }

.kicker {
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: clamp(20px, 4vh, 40px);
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(43px, 9.2vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.015em;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title em { font-style: italic; color: var(--taupe-d); }

.hero__foot {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
  margin-top: clamp(30px, 5vh, 56px);
}
.hero__foot p {
  max-width: 38ch; font-size: clamp(14px, 1.3vw, 16px);
  color: var(--ink-soft); line-height: 1.6;
}

.scroll-cue { display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.scroll-cue__line { width: 54px; height: 1px; background: var(--taupe); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateX(-100%);} 55%,100% { transform: translateX(100%);} }

.hero__est {
  position: absolute; top: 50%; left: clamp(2px, 1.2vw, 24px);
  transform: translateY(-50%) rotate(180deg);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--taupe-d);
  writing-mode: vertical-rl;
}
/* hide where the side gutter is too narrow to clear the title */
@media (max-width: 1000px){ .hero__est { display: none; } }

/* ============================================================
   SHARED — section labels
   ============================================================ */
.section-label {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-soft); display: flex; align-items: center; gap: 12px;
}
.section-label span { color: var(--taupe); font-family: var(--serif); font-style: italic;
  letter-spacing: 0; font-size: 13px; }
.section-label--invert { color: color-mix(in srgb, var(--canvas) 80%, transparent); }
.section-label--invert span { color: var(--canvas); }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  padding: clamp(90px, 16vh, 200px) var(--gut) clamp(70px, 12vh, 150px);
  border-top: var(--rule);
  display: grid; grid-template-columns: 1fr; gap: clamp(40px, 8vh, 80px);
}
.manifesto__text {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 4.2vw, 58px); line-height: 1.22;
  letter-spacing: -0.01em; max-width: 22ch; margin-left: auto;
  max-width: 18ch;
}
.manifesto__text { max-width: min(900px, 90%); margin-left: auto; }

/* ============================================================
   WORK
   ============================================================ */
.work { padding: clamp(70px, 10vh, 130px) var(--gut) clamp(90px, 14vh, 170px); border-top: var(--rule); }
.work__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px; margin-bottom: clamp(46px, 7vh, 90px);
}
.work__note { text-align: right; color: var(--ink-soft); font-size: clamp(14px,1.3vw,16px); line-height: 1.5; }

.grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 5vw, 86px) clamp(28px, 6vw, 120px);
}
.proj--offset { transform: translateY(clamp(30px, 8vh, 110px)); }

.proj__frame {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;                /* tall-rectangle motif from the logo */
  border: 1px solid color-mix(in srgb, var(--taupe) 55%, transparent);
  border-radius: var(--radius);
  filter: saturate(0.92);
}
/* desktop: full-width square frames — bigger & even, but shorter than the
   tall 4:5 so the caption shows on screen */
@media (min-width: 681px) {
  .proj__frame { aspect-ratio: 1 / 1; }
}
.proj__view {
  position: absolute; z-index: 2; top: 50%; left: 50%;
  transform: translate(-50%, -42%);
  padding: 11px 22px; white-space: nowrap;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--canvas);
  border: 1px solid color-mix(in srgb, var(--canvas) 70%, transparent);
  border-radius: 999px; backdrop-filter: blur(2px);
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  opacity: 0; transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
/* desktop: hover = quiet zoom + pointer (Option A). touch: a tap opens the
   gallery directly. The "View all" pill stays hidden — the photo is the cue. */

/* placeholder frames — honest, quiet greige "material" panels.
   Swap each .ph for an <img> later; the frame + ratio stay. */
.ph { background-color: var(--canvas-2); position: relative; }
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg,
    color-mix(in srgb, var(--mid) 70%, #fff) 0%,
    var(--taupe) 100%);
  transition: transform 1.1s var(--ease);
}
.proj__frame:hover .ph::before { transform: scale(1.04); }
.ph--1::before { background: linear-gradient(155deg, color-mix(in srgb,var(--mid) 80%, #fff), var(--taupe)); }
.ph--2::before { background: linear-gradient(200deg, var(--mid), color-mix(in srgb,var(--taupe) 82%, var(--ink))); }
.ph--3::before { background: linear-gradient(135deg, color-mix(in srgb,var(--canvas-2) 55%, #fff), var(--taupe-d)); }
.ph--4::before { background: linear-gradient(215deg, var(--mid), color-mix(in srgb,var(--taupe-d) 86%, var(--ink))); }
.ph::after {  /* a single quiet label: this is where photography lives */
  content: "Photography"; position: absolute; left: 16px; bottom: 14px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: color-mix(in srgb, var(--canvas) 70%, transparent); z-index: 1;
}

.proj__meta { padding-top: 18px; display: flex; flex-direction: column; gap: 3px; }
.proj__meta h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.6vw, 32px); letter-spacing: 0.01em; }
.proj__type { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.02em; }
.proj__loc  { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe-d); margin-top: 4px; }

.ghost-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: clamp(50px, 8vh, 100px);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
}
.ghost-link span { transition: transform 0.45s var(--ease); }
.ghost-link:hover { color: var(--ink); }
.ghost-link:hover span { transform: translateX(8px); }

@media (max-width: 680px){
  .grid { grid-template-columns: 1fr; }
  .proj--offset { transform: none; }
  .work__note { text-align: left; }
  .manifesto__text { max-width: 100%; margin-left: 0; }
}

/* ============================================================
   EXPERTISE  (inverted, taupe ground)
   ============================================================ */
.expertise {
  background: var(--taupe);
  color: var(--canvas);
  padding: clamp(80px, 14vh, 180px) var(--gut);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px);
  align-items: start;
}
.expertise ::selection { background: var(--canvas); color: var(--taupe); }
.expertise__intro { position: sticky; top: 120px; }
.expertise__title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 76px);
  line-height: 1.05; letter-spacing: -0.01em; margin: 26px 0 24px;
}
.expertise__title em { font-style: italic; color: color-mix(in srgb, var(--canvas) 78%, var(--ink)); }
.expertise__lead { max-width: 40ch; color: color-mix(in srgb, var(--canvas) 88%, var(--ink)); font-size: clamp(14px,1.4vw,17px); line-height: 1.6; }

.trades { list-style: none; }
.trade {
  display: flex; align-items: baseline; gap: 24px;
  padding: clamp(16px, 2.4vh, 30px) 0;
  border-top: 1px solid color-mix(in srgb, var(--canvas) 40%, transparent);
  transition: padding-left 0.5s var(--ease);
}
.trade:last-child { border-bottom: 1px solid color-mix(in srgb, var(--canvas) 40%, transparent); }
.trade:hover { padding-left: 18px; }
.trade__n { font-size: 12px; letter-spacing: 0.1em; color: color-mix(in srgb, var(--canvas) 70%, var(--ink)); width: 2ch; }
.trade__name { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 46px); font-weight: 400; }

@media (max-width: 820px){
  .expertise { grid-template-columns: 1fr; }
  .expertise__intro { position: static; }
}

/* ============================================================
   STUDIO
   ============================================================ */
.studio { padding: clamp(90px, 16vh, 200px) var(--gut); }
.studio__grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 7vw, 120px);
  margin-top: clamp(36px, 6vh, 70px); align-items: start;
}
.studio__text { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 3vw, 40px); line-height: 1.32; letter-spacing: -0.005em; }

.stats { list-style: none; display: flex; flex-direction: column; gap: clamp(22px, 4vh, 44px); }
.stats li { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; border-top: var(--rule); padding-top: 16px; }
.stats__n { font-family: var(--serif); font-size: clamp(40px, 6vw, 78px); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.stats__plus { font-family: var(--serif); font-size: clamp(26px, 4vw, 44px); color: var(--taupe-d); }
.stats__lbl { flex-basis: 100%; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }

@media (max-width: 820px){ .studio__grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: clamp(58px, 8vh, 104px) var(--gut) clamp(40px, 5.5vh, 72px);
  border-top: var(--rule);
}
.contact__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 5.4vw, 76px); line-height: 1.0; letter-spacing: -0.02em;
  margin: clamp(0px,0.2vh,4px) 0 clamp(0px,0.3vh,4px);
}
.contact__title .line { display: block; overflow: hidden; }
.contact__title em { font-style: italic; color: var(--taupe-d); }

.contact__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: start; }
.contact__big {
  font-family: var(--serif); font-size: clamp(24px, 4vw, 52px); font-weight: 400;
  position: relative; width: max-content; max-width: 100%; word-break: break-word;
}
.contact__big::after { content: ""; position: absolute; left: 0; bottom: 4px; height: 1px; width: 100%;
  background: currentColor; opacity: 0.35; transform: scaleX(1); transform-origin: right;
  transition: transform 0.6s var(--ease); }
.contact__big:hover::after { transform: scaleX(0); transform-origin: left; }

.contact__cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
.contact__cols > div { display: flex; flex-direction: column; gap: 4px; border-top: var(--rule); padding-top: 14px; }
.contact__k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe-d); }
.contact__cols a:hover { color: var(--taupe-d); }
.social-link { display: inline-flex; align-items: center; gap: 9px; width: max-content; }
.social-link .ic { width: 17px; height: 17px; color: var(--taupe-d); transition: color 0.35s var(--ease); }
.social-link:hover .ic { color: var(--ink); }

@media (max-width: 760px){
  .contact { padding-top: clamp(28px, 4.5vh, 48px); padding-bottom: clamp(36px, 5vh, 60px); }
  .contact__title { font-size: clamp(27px, 7vw, 36px); line-height: 1.08; margin: clamp(4px,0.8vh,8px) 0 clamp(12px,1.8vh,18px); }
  .contact__grid { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .contact__cols { gap: 16px; }
  .contact__cols > div { padding-top: 11px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: clamp(40px, 7vh, 80px) var(--gut); padding-bottom: calc(clamp(40px, 7vh, 80px) + env(safe-area-inset-bottom)); border-top: var(--rule); display: flex; flex-direction: column; gap: 28px; }
.footer__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.footer__social { grid-column: 3; justify-self: end; display: flex; gap: 10px; }
.footer__social a {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 999px; border: var(--rule); color: var(--ink-soft);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.footer__social a .ic { width: 17px; height: 17px; }
.footer__social a:hover { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.mark--footer { opacity: 0.8; }
.footer__row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.footer__row > :nth-child(1) { justify-self: start; }
.footer__row > :nth-child(2) { justify-self: center; }   /* Kuwait — page-centered */
/* © 2026 sits in a box the width of the icon cluster (3×38 + 2×10 = 134px),
   flush right, text centered — so it centers under the icons' old position */
.footer__row > :nth-child(3) { justify-self: end; width: 134px; text-align: center; }
@media (max-width: 680px) {
  /* stack: brand on top, Kuwait + © 2026 together centered below */
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__social { grid-column: 2; justify-self: end; }
  .footer__row { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; row-gap: 12px; column-gap: 22px; }
  .footer__row > :nth-child(1) { flex-basis: 100%; }
  .footer__row > :nth-child(3) { width: auto; }
}

/* ============================================================
   PROJECT PHOTO + GALLERY LIGHTBOX
   ============================================================ */
.proj__frame--photo { cursor: pointer; background: var(--canvas-2); }
.proj__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; filter: saturate(0.96);
  transition: transform 1.1s var(--ease);
}
.proj__frame--photo:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: #201e1a;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
body.lb-open { overflow: hidden; }
body.lb-open .lightbox { opacity: 1; visibility: visible; }
.lightbox ::selection { background: var(--canvas); color: var(--ink); }

.lightbox__track {
  display: flex; width: 100%; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__track img {
  flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain;
  scroll-snap-align: center;
  padding: clamp(40px, 7vh, 80px) clamp(14px, 6vw, 120px) clamp(118px, 18vh, 152px);
}

.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2; display: grid; place-items: center;
  background: color-mix(in srgb, var(--canvas) 12%, transparent);
  color: var(--canvas); border: 1px solid color-mix(in srgb, var(--canvas) 35%, transparent);
  border-radius: 999px; cursor: pointer; backdrop-filter: blur(4px);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: color-mix(in srgb, var(--canvas) 24%, transparent); border-color: var(--canvas); }
.lightbox__close { top: max(16px, env(safe-area-inset-top)); right: 16px; width: 46px; height: 46px; font-size: 18px; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 26px; line-height: 1; padding-bottom: 4px; }
.lightbox__prev { left: clamp(10px, 2vw, 28px); }
.lightbox__next { right: clamp(10px, 2vw, 28px); }
.lightbox__count {
  position: absolute; z-index: 2; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 70px); left: 50%; transform: translateX(-50%);
  color: var(--canvas); font-family: var(--sans); font-size: 12px; letter-spacing: 0.22em;
}

/* thumbnail strip — see position + click any photo + scroll */
.lightbox__thumbs {
  position: absolute; z-index: 2; left: 0; right: 0;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex; gap: 8px; align-items: center; justify-content: safe center;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
  padding: 4px clamp(14px, 5vw, 80px);
}
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumbs button {
  flex: 0 0 auto; width: 48px; height: 48px; padding: 0; margin: 0;
  border: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: none;
  opacity: 0.4; outline: 1.5px solid transparent; outline-offset: 2px;
  transition: opacity 0.3s var(--ease), outline-color 0.3s var(--ease);
}
.lightbox__thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__thumbs button:hover { opacity: 0.8; }
.lightbox__thumbs button.is-active { opacity: 1; outline-color: var(--canvas); }

@media (max-width: 600px) {
  .lightbox__nav { display: none; }   /* swipe instead */
  .lightbox__track img { padding: 56px 10px 104px; }
  .lightbox__thumbs button { width: 40px; height: 40px; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal, .reveal-up, .reveal-words { --d: 0ms; }
.js .reveal, .js .reveal-up, .js .reveal-words {
  opacity: 0;
  transition: opacity 1s var(--ease) var(--d), transform 1s var(--ease) var(--d);
}
.js .reveal      { transform: translateY(18px); }
.js .reveal-up   { display: inline-block; transform: translateY(115%); }
.js .reveal-words{ transform: translateY(24px); }
.reveal-up { display: inline-block; }

.is-in .reveal-up,
.reveal.is-in,
.reveal-words.is-in { opacity: 1; transform: none; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

[data-delay="1"] { --d: 90ms; }
[data-delay="2"] { --d: 180ms; }
[data-delay="3"] { --d: 270ms; }
[data-delay="4"] { --d: 360ms; }

/* hero reveals fire on load, not scroll */
.js .hero [data-reveal] { opacity: 0; }
.js .hero.loaded .reveal     { animation: rUp 1.1s var(--ease) var(--d) forwards; }
.js .hero.loaded .reveal-up  { animation: rUpLine 1.1s var(--ease) var(--d) forwards; }
@keyframes rUp     { from { opacity:0; transform: translateY(18px);} to { opacity:1; transform:none; } }
@keyframes rUpLine { from { opacity:0; transform: translateY(115%);} to { opacity:1; transform:none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up, .reveal-words, .hero [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; }
  .mark--hero { opacity: 1 !important; animation: none !important; transform: translateY(-48%) !important; }
  .scroll-cue__line::after, .ph::before { animation: none !important; }
}

/* static (screenshot) mode — forces every reveal to its resting state */
body.force-visible .reveal,
body.force-visible .reveal-up,
body.force-visible .reveal-words,
body.force-visible .hero [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; }
body.force-visible .mark--hero { opacity: 1 !important; animation: none !important; transform: translateY(-48%) !important; }
