/* ==========================================================================
   I-AB portfolio — rebuilt from the Framer site
   Breakpoints match Framer: desktop ≥1024 · tablet 810–1023 · phone <810
   ========================================================================== */

:root {
  /* Colour tokens (taken from the Framer project) */
  --bg: #faf9f5;
  --surface: #ffffff;
  --ink: #212121;
  --muted: #807f7f;
  --soft: #999897;
  --line: #e7e5dc;
  --hover: #f1efe9;
  --active: #f2f0ea;
  --fact: #f4f4f4;
  --trigger-hover: #f5f5f5;
  --footer: #212121;
  --footer-ink: #f5f5f5;
  --green: #058f13;

  /* Layout */
  --max: 1440px;
  --gutter: 60px;
  --nav-h: 84px;

  /* Motion — the exact curves Framer uses on this site */
  --ease-appear: cubic-bezier(0.44, 0, 0.56, 1); /* page-load slide-ins, 0.6s */
  --ease-reveal: cubic-bezier(0.12, 0.23, 0.5, 1); /* scroll reveals, 0.8s */
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1); /* ≈ spring {duration .4, bounce .2} */

  --shadow-card:
    0.3px 0.3px 0.43px -1.25px rgba(0, 0, 0, 0.18),
    1.14px 1.14px 1.62px -2.5px rgba(0, 0, 0, 0.16),
    5px 5px 7.07px -3.75px rgba(0, 0, 0, 0.06);
  --shadow-card-lg:
    0.59px 0.3px 0.66px -0.75px rgba(0, 0, 0, 0.18),
    1.61px 0.81px 1.8px -1.5px rgba(0, 0, 0, 0.18),
    3.54px 1.77px 3.96px -2.25px rgba(0, 0, 0, 0.17),
    7.87px 3.93px 8.8px -3px rgba(0, 0, 0, 0.14),
    20px 10px 22.36px -3.75px rgba(0, 0, 0, 0.06);
  --shadow-menu: 0 10px 20px rgba(0, 0, 0, 0.05);

  --font: "Inter", "Inter Placeholder", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

@media (max-width: 1023.98px) {
  :root { --gutter: 30px; }
}
@media (max-width: 809.98px) {
  :root { --gutter: 16px; }
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* clip (not hidden) so off-screen reveal start positions never widen the page and sticky still works */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* height: auto keeps proportions when max-width shrinks an image that has width/height attributes */
img, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.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;
}

/* ---------- Type scale ---------- */
.t-display { font-size: 42px; line-height: 1.2; font-weight: 600; }
.t-page    { font-size: 32px; line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; }
.t-h2      { font-size: 29px; line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; }
.t-lead    { font-size: 26px; line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; }
.t-body    { font-size: 16px; line-height: 1.5; }
.t-small   { font-size: 14px; line-height: 1.5; }
.t-xs      { font-size: 13px; line-height: 1.5; letter-spacing: -0.01em; }
.c-ink     { color: var(--ink); }
.c-muted   { color: var(--muted); }
.c-soft    { color: var(--soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 24px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s ease, box-shadow 0.4s var(--ease-spring), color 0.25s ease;
}
.btn--dark { min-width: 170px; background: var(--ink); color: #f4f4f4; font-weight: 500; }
.btn--dark:hover { background: #3a3a3a; }
.btn--outline { border: 1px solid var(--line); color: var(--ink); background: transparent; text-transform: uppercase; }
.btn--outline:hover { background: var(--surface); }
.btn--lg { height: 50px; }
.btn .icon { width: 20px; height: 20px; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 16px;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--accent);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   NAV — two levels: (Home · About · Selected Works) › (project)
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--bg);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__left { display: flex; align-items: center; gap: 30px; min-width: 0; }
.logo {
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
  color: var(--ink);
  padding-right: 3px;
}
.crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; }
.crumb-sep { width: 20px; height: 20px; color: var(--muted); transform: rotate(-90deg); flex: none; }

.dd { position: relative; }
.dd__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  min-width: 175px;
  padding: 4px 24px;
  border: 0.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.dd--project .dd__trigger { min-width: 235px; }
.dd__trigger:hover,
.dd.is-open .dd__trigger { background: var(--trigger-hover); }
.dd__label { overflow: hidden; text-overflow: ellipsis; }
.dd__chev { width: 20px; height: 20px; flex: none; transition: transform 0.45s var(--ease-spring); }
.dd.is-open .dd__chev { transform: rotate(180deg); }

/* The panel sits 10px under the trigger; its padding-top is an invisible
   hover bridge so the menu doesn't close while the pointer travels down. */
.dd__panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transform-origin: 50% 0;
  transition: opacity 0.25s ease, transform 0.3s var(--ease-appear), visibility 0s linear 0.3s;
  z-index: 2;
}
.dd.is-open .dd__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, transform 0.3s var(--ease-appear), visibility 0s;
}
.dd__menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 16px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-menu);
}
.dd--project .dd__menu { gap: 10px; padding: 16px 8px; }
.dd__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  transition: background-color 0.2s ease;
}
.dd__item:hover { background: var(--bg); }
.dd__item[aria-current="page"] { background: var(--active); }
/* Project sub-list inside the first dropdown: only used on phones */
.dd__sub { display: none; }

