/* ═══════════════════════════════════════════════════════════════
   ASSET SWAP BLOCK
   Every image on the site resolves through the ten variables below.
   All are local and permanent — no expiring URLs. To replace any
   asset, drop the new file into /assets and change one line here.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --img-logo:         url("assets/inko-logo.svg");
  --img-hero:         url("assets/hero-bg.webp");
  --img-map:          url("assets/world-map.webp");
  --img-interiors:    url("assets/interiors.webp");
  --img-architecture: url("assets/architecture.webp");
  --img-research:     url("assets/masterplans.webp");
  --img-advisory:     url("assets/purchasing.webp");
  --img-oval:         url("assets/oval.svg");
  --img-arrow:        url("assets/arrow.svg");
  --img-invite:       url("assets/caligraphy.svg");
  --img-brackets:     url("assets/brackets.svg");
}

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --ink:        #191919;
  --ink-soft:   #383838;
  --grey:       #5b5a59;
  --grey-light: #b6b6b6;
  --grey-pale:  #c2c1c1;
  --paper:      #f9f9f9;
  --paper-mid:  #ececec;
  --paper-deep: #d0d0d0;

  --display: "EB Garamond", "Garamond Premier Pro", Garamond, "Times New Roman", serif;
  --body:    "Onest", "Halvar Mittelschrift", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --measure: 1440px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: linear-gradient(180deg,
    var(--paper)      16.263%,
    var(--paper-mid)  68.407%,
    var(--paper-deep) 99.138%);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
address { font-style: normal; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.28em; text-decoration-thickness: 1px; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  padding: 12px 20px; background: #fff; color: var(--ink);
  font-size: 14px; letter-spacing: 0.08em; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

/* readable by screen readers and search engines, invisible on screen */
.vhidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ══ HERO ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: clamp(520px, 56.67vw, 816px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: var(--img-hero);
  background-size: cover;
  background-position: center;
}
.hero__mark {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(24px, 5.2vw, 75px);
  padding-top: clamp(24px, 3vw, 40px);
}
.hero__logo {
  width: clamp(150px, 19.8vw, 285px);
  aspect-ratio: 285 / 162;
  background-image: var(--img-logo);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: none;
}
.hero__city {
  font-family: var(--display);
  font-size: clamp(12px, 1.45vw, 20.9px);
  color: #fff;
  flex: none;
  padding-top: clamp(18px, 2.9vw, 42px);
}

.hero__disciplines {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(28px, 10.3%, 88px);
  display: flex;
  justify-content: space-between;
  padding-inline: clamp(16px, 8.26vw, 119px);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 2.78vw, 40px);
  letter-spacing: clamp(2px, 0.36vw, 5.2px);
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}

/* ══ INTERNATIONAL PRACTICE ════════════════════════════════ */
.practice {
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(56px, 8.5vw, 122px) var(--gutter) clamp(48px, 6vw, 86px);
  text-align: center;
}
.practice__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.82vw, 55px);
  letter-spacing: clamp(4px, 0.573vw, 8.25px);
  line-height: 1;
  text-transform: uppercase;
  color: #000;
  max-width: 724px;
  margin-inline: auto;
}
.practice__map {
  width: min(100%, 941px);
  aspect-ratio: 941 / 591;
  margin: clamp(28px, 5vw, 72px) auto clamp(12px, 1.5vw, 20px);
  background-image: var(--img-map);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
}
.practice__cities {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(14px, 1.83vw, 26.4px);
  letter-spacing: clamp(1.2px, 0.165vw, 2.37px);
  line-height: 1.26;
  text-transform: uppercase;
  color: var(--grey-light);
}
.practice__offices {
  margin-top: clamp(40px, 5.5vw, 79px);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(16px, 1.67vw, 24px);
  letter-spacing: clamp(1.2px, 0.167vw, 2.4px);
  line-height: 1;
  text-transform: uppercase;
  color: #000;
}
.practice__blurb {
  margin: clamp(14px, 1.6vw, 22px) auto 0;
  max-width: 787px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(13px, 1.11vw, 16px);
  letter-spacing: clamp(1px, 0.167vw, 2.4px);
  line-height: 1.35;
  text-transform: uppercase;
  color: #000;
}

/* ══ SERVICES ══════════════════════════════════════════════ */
.services { padding-bottom: clamp(56px, 8vw, 116px); }
.services__rule {
  height: 1px;
  background: var(--grey-pale);
}
.services__title {
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(34px, 4.4vw, 63px) var(--gutter);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(26px, 3.82vw, 55px);
  letter-spacing: clamp(4px, 0.573vw, 8.25px);
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
}

/* Each service spans three parent rows and inherits them via subgrid,
   so headings, photos and descriptions line up across a pair no matter
   how many lines a heading wraps to. Row gap is 0 — the spacing between
   pairs is applied to the headings of the second row instead, so it
   never leaks between a service's own three rows. */
.services__grid {
  max-width: 1042px;
  margin-inline: auto;
  padding: clamp(44px, 6.7vw, 96px) var(--gutter) 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(24px, 8.5vw, 122px);
  row-gap: 0;
}
.service {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  justify-items: center;
  text-align: center;
}
.service:nth-child(n + 3) .service__name { margin-top: clamp(48px, 6.5vw, 94px); }

