/* ==========================================================================
   Design tokens — Apurva Amin Architects
   Every value below was measured from the Figma SVG exports (1920 × 1080 base)
   and the typography was verified glyph-by-glyph against Inter 3.19.

   Horizontal geometry is expressed as % of the page width so that at 1920px
   it is pixel-exact and on other widths it scales proportionally.
   Vertical geometry + font sizes are fixed px (as in Figma).
   ========================================================================== */

:root {
  /* ---------- Colour (exact from SVG) ---------- */
  --c-bg: #ffffff;
  --c-black: #000000;
  /* logo + top nav (home)                     */
  --c-ink: #5b5b5b;
  /* detail values                              */
  --c-soft: #7f7f7f;
  /* titles, captions, body, active nav         */
  --c-muted: #c4c4c4;
  /* inactive sidebar nav                       */
  --c-contact: #7b7b7b;
  /* contact page text + icons                  */
  --c-dot: #767676;
  /* footprints map dot                         */
  --c-dot-hover: #000000;
  /* footprints map dot (hover) — ACF overrides */
  --c-thumb-border: #7f7f7f;
  /* lightbox active thumbnail outline          */

  /* ---------- Typography ---------- */
  --font: "Inter AAA", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;

  /* Top nav: PROJECTS / ABOUT / CONTACT — Inter Medium 14 / ls 1.4px (10%) */
  --t-topnav-size: 14px;
  --t-topnav-ls: 1.4px;
  --t-topnav-lh: 17px;

  /* Sidebar nav: Houses… / AAA… — Inter Light 24 / ls 0 / pitch 52 */
  --t-side-size: 24px;
  --t-side-lh: 29px;
  --t-side-gap: 23px;

  /* Body 18 (captions, details, awards, lists) — Inter Light 18 */
  --t-18: 18px;
  --t-18-lh: 22px;

  /* Titles 24 — project/product title (Regular), headings (Light) */
  --t-24: 24px;
  --t-24-lh: 29px;

  /* Team small captions — Inter Regular 15 */
  --t-15: 15px;
  --t-15-lh: 18px;

  /* letter-spaced 10% for 18px text (awards year, contact values) */
  --ls-18: 1.8px;

  /* ---------- Layout (1920 base) ---------- */
  --pad-x: 50px;
  /* logo x / page right padding               */
  --logo-top: 35px;
  /* logo y                                    */
  --logo-h: 12px;
  /* logo height (322.8 × 12)                   */
  --col: max(420px, 25%);
  /* 480 / 1920  left white column. Never narrower than 420px so the
     322.8px logo (ends at x=373) and the longest sidebar item
     ("Residential Development", ends at x=329) never touch content.   */
  --band-r: 2.6042%;
  /* 50 / 1920   content right margin          */
  --content-top: 180px;
  /* first row of content on every inner page  */
  --page-bottom: 180px;
  /* space after last element                  */
  --gap: 50px;
  /* gap between gallery rows / sections       */

  /* inside the 1390px content band */
  --sq: 35.9712%;
  /* 500 / 1390 square card                    */
  --intro-left: 51.0791%;
  /* 710 / 1390 project text column            */
  --about-img: 51.7986%;
  /* 720 / 1390 about image                    */
  --about-text: 44.6043%;
  /* 620 / 1390 about text column              */
  --award-year: 14.3885%;
  /* 200 / 1390 awards year column             */
  --team-a: 27.3381%;
  /* 380 / 1390                                */
  --team-b: 18.8489%;
  /* 262 / 1390                                */
  --team-c: 11.5108%;
  /* 160 / 1390                                */
  --pair-gap: 0px;
  /* gap between two 50% gallery images        */

  /* square card / project thumb width inside the band:
     500px at 1920 (exact Figma), never under 2 columns + 50px gap,
     grows proportionally above 1920 (35.97% of the band).            */
  --card: max(var(--sq), min(500px, calc((100% - 50px) / 2)));

  /* listing caption → baseline lands 23px under image (Figma) */
  --cap-mt: 5px;
  --cap-lh: 23px;
  --list-row-gap: 23px;
  /* 551 pitch (Houses etc.)                    */

  /* sidebar nav bottom anchor (last baseline = 1022 on 1080) */
  --side-bottom: 52px;

  /* lightbox */
  --lb-top: 100px;
  --lb-w: 73.3333%;
  /* 1408 / 1920 */
  --lb-thumb: 61px;
  --lb-thumb-gap: 29px;
  --lb-thumbs-mt: 27px;

  /* ---------- Motion ---------- */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur: .35s;
  --slide-dur: .9s;

  /* Mobile / tablet values: see the media queries at the end of this file.
     Breakpoint: ≤1024px = mobile layout (phones + tablets). */
}

/* Product listing (Hinchko) uses a 554 row pitch in Figma */
.listing--svc-product-design {
  --list-row-gap: 26px;
}

/* ---------- ≤1200px: mobile layout (Figma iPhone 16 Pro 402 frame) ----------
   env(safe-area-inset-*) keeps the sticky header, logo and side padding clear
   of the iPhone notch / Dynamic Island / status bar (iOS 26 Safari draws the
   page under the status bar) and of the home indicator. 0 everywhere else. */
@media (max-width: 1200px) {
  :root {
    --pad-x: max(15px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    --logo-top: calc(20px + env(safe-area-inset-top, 0px));   /* logo y      */
    --logo-h: 10px;         /* logo 268.9 × 10                                 */
    --content-top: calc(100px + env(safe-area-inset-top, 0px)); /* first card */
    --page-bottom: 60px;
    --gap: 24px;
    --m-bar-h: 50px;        /* sticky white header height (without notch)      */
    --m-head: calc(var(--m-bar-h) + env(safe-area-inset-top, 0px)); /* + notch */
    --m-media-top: calc(var(--m-head) + 4px);  /* about / team image top       */
    --m-home-bar: 46px;     /* home bottom menu bar                            */
    --m-col-gap: 24px;      /* column gap for 2/3-column grids (tablet)        */
  }
}

/* ---------- 600–1200px: tablets / iPad / large phones in landscape ---------- */
@media (min-width: 600px) and (max-width: 1200px) {
  :root {
    --pad-x: max(30px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    --logo-top: calc(24px + env(safe-area-inset-top, 0px));
    --logo-h: 12px;         /* full-size logo (322.8 × 12)                     */
    --m-bar-h: 60px;
    --content-top: calc(110px + env(safe-area-inset-top, 0px));
  }
}