@media (max-width: 809.98px) {
  .nav__cta, .crumb-sep, .dd--project { display: none; }
  .nav__inner { padding: 0 16px; }
  .crumbs { margin-left: auto; }
  .nav__left { flex: 1; justify-content: space-between; gap: 12px; }
  .dd--main .dd__panel { left: auto; right: 0; }
  .dd__sub {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: -4px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .dd__sub .dd__item { min-height: 32px; font-weight: 400; color: var(--muted); }
  .dd__sub .dd__item[aria-current="page"] { color: var(--ink); font-weight: 500; }
  .dd--main .dd__menu { min-width: 230px; }
}

/* ==========================================================================
   Motion: page-load "appear" and scroll "reveal"
   Only active when JS runs (html.js) so content never hides without it.
   ========================================================================== */
.js [data-appear] {
  opacity: 0.001;
  transition: opacity 0.6s var(--ease-appear), transform 0.6s var(--ease-appear);
}
.js [data-appear="down"] { transform: translateY(-150px); }  /* falls in from above */
.js [data-appear="right"] { transform: translateX(-150px); } /* slides in from the left */
.js [data-appear="up"] { transform: translateY(150px); opacity: 1; } /* rises from below, no fade */
.js [data-appear].is-in { opacity: 1; transform: none; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(150px);
  transition: opacity 0.8s var(--ease-reveal), transform 0.8s var(--ease-reveal);
}
.js [data-reveal="left"] { transform: translateX(150px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-appear], .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   HOME
   ========================================================================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 60px;
}
.hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}
.hero__text { display: flex; flex-direction: column; gap: 24px; flex: 0 1 653px; min-width: 0; }
.hero__copy { display: flex; flex-direction: column; gap: 12px; }

.available {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 3px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #000;
}
.available__dot { position: relative; width: 8px; height: 8px; flex: none; }
.available__dot::before,
.available__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
}
/* Framer loop: scale 1→2, opacity 1→.1 over 1s linear, then a .3s pause */
.available__dot::after { animation: pulse 1.3s linear infinite; }
@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; }
  77%  { transform: scale(2); opacity: 0.1; }
  100% { transform: scale(2); opacity: 0.1; }
}

/* Rotating tagline. Lines hold for 4s, then the next springs up into place. */
.ticker {
  position: relative;
  min-height: 108px;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--soft);
}
.js .ticker { overflow: hidden; } /* lines slide inside the box instead of over the heading */
.ticker__line + .ticker__line { display: none; } /* without JS: first line only */
.js .ticker__line {
  display: block;
  position: absolute;
  inset: 0 0 auto 0;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-spring), opacity 0.4s ease;
}
.js .ticker__line.is-active { opacity: 1; transform: none; }
.js .ticker__line.is-leaving { opacity: 0; transform: translateY(-100%); }
.js .ticker__line.no-anim { transition: none; }

.scroll-hint {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.scroll-hint span:last-child { font-size: 16px; font-weight: 500; }

/* White "link card": hero → works, about → about page */
.link-card {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
  max-width: 432px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.4s var(--ease-spring);
}
.link-card:hover { box-shadow: var(--shadow-card-lg); }
.link-card__media {
  width: 100%;
  aspect-ratio: 392 / 366;
  border-radius: 8px;
  overflow: hidden;
  background: var(--fact);
}
.link-card__media img { width: 100%; height: 100%; object-fit: cover; }
.link-card__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  font-size: 14px;
  text-transform: uppercase;
}
.link-card__label .icon { width: 20px; height: 20px; transition: transform 0.4s var(--ease-spring); }
.link-card:hover .link-card__label .icon { transform: translateX(3px); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.home-sections { padding-top: 80px; }
.home-works { padding-top: 83px; }
.section-title { display: flex; flex-direction: column; }
.section-title .t-small { color: var(--ink); }
.project-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 904px;
  margin-top: 60px;
}
.project-list__more { display: flex; justify-content: flex-end; max-width: 904px; margin-top: 80px; }