.service__name {
  align-self: end;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(14px, 1.44vw, 20.75px);
  letter-spacing: clamp(2.4px, 0.288vw, 4.15px);
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--grey);
}

/* without subgrid the columns can't share row heights — approximate it */
@supports not (grid-template-rows: subgrid) {
  .services__grid { row-gap: clamp(48px, 6.5vw, 94px); }
  .service { display: flex; flex-direction: column; align-items: center; }
  .service:nth-child(n + 3) .service__name { margin-top: 0; }
  .service__name { align-self: auto; min-height: 3.6em; }
}
.service__frame {
  --frame-w: clamp(240px, 28.2vw, 406px);
  position: relative;
  width: var(--frame-w);
  margin-top: clamp(10px, 1.5vw, 22px);
  display: grid;
  place-items: center;
}
.service__frame::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  aspect-ratio: 406 / 104;
  background-image: var(--img-brackets);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
/* Every photo is the SAME height — 161 of the 406-wide frame, as in the
   design. Width follows from each image's own ratio, so the portrait
   originals stay portrait and uncropped rather than being letterboxed
   or cut down to a landscape slot. */
.service__photo {
  position: relative;
  height: calc(var(--frame-w) * 161 / 406);
  width: auto;
  aspect-ratio: 236 / 161;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.service__photo--interiors    { aspect-ratio: 387 / 484; }
.service__photo--architecture { aspect-ratio: 339 / 483; }
.service__photo--interiors    { background-image: var(--img-interiors); }
.service__photo--architecture { background-image: var(--img-architecture); }
.service__photo--research     { background-image: var(--img-research); }
.service__photo--advisory     { background-image: var(--img-advisory); }

.service__desc {
  margin-top: clamp(14px, 2.2vw, 32px);
  max-width: 440px;
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(13px, 1.09vw, 15.7px);
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--grey);
}

/* ══ PHILOSOPHY ════════════════════════════════════════════ */
.philosophy {
  max-width: 871px;
  margin-inline: auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(56px, 7vw, 100px);
  text-align: center;
}
.philosophy__statement {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.78vw, 40px);
  letter-spacing: clamp(2.4px, 0.417vw, 6px);
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.philosophy__label {
  margin-top: clamp(28px, 4vw, 58px);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 2.15vw, 31px);
  letter-spacing: clamp(1.6px, 0.194vw, 2.79px);
  line-height: 1.26;
  text-transform: uppercase;
  color: var(--grey-pale);
}

/* ══ CONTACT ═══════════════════════════════════════════════ */
.contact {
  padding: 0 var(--gutter) clamp(72px, 9vw, 130px);
  text-align: center;
}
.contact__invite {
  width: clamp(220px, 23.5vw, 339px);
  aspect-ratio: 339 / 100;
  margin-inline: auto;
  background-image: var(--img-invite);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.contact__arrow {
  /* the export is already vertical (29x150) — no rotation needed */
  width: clamp(16px, 2vw, 29px);
  height: clamp(72px, 10.4vw, 150px);
  margin: clamp(12px, 1.6vw, 22px) auto 0;
  background-image: var(--img-arrow);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.contact__oval {
  position: relative;
  width: min(100%, 759px);
  aspect-ratio: 759 / 229;
  margin: clamp(-14px, -1vw, 0px) auto 0;
  display: grid;
  place-items: center;
}
.contact__oval-line {
  position: absolute; inset: 0;
  background-image: var(--img-oval);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.contact__details {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.14em;
  font-family: var(--body);
  font-size: clamp(13px, 1.67vw, 24px);
  letter-spacing: clamp(1.4px, 0.217vw, 3.12px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-inline: 8%;
}
.contact__heading { font-weight: 700; }
.contact__link { font-weight: 400; }
.contact__address {
  margin-top: 0.7em;
  font-weight: 200;
  font-size: clamp(10px, 1.11vw, 16px);
}

/* ══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 760px) {
  /* keep the city labels flanking the logo, as on desktop */
  .hero__mark {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(10px, 3.5vw, 24px);
    padding-top: 8vw;
  }
  .hero__logo { width: clamp(104px, 34vw, 150px); }
  .hero__city {
    font-size: clamp(10px, 3vw, 13px);
    padding-top: clamp(12px, 5vw, 22px);
  }
  .hero__disciplines {
    font-size: 15px;
    letter-spacing: 2px;
    padding-inline: 18px;
  }
  .services__grid { grid-template-columns: 1fr; }
  .service:nth-child(n + 2) .service__name { margin-top: 52px; }
  .service__frame { --frame-w: min(310px, 84vw); }
  .service__desc { font-size: 14px; }
  .practice__blurb { font-size: 13px; letter-spacing: 1px; }
  .contact__details { font-size: 15px; letter-spacing: 1.4px; padding-inline: 10%; }
  .contact__address { font-size: 11px; }
}

@media (max-width: 420px) {
  .contact__oval { aspect-ratio: 759 / 300; }
  .contact__details { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