.home-about { display: flex; flex-direction: column; gap: 75px; padding: 80px 0 200px; }
.home-about__row { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
.home-about__text { flex: 0 1 633px; }
.home-about__text .t-small { color: var(--ink); }
.home-about .link-card { flex: none; }

/* ---------- Project card (Home + Works) ---------- */
.pcard { display: block; text-decoration: none; color: var(--ink); }
.pcard__box {
  display: flex;
  gap: 10px;
  height: 520px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: box-shadow 0.4s var(--ease-spring);
}
.pcard:hover .pcard__box { box-shadow: var(--shadow-card); }
.pcard__info {
  flex: 0 0 346px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 16px;
}
.pcard__head { display: flex; flex-direction: column; gap: 24px; }
.pcard__desc { font-size: 14px; letter-spacing: -0.01em; color: var(--muted); }
.pcard__media {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--fact);
}
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.plus {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  transition: transform 0.4s var(--ease-spring);
}
.plus svg { width: 20px; height: 20px; }
.pcard:hover .plus { transform: rotate(90deg); }

/* ==========================================================================
   Simple pages: Works, About, Imprint
   ========================================================================== */
.page { padding-top: calc(var(--nav-h) + 109px); padding-bottom: 120px; }

.works-list { display: flex; flex-direction: column; gap: 60px; margin-top: 80px; max-width: 904px; }

.about-hero { display: flex; gap: 40px; align-items: flex-start; }
.about-hero__text { flex: 1 1 0; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.about-hero__photo { flex: 1 1 0; min-width: 0; aspect-ratio: 633 / 400; border-radius: 16px; overflow: hidden; }
.about-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-row { display: flex; gap: 40px; align-items: flex-start; margin-top: 80px; }
.faq { flex: 0 1 585px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.acc {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: background-color 0.25s ease;
}
.acc:not(.is-open):hover { background: var(--hover); }
.acc__head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 24px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.acc__head span { flex: 1; }
.acc__chev { width: 24px; height: 24px; flex: none; transform: rotate(180deg); transition: transform 0.45s var(--ease-spring); }
.acc.is-open .acc__chev { transform: none; }
.acc__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-spring);
}
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body > div { overflow: hidden; }
.acc__body p { padding: 0 24px 24px; margin-top: -4px; color: var(--muted); }
.about-cta {
  flex: 1 1 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  min-height: 402px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.imprint-row { display: flex; gap: 40px; align-items: flex-start; margin-top: 80px; }
.imprint-card {
  flex: 0 0 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font-size: 14px;
}
.imprint-card p + p { margin-top: 12px; }
.imprint-text { flex: 0 1 600px; font-size: 14px; letter-spacing: -0.01em; color: var(--muted); }
.imprint-text p + p { margin-top: 1.5em; }
.imprint-text strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   CASE STUDY
   ========================================================================== */
.case {
  --side-w: 299px;
  --case-gap: 40px;
  --hero-ratio: 966 / 746; /* width / height of the hero image or video */
  container-type: inline-size; /* lets the sidebar size itself from this box's width (cqw) */
  max-width: var(--max);
  margin: 0 auto;
  padding: 122px var(--gutter) 0;
  display: flex;
  gap: var(--case-gap);
  align-items: flex-start;
}
/* The sidebar (card + section index + live button) is exactly as tall as the hero
   beside it: hero width = content width − sidebar − gap, height follows the ratio.
   The title card absorbs the extra space. */
.case-side {
  --side-h: calc((100cqw - var(--side-w) - var(--case-gap)) / (var(--hero-ratio)));
  flex: 0 0 var(--side-w);
  min-width: 0; /* never let long labels widen it, or the hero would shrink */
  /* --case-h is set by site.js when the sidebar's content is taller than the hero */
  min-height: var(--case-h, var(--side-h));
  position: sticky;
  /* 120px below the nav; on short screens it rises just enough to keep the live button visible */
  top: min(120px, calc(100vh - var(--case-h, var(--side-h)) - 24px));
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case-side > .case-card { flex: 1 0 auto; }
.case-card,
.toc {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 23px; /* 24px inside the 1px border, like Framer */
}
.case-card { display: flex; flex-direction: column; gap: 24px; }
.case-card h1 { font-size: 29px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.case-card p { margin-top: 24px; color: var(--muted); }
.toc { display: flex; flex-direction: column; gap: 4px; }
.toc a {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px 4px 22px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, font-weight 0.3s ease;
}
.toc a:hover { background: var(--hover); }
.toc a.is-active { background: var(--active); font-weight: 600; }
.live-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 2px 24px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease;
}
.live-btn:hover { background: color-mix(in srgb, var(--accent) 35%, transparent); }

.case-content { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 80px; }
.cs-hero { width: 100%; aspect-ratio: var(--hero-ratio); min-height: var(--case-h, 0px); border-radius: 16px; overflow: hidden; background: var(--fact); }
.cs-hero img, .cs-hero video { width: 100%; height: 100%; object-fit: cover; }
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--fact);
}
.facts dt { font-size: 13px; line-height: 1.5; }
.facts dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

.cs-sections { display: flex; flex-direction: column; gap: 120px; }
.cs-section { display: flex; flex-direction: column; gap: 40px; scroll-margin-top: 120px; }
.cs-section--tight { gap: 20px; }
.cs-section--mid { gap: 60px; }
.cs-section--loose { gap: 80px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--40 { gap: 40px; }
.concepts { display: flex; flex-direction: column; gap: 60px; }
.inset-img { width: min(374px, 100%); padding-left: 24px; }
.cs-media--link { display: block; }
.cs-head { display: flex; flex-direction: column; max-width: 628px; }
.cs-head .eyebrow { font-size: 14px; }
.cs-head h2 { font-size: 26px; line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; }
.prose { max-width: 628px; }
.prose > * + * { margin-top: 12px; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose strong { font-weight: 600; }
.cs-media { width: 100%; border-radius: 16px; overflow: hidden; }
.cs-media img, .cs-media video { width: 100%; height: auto; }
.zoomable { cursor: zoom-in; }

.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.cols-2--tight { gap: 20px; }

.persona {
  display: flex;
  flex-direction: column;
  gap: 50px;
  min-height: 394px;
  padding: 24px;
  border-radius: 20px;
  background: var(--accent);
  color: #f5f5f5;
}
.persona__num {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid rgba(245, 245, 245, 0.6);
  border-radius: 50%;
  font-size: 14px;
}
.persona__name { font-family: var(--serif); font-size: 27px; line-height: 1.5; font-weight: 400; letter-spacing: -0.01em; margin-top: 8px; }
.persona__desc { font-size: 14px; }
.persona__q { font-size: 20px; line-height: 1.5; }

.callout {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 628px;
  padding: 24px 20px;
  border: 0.5px solid var(--line);
  border-radius: 16px;
}
.callout img { width: 60px; height: 60px; flex: none; }

.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--tile-border, var(--line));
  border-radius: 20px;
  background: var(--tile-bg, var(--fact));
}
.tile h3, .tile p { margin: 0; }
.tile__title { font-size: 18px; line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; }
.tile__big { font-size: 29px; line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; }
.tile__q { font-size: 23px; line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; }
.tile--drs { gap: 16px; min-height: 239px; }

.note {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
}
.badge--lg { width: 33px; height: 33px; }
.steps { display: flex; flex-direction: column; gap: 40px; max-width: 628px; }
.step { display: flex; gap: 30px; align-items: flex-start; }
.step .prose > * + * { margin-top: 12px; }

.annotated { position: relative; width: min(564px, 100%); }
.annotated img { width: 100%; height: auto; }
.annotated .badge { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6); }

.arc { display: flex; flex-direction: column; gap: 8px; max-width: 628px; }
.arc__row { display: flex; align-items: center; gap: 16px; padding: 12px; }
.arc__num {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 29px;
  font-weight: 600;
}

.concept { display: flex; flex-direction: column; gap: 40px; }
.concept__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.concept__row--center { align-items: center; }
.concept__img { width: 100%; height: auto; max-height: 396px; object-fit: contain; object-position: 50% 0; }

/* ---------- More projects carousel ---------- */
.more { max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter); }
.more__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.more__arrows { display: flex; gap: 8px; }
.more__arrows button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.more__arrows button:hover { background: var(--hover); }
.more__arrows button:disabled { opacity: 0.35; cursor: default; }
.more__arrows svg { width: 20px; height: 20px; }
.more__track {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 10px;
}
.more__track::-webkit-scrollbar { display: none; }
.mcard {
  flex: 0 0 408px;
  scroll-snap-align: start;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.45s var(--ease-spring), transform 0.45s var(--ease-spring);
}
.mcard:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.mcard__media { aspect-ratio: 368 / 459; border-radius: 8px; overflow: hidden; background: var(--fact); }
.mcard__media img { width: 100%; height: 100%; object-fit: cover; }
.mcard__info { display: flex; flex-direction: column; gap: 12px; padding: 24px 16px 12px; }
.mcard__info h3 { font-size: 27px; line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; }
.mcard__info p { color: var(--muted); letter-spacing: -0.01em; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(33, 33, 33, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.lightbox img {
  max-width: min(1200px, 100%);
  max-height: 100%;
  border-radius: 16px;
  background: var(--surface);
  transform: scale(0.96);
  transition: transform 0.45s var(--ease-spring);
}
.lightbox.is-open img { transform: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--footer); color: var(--footer-ink); }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px var(--gutter) 60px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}
.footer a { text-decoration: none; transition: opacity 0.2s ease; }
.footer a:hover { opacity: 0.7; }
.footer__hello { grid-column: span 2; display: flex; flex-direction: column; gap: 8px; padding-bottom: 40px; align-self: start; }
.footer__hello h2 { color: #fff; }
.footer__hello a { text-decoration: underline; text-underline-offset: 3px; }
.footer__contact { grid-column: span 2; display: flex; flex-direction: column; gap: 24px; padding-bottom: 40px; }
.footer__contact .t-lead, .footer__contact .t-lead a { color: #fff; }
.footer__meta { font-size: 13px; line-height: 1.5; letter-spacing: -0.01em; }
.footer__meta--city { display: flex; gap: 10px; }
.footer__meta--right { text-align: right; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1023.98px) {
  .case { flex-direction: column; padding-top: calc(var(--nav-h) + 16px); }
  .case-side { position: static; flex: none; width: 100%; min-height: 0; }
  .case-content { width: 100%; }
  .case-card h1 { font-size: 29px; }
  .pcard__info { flex-basis: 300px; }
}

@media (max-width: 809.98px) {
  .t-display { font-size: 36px; }
  .ticker { font-size: 32px; }
  .t-page { font-size: 28px; }
  .t-lead, .cs-head h2 { font-size: 22px; }

  .hero { min-height: 0; padding-top: 200px; padding-bottom: 100px; }
  .hero__row { flex-direction: column; align-items: stretch; gap: 60px; }
  .hero__text { flex: none; }
  .link-card { max-width: none; }

  .project-list, .works-list { margin-top: 40px; gap: 40px; }
  .pcard__box { flex-direction: column; height: auto; gap: 0; }
  .pcard__media { order: -1; aspect-ratio: 4 / 3; flex: none; }
  .pcard__info { flex: none; padding: 24px 8px 8px; }
  .pcard__head { gap: 12px; }
  .project-list__more { margin-top: 40px; }

  .home-about { padding-bottom: 100px; gap: 40px; }
  .home-about__row { flex-direction: column; }
  .home-about__text { flex: none; }

  .page { padding-top: calc(var(--nav-h) + 60px); }
  .about-hero, .about-row, .imprint-row { flex-direction: column; }
  .about-hero__photo, .faq, .about-cta { flex: none; width: 100%; }
  .about-cta { min-height: 240px; padding: 32px 24px; }
  .imprint-card { flex: none; width: 100%; }

  .case { gap: 40px; padding-top: 100px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .cs-sections { gap: 80px; }
  .cols-3, .cols-2, .concept__row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .persona { min-height: 0; gap: 32px; }
  .step { gap: 16px; }

  .more { padding-top: 80px; padding-bottom: 80px; }
  .mcard { flex-basis: min(320px, 85vw); }

  .footer__inner { grid-template-columns: minmax(0, 1fr); padding-top: 80px; padding-bottom: 40px; row-gap: 12px; }
  .footer__hello, .footer__contact { grid-column: auto; }
  .footer__meta--right { text-align: left; }
}
