/* kaantuzcuoglu.com (see docs/creative-direction.md)
   Chiaroscuro: sections alternate Ink and Marble. Sinopia is the only accent. */

:root {
  --ink: #0f0e0d;
  --ink-2: #181614;
  --bone: #ede7df;
  --marble: #e7e0d7;
  --marble-2: #dcd3c8;
  --stone: #9a9288;
  --umber: #5f574f;
  --sinopia: #9c3f26;
  --sinopia-lit: #d9745a;
  --line-ink: rgba(237, 231, 223, 0.14);
  --line-marble: rgba(15, 14, 13, 0.14);

  --f-display: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;
  --f-text: 'EB Garamond', 'Garamond', 'Times New Roman', serif;

  --t-hero: clamp(2.375rem, 0.4rem + 6.2vw, 8rem);
  --t-display: clamp(2.125rem, 0.9rem + 5.2vw, 6.5rem);
  --t-h2: clamp(1.75rem, 1.1rem + 2.6vw, 3.5rem);
  --t-h3: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  --t-lead: clamp(1.375rem, 1rem + 1.6vw, 2.25rem);
  --t-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --t-label: 0.8125rem;
  --t-micro: 0.75rem;

  --ease-chisel: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-veil: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-ui: cubic-bezier(0.25, 0.1, 0.25, 1);
  --d-micro: 150ms;
  --d-ui: 300ms;

  --margin: clamp(20px, 4vw, 64px);
  --gutter: 16px;
  --section-y: clamp(96px, 14vw, 192px);
  --header-h: 72px;
  --mask-pad: 0.16em;
}

@media (min-width: 1024px) {
  :root { --gutter: 24px; --header-h: 88px; }
}

/* ---------- themes ---------- */

[data-theme='ink'], [data-page-theme='ink'] {
  --bg: var(--ink); --bg-2: var(--ink-2); --fg: var(--bone); --muted: var(--stone);
  --accent: var(--sinopia-lit); --line: var(--line-ink);
}
[data-theme='marble'], [data-page-theme='marble'] {
  --bg: var(--marble); --bg-2: var(--marble-2); --fg: var(--ink); --muted: var(--umber);
  --accent: var(--sinopia); --line: var(--line-marble);
}
[data-theme='marble-2'], [data-page-theme='marble-2'] {
  --bg: var(--marble-2); --bg-2: var(--marble); --fg: var(--ink); --muted: var(--umber);
  --accent: var(--sinopia); --line: var(--line-marble);
}
[data-theme] { background-color: var(--bg); color: var(--fg); }

/* With JS, sections go transparent and the body carries the color, so the
   shift between Ink and Marble can be tweened (main.js · themeShift). */
.theme-shift body { transition: background-color 600ms var(--ease-ui); }
.theme-shift main [data-theme] { background-color: transparent; }
.theme-shift main .next[data-theme] { background-color: var(--bg); }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-text);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }
em { font-style: italic; }
::selection { background: var(--sinopia); color: var(--bone); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: var(--margin); top: 12px; z-index: 200;
  padding: 16px 20px; background: var(--bone); color: var(--ink);
  font: 500 var(--t-label) / 1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase;
  transform: translateY(-200%); transition: transform var(--d-ui) var(--ease-ui);
}
.skip:focus { transform: none; }

.wrap { padding-inline: var(--margin); max-width: 1680px; margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }

/* ---------- type ---------- */

.t-hero, .t-display, .t-h2 {
  font-family: var(--f-display);
  text-transform: uppercase;
  margin: 0;
}
.t-hero { font-size: var(--t-hero); line-height: 0.92; }
.t-display { font-size: var(--t-display); line-height: 0.95; letter-spacing: -0.015em; }
.t-h2 { font-size: var(--t-h2); line-height: 1; font-weight: 700; letter-spacing: -0.01em; }
.t-h3 { font: 500 var(--t-h3) / 1.15 var(--f-display); }
.t-lead { font-family: var(--f-text); font-size: var(--t-lead); line-height: 1.25; letter-spacing: -0.005em; font-weight: 400; }
.t-label, .t-micro {
  font-family: var(--f-display); font-weight: 500; text-transform: uppercase; line-height: 1.2;
}
.t-label { font-size: var(--t-label); letter-spacing: 0.14em; }
.t-micro { font-size: var(--t-micro); letter-spacing: 0.16em; font-variant-numeric: tabular-nums; }

.w-thin { font-weight: 200; }
.w-bold { font-weight: 700; letter-spacing: -0.02em; }

.split { display: block; }
.split .line { display: block; }
/* Masks clip the dot on İ and the breve on Ğ unless padded (creative-direction §3). */
.js .split .line, .js [data-reveal='lines'] .split-line {
  overflow: hidden;
  padding-top: var(--mask-pad);
  margin-top: calc(var(--mask-pad) * -1);
  padding-bottom: 0.04em;
}

.numeral { font-family: var(--f-text); font-style: italic; color: var(--accent); text-transform: none; letter-spacing: 0; font-weight: 400; }
.eyebrow { color: var(--muted); display: flex; gap: 0.75em; align-items: baseline; margin-bottom: clamp(20px, 3vw, 40px); }
.eyebrow .numeral { font-size: 1.15em; }

.link-cta {
  display: inline-flex; align-items: center; gap: 0.6em; min-height: 44px;
  font: 500 var(--t-label) / 1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 calc(50% + 0.9em); background-repeat: no-repeat;
  transition: background-size var(--d-ui) var(--ease-ui), color var(--d-micro) var(--ease-ui);
}
.link-cta span { transition: transform var(--d-ui) var(--ease-chisel); }
.link-cta:hover { color: var(--accent); }
.link-cta:hover span { transform: translateX(4px); }
.link-cta--quiet { background-size: 0 1px; }
.link-cta--quiet:hover { background-size: 100% 1px; }

/* ---------- header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--margin);
  color: var(--header-fg, var(--bone));
  transition: transform 500ms var(--ease-chisel), color 400ms var(--ease-ui);
}
.site-header { --accent: var(--sinopia-lit); }
.site-header[data-header-theme='marble'] { --header-fg: var(--ink); --accent: var(--sinopia); }
.site-header:focus-within { transform: none; }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--header-bg, var(--ink)) 72%, transparent), transparent);
  opacity: 0; transition: opacity 400ms var(--ease-ui);
}
.site-header[data-header-theme='marble']::before { --header-bg: var(--marble); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header__logo { display: block; width: clamp(150px, 16vw, 210px); color: inherit; padding-block: 14px; }
.site-header__logo svg { width: 100%; height: auto; }

.nav { display: none; gap: clamp(20px, 3vw, 48px); }
.nav__link {
  font: 500 var(--t-label) / 1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase;
  position: relative; padding-block: 16px;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--d-ui) var(--ease-chisel);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current='page']::before {
  content: ''; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: var(--sinopia-lit);
}
.site-header[data-header-theme='marble'] .nav__link[aria-current='page']::before { background: var(--sinopia); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 12px; min-width: 44px; min-height: 44px;
  font: 500 var(--t-label) / 1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase;
}
.menu-btn__bars { position: relative; width: 22px; height: 9px; border-block: 1px solid currentColor; }
@media (min-width: 768px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}

/* Drawer: full screen, dark bar, two levels that slide (rmg.ro pattern). */
.menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--bone);
}
.menu[hidden] { display: none; }
.menu__bar {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--header-h); padding-inline: var(--margin);
  background: var(--ink-2); border-bottom: 1px solid var(--line-ink);
}
.menu__logo { display: block; width: clamp(150px, 16vw, 210px); padding-block: 14px; }
.menu__logo svg { width: 100%; height: auto; }
.menu__close {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-inline: 4px;
  font: 500 var(--t-label) / 1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase;
}
.menu__close .icon { width: 20px; height: 20px; }
.menu__panels { position: relative; flex: 1; overflow: hidden; }
.menu__panel {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  padding: 12px var(--margin) calc(24px + env(safe-area-inset-bottom, 0px));
  transition: transform 450ms var(--ease-chisel), opacity 300ms var(--ease-ui);
}
.menu__panel--sub { transform: translateX(100%); }
.menu.is-sub .menu__panel[data-menu-panel='main'] { transform: translateX(-30%); opacity: 0; }
.menu.is-sub .menu__panel--sub { transform: none; }
.menu__list { border-top: 1px solid var(--line-ink); }
.menu__row {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 68px; padding-block: 10px;
  border-bottom: 1px solid var(--line-ink); text-align: left;
  font: 500 1.0625rem / 1.25 var(--f-display); letter-spacing: 0.02em;
  transition: color var(--d-micro) var(--ease-ui), padding var(--d-ui) var(--ease-chisel);
}
.menu__row:hover, .menu__row:focus-visible { color: var(--sinopia-lit); padding-left: 6px; }
.menu__row[aria-current='page'] { color: var(--sinopia-lit); }
.menu__icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-ink); color: var(--sinopia-lit);
}
.menu__label { flex: 1; display: grid; gap: 2px; }
.menu__sub { font: 400 0.9375rem / 1.2 var(--f-text); font-style: italic; color: var(--stone); letter-spacing: 0; }
.menu__count { font-size: 1.05rem; }
.menu__chev { display: grid; color: var(--stone); }
.menu__thumb { flex: none; width: 44px; height: 55px; overflow: hidden; background: var(--ink-2); }
.menu__thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu__row--project { min-height: 76px; }
.menu__back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 52px; margin-left: -6px; padding-right: 12px;
  font: 500 var(--t-label) / 1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone);
}
.menu__back:hover { color: var(--bone); }
.menu__heading { color: var(--stone); padding: 4px 0 14px; }
.menu__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 10px; }
.menu__wa, .menu__phone {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding-inline: 16px;
  font: 500 var(--t-label) / 1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase;
}
.menu__wa { background: var(--bone); color: var(--ink); }
.menu__wa .icon { color: #1f9d55; }
.menu__phone { border: 1px solid var(--line-ink); }
.menu__meta { color: var(--stone); text-align: center; padding-top: 6px; }

/* Bottom tab bar on phones: a floating glass pill with the five primary pages. */
.tabbar { display: none; }
@media (max-width: 767px) {
  .tabbar {
    display: flex; position: fixed; z-index: 45;
    left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: 480px; margin-inline: auto; padding: 0 4px;
    border-radius: 18px; color: var(--bone);
    background: rgba(24, 22, 20, 0.78);
    -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(237, 231, 223, 0.12);
    box-shadow: 0 14px 34px rgba(15, 14, 13, 0.32);
  }
  .tabbar__item {
    position: relative; flex: 1 1 0; min-width: 0; min-height: 58px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 8px 2px 7px; color: var(--stone);
    font: 500 0.6875rem / 1 var(--f-display); letter-spacing: 0.01em; white-space: nowrap;
  }
  .tabbar__item .icon { width: 22px; height: 22px; }
  .tabbar__item[aria-current='page'] { color: var(--bone); }
  .tabbar__item[aria-current='page']::after {
    content: ''; position: absolute; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--sinopia-lit);
  }
  .tabbar__item:active { color: var(--sinopia-lit); }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: 20px; }
}

/* Floating WhatsApp + back-to-top. */
.fab {
  position: fixed; z-index: 44; right: var(--margin); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.fab__btn {
  display: grid; place-items: center; border-radius: 50%;
  box-shadow: 0 10px 28px rgba(15, 14, 13, 0.3);
  transition: transform var(--d-ui) var(--ease-chisel), opacity var(--d-ui) var(--ease-ui), background var(--d-micro);
}
.fab__wa { width: 56px; height: 56px; background: #1f9d55; color: #fff; }
.fab__wa .icon { width: 28px; height: 28px; }
.fab__wa:hover { transform: scale(1.06); background: #188a49; }
.fab__top {
  width: 44px; height: 44px; color: var(--bone); background: rgba(24, 22, 20, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(237, 231, 223, 0.16);
  opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden;
}
.fab__top .icon { width: 20px; height: 20px; }
.fab__top.is-on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.fab__top:hover { background: var(--ink); color: var(--sinopia-lit); }
/* The footer carries its own WhatsApp and back-to-top links, so the floating pair steps aside there. */
.fab { transition: opacity var(--d-ui) var(--ease-ui), transform var(--d-ui) var(--ease-chisel); }
.fab.is-away { opacity: 0; transform: translateY(16px); pointer-events: none; }
html:not(.js) .fab__top { display: none; }
@media (max-width: 767px) {
  .fab { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .fab__wa { width: 52px; height: 52px; }
}
.intro .fab, .intro .tabbar { visibility: hidden; }

/* ---------- preloader ---------- */

.preloader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--bone);
  display: none; place-items: center;
}
.intro .preloader { display: grid; }
.preloader__mark { position: relative; width: min(72vw, 560px); }
.preloader__mark svg { width: 100%; height: auto; clip-path: inset(0 100% 0 0); }
.preloader__line { position: absolute; top: -12%; bottom: -12%; left: 0; width: 1px; background: var(--bone); opacity: 0; }
.preloader__count { position: absolute; left: var(--margin); bottom: 28px; color: var(--stone); }

/* ---------- hero / poster wall ---------- */

.hero {
  position: relative; min-height: 100svh; isolation: isolate;
  display: grid; grid-template-columns: 1fr; align-content: end;
  padding: calc(var(--header-h) + 24px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero__meta { position: absolute; z-index: 3; top: calc(var(--header-h) + 4px); left: var(--margin); color: var(--stone); max-width: 70vw; }

/* Columns of posters drift in alternate directions; the tilt keeps it alive without hiding the work. */
.wall { position: absolute; z-index: 0; inset: 0 0 auto; height: 62svh; overflow: hidden; pointer-events: none; --wall-gap: 10px; }
.wall::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--ink) 0%, rgba(15, 14, 13, 0.55) calc(var(--header-h) + 20px), rgba(15, 14, 13, 0) 30%),
    linear-gradient(to top, var(--ink) 0%, rgba(15, 14, 13, 0.6) 22%, rgba(15, 14, 13, 0) 50%);
}
.wall__tilt {
  position: absolute; inset: -18% -14%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wall-gap);
  transform: rotate(-7deg);
}
.wall__col { position: relative; min-width: 0; }
.wall__col:nth-child(4) { display: none; }
.wall__track { display: flex; flex-direction: column; will-change: transform; animation: wall-up var(--dur, 60s) linear infinite; }
.wall__col--down .wall__track { animation-name: wall-down; }
.wall__track img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: var(--wall-gap); background: var(--ink-2); }
@keyframes wall-up { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -50%, 0); } }
@keyframes wall-down { from { transform: translate3d(0, -50%, 0); } to { transform: translate3d(0, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .wall__track { animation: none !important; } }

.hero__text { padding-inline: var(--margin); position: relative; z-index: 2; }
.hero__text .t-hero { max-width: 19ch; }
.hero__sub { margin-top: clamp(20px, 2.5vw, 32px); max-width: 34ch; color: var(--bone); opacity: 0.86; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 24px; }
.hero__scroll { display: none; }

@media (min-width: 640px) and (max-width: 1023px) {
  .wall { height: 60svh; }
  .wall__tilt { grid-template-columns: repeat(4, minmax(0, 1fr)); inset: -20% -10%; }
  .wall__col:nth-child(4) { display: block; }
}

@media (min-width: 1024px) {
  .hero { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); padding-inline: var(--margin); align-content: stretch; }
  .wall { inset: 0 0 0 auto; width: 62%; height: auto; --wall-gap: 14px; }
  .wall::after {
    background:
      linear-gradient(to right, var(--ink) 0%, rgba(15, 14, 13, 0.82) 14%, rgba(15, 14, 13, 0) 42%),
      linear-gradient(to bottom, rgba(15, 14, 13, 0.85) 0%, rgba(15, 14, 13, 0) 22%),
      linear-gradient(to top, rgba(15, 14, 13, 0.75) 0%, rgba(15, 14, 13, 0) 20%);
  }
  .wall__tilt { inset: -22% -6% -22% 2%; grid-template-columns: repeat(4, minmax(0, 1fr)); transform: rotate(-7deg); }
  .wall__col:nth-child(4) { display: block; }
  .hero__text { grid-column: 1 / 7; grid-row: 1; align-self: end; padding-inline: 0; }
  .hero__scroll { display: flex; gap: 0.75em; position: absolute; z-index: 3; right: calc(var(--margin) + 88px); bottom: clamp(40px, 6vw, 72px); color: var(--bone); }
}

/* Phones: the hero fills the screen above the tab bar, so its calls to action are never hidden behind it. */
@media (max-width: 767px) {
  .hero { min-height: calc(100svh - 84px - env(safe-area-inset-bottom, 0px)); padding-bottom: 24px; }
  .hero__meta { display: none; }
  .wall { height: 56svh; }
  .wall::after {
    background:
      linear-gradient(to bottom, var(--ink) 0%, rgba(15, 14, 13, 0.5) calc(var(--header-h) + 10px), rgba(15, 14, 13, 0) 26%),
      linear-gradient(to top, var(--ink) 0%, var(--ink) 12%, rgba(15, 14, 13, 0.78) 30%, rgba(15, 14, 13, 0) 58%);
  }
}
@media (max-width: 767px) and (max-height: 760px) {
  .wall { height: 48svh; }
  .hero__sub { font-size: 1.1875rem; margin-top: 16px; }
  .hero__ctas { margin-top: 16px; }
}

/* ---------- maxim: one quote, set large, lit word by word ---------- */

.maxim { overflow: hidden; }
.maxim__figure { position: relative; }
.maxim__mark {
  position: absolute; z-index: 0; top: 0.04em; left: -0.06em; pointer-events: none;
  font: italic 400 clamp(9rem, 6rem + 18vw, 26rem) / 0.8 var(--f-text); color: var(--accent); opacity: 0.16;
}
.maxim__quote { position: relative; z-index: 1; padding-top: clamp(56px, 6vw, 96px); }
.maxim__quote p {
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: -0.012em;
  font-size: clamp(2rem, 0.8rem + 4.6vw, 6.25rem); line-height: 1.02; max-width: 17ch;
}
.maxim__thin { font-weight: 200; }
.maxim__bold { display: block; margin-top: 0.12em; font-weight: 700; letter-spacing: -0.02em; }
.maxim__bold .qw:last-child { color: var(--accent); }
.qw { transition: opacity 400ms var(--ease-ui); }
.maxim__foot { display: grid; gap: 40px; margin-top: clamp(48px, 6vw, 96px); }
.maxim__cap { display: grid; gap: 10px; align-content: start; }
.maxim__rule { display: block; width: 64px; height: 1px; background: var(--accent); margin-bottom: 10px; transform-origin: left; }
.maxim__src { color: var(--muted); text-transform: none; letter-spacing: 0.04em; }
.maxim__orig { margin-top: 10px; max-width: 40ch; color: var(--muted); font-size: 1.0625rem; line-height: 1.45; }
.maxim__bridge { font-size: var(--t-lead); line-height: 1.25; max-width: 30ch; }
.maxim__bridge em { color: var(--muted); }
@media (min-width: 1024px) {
  /* Pinned on desktop, so the whole composition has to fit one screen: type scales with height too. */
  .maxim { min-height: 100vh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 8px) 40px; }
  .maxim > .wrap { width: 100%; }
  .maxim .eyebrow { margin-bottom: 0; }
  .maxim__quote { padding-top: clamp(28px, 6vh, 72px); }
  .maxim__quote p { font-size: clamp(2.5rem, min(0.6rem + 3.9vw, 7.4vh), 6rem); max-width: 22ch; }
  .maxim__foot { margin-top: clamp(32px, 6vh, 72px); }
  .maxim__foot { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  .maxim__cap { grid-column: 1 / 6; }
  .maxim__bridge { grid-column: 7 / 13; justify-self: end; }
}

/* ---------- section heads ---------- */

.section-head { display: grid; gap: 0; margin-bottom: clamp(48px, 7vw, 112px); }
.section-head__intro { margin-top: 28px; max-width: 36ch; color: var(--muted); }
.section-head__intro em { color: var(--fg); }

/* ---------- work index ---------- */

.work-list { border-top: 1px solid var(--line); }
.work-row { border-bottom: 1px solid var(--line); }
.work-row__link {
  display: grid; gap: 14px 16px; padding-block: 28px;
  grid-template-columns: auto 1fr; align-items: baseline;
  transition: opacity var(--d-ui) var(--ease-ui);
}
.work-row__num { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); min-width: 2.2em; }
.work-row__name {
  font: 200 clamp(1.875rem, 1rem + 4vw, 5.25rem) / 0.98 var(--f-display);
  text-transform: uppercase; letter-spacing: -0.01em;
  transition: transform var(--d-ui) var(--ease-chisel);
}
.work-row__name .w-bold { font-weight: 700; }
.work-row__tags { grid-column: 2; color: var(--muted); line-height: 1.6; }
.work-row__year { display: none; color: var(--muted); }
.work-row__cover { grid-column: 1 / -1; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); margin-top: 8px; }
.work-row__cover img, .work-row__cover .logo-tile { width: 100%; height: 100%; object-fit: cover; }

.logo-tile { display: grid; place-items: center; width: 100%; height: 100%; background: var(--marble-2); padding: 22%; }
.logo-tile img { width: 100%; height: auto; object-fit: contain; }
.logo-tile--lg { aspect-ratio: 4 / 5; }

@media (min-width: 1024px) {
  .work-row__link { grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 0.55fr) 4rem; align-items: center; padding-block: 34px; min-height: 96px; }
  .work-row__tags { grid-column: auto; }
  .work-row__year { display: block; text-align: right; }
  .work-row__cover { display: none; }
  /* Hover dims siblings and nudges the hovered name (creative-direction §5.03). */
  .work-list:hover .work-row__link { opacity: 0.35; }
  .work-list .work-row__link:hover, .work-list .work-row__link:focus-visible { opacity: 1; }
  .work-row__link:hover .work-row__name { transform: translateX(16px); }
}

/* ---------- salon: a row of posters, swiped on touch, stepped with arrows on desktop ---------- */

.salon { position: relative; padding-block: var(--section-y); overflow: hidden; }
.salon__head { padding-inline: var(--margin); margin-bottom: 40px; }
.salon__note { margin-top: 20px; color: var(--muted); font-size: var(--t-lead); line-height: 1.25; max-width: 22ch; }
.salon__progress { display: none; }
.salon__count { display: none; }
.salon__nav { display: none; gap: 12px; margin-top: 32px; }
.salon__viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding-inline: var(--margin); scroll-padding-inline: var(--margin);
}
.salon__viewport::-webkit-scrollbar { display: none; }
.salon__track { display: flex; gap: 14px; width: max-content; align-items: flex-start; }
.salon__card { width: 78vw; max-width: 420px; scroll-snap-align: start; flex: none; }
.salon__open { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); cursor: zoom-in; }
.salon__img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-chisel); }
.salon__open:hover .salon__img { transform: scale(1.03); }
.salon__card figcaption { margin-top: 12px; display: flex; gap: 10px; align-items: baseline; color: var(--muted); }
.salon__card figcaption em { color: var(--fg); font-size: 1.05rem; }
.salon__more {
  flex: none; width: 60vw; max-width: 360px; aspect-ratio: 4 / 5; scroll-snap-align: start;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 24px; border: 1px solid var(--line); transition: background var(--d-ui) var(--ease-ui);
}
.salon__more:hover { background: var(--ink-2); }
.salon__hint { padding: 20px var(--margin) 0; color: var(--stone); transition: opacity var(--d-ui); }
.salon__hint.is-gone { opacity: 0; }

.salon__arrow {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(237, 231, 223, 0.3); color: var(--bone);
  transition: background var(--d-ui) var(--ease-ui), color var(--d-micro), border-color var(--d-ui), opacity var(--d-ui);
}
.salon__arrow .icon { width: 22px; height: 22px; }
.salon__arrow:hover:not(:disabled) { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.salon__arrow:disabled { opacity: 0.28; cursor: default; }

/* Arrows only where there is a mouse; fingers swipe. Without JS the arrows can't work, so fall back to a scrollbar. */
@media (hover: hover) and (pointer: fine) {
  .js .salon__nav { display: flex; }
  .js .salon__hint { display: none; }
  html:not(.js) .salon__viewport { scrollbar-width: thin; scrollbar-color: var(--stone) transparent; padding-bottom: 12px; }
  html:not(.js) .salon__viewport::-webkit-scrollbar { display: block; height: 6px; }
  html:not(.js) .salon__viewport::-webkit-scrollbar-thumb { background: var(--stone); }
}

@media (min-width: 1024px) {
  .salon__pin { display: grid; grid-template-columns: minmax(300px, 28vw) minmax(0, 1fr); align-items: center; }
  .salon__head { margin: 0; position: relative; z-index: 2; }
  .salon__progress { display: block; position: relative; height: 1px; width: 100%; max-width: 220px; background: var(--line); margin-top: 48px; }
  .salon__progress span { position: absolute; inset: 0; background: var(--sinopia-lit); transform-origin: left; transform: scaleX(0); transition: transform 400ms var(--ease-chisel); }
  .salon__count { display: block; margin-top: 14px; color: var(--stone); }
  .salon__viewport { min-width: 0; padding-left: 0; scroll-padding-inline: 0; }
  .salon__track { gap: 28px; align-items: center; min-height: min(80vh, 820px); }
  .salon__card { width: auto; max-width: none; }
  .salon__open { height: min(68vh, 700px); width: auto; }
  .salon__card.is-low .salon__open { height: min(54vh, 560px); }
  .salon__card.is-low { align-self: flex-end; }
  .salon__card:not(.is-low) { align-self: flex-start; }
  .salon__more { height: min(54vh, 560px); width: auto; max-width: none; }
}

/* ---------- services ---------- */

.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 3rem 1fr; gap: 12px 16px;
  padding-block: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line);
}
.service__num { font-size: 1.5rem; line-height: 1; padding-top: 0.2em; }
.service__name a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size var(--d-ui) var(--ease-ui), color var(--d-micro); }
.service__name a:hover { background-size: 100% 2px; color: var(--accent); }
.service__body { grid-column: 2; display: grid; gap: 14px; max-width: 48ch; }
.service__related { color: var(--muted); line-height: 1.8; }
.service__related span { margin-right: 0.6em; }
.service__related a { display: inline-block; padding-block: 6px; color: var(--fg); background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size var(--d-ui) var(--ease-ui); }
.service__related a:hover { background-size: 100% 1px; }
.services__also { margin-top: 28px; color: var(--muted); }
@media (min-width: 1024px) {
  .service { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: baseline; }
  .service__num { grid-column: 1; }
  .service__name { grid-column: 2 / 7; }
  .service__name a span { display: inline-block; font-weight: 200; }
  .service__body { grid-column: 7 / 12; }
}

.marquee { position: relative; margin-top: var(--section-y); overflow-x: clip; overflow-y: visible; border-block: 1px solid var(--line); padding-block: clamp(18px, 2.5vw, 32px); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__toggle {
  position: absolute; right: var(--margin); bottom: calc(100% + 4px); z-index: 1;
  min-height: 44px; padding: 0 2px; color: var(--muted);
}
.marquee__toggle:hover { color: var(--fg); }
@media (prefers-reduced-motion: reduce) { .marquee__toggle { display: none; } }
html:not(.js) .marquee__toggle { display: none; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__group span { font: 200 var(--t-display) / 1 var(--f-display); text-transform: uppercase; white-space: nowrap; padding-inline: 0.35em; }
.marquee__group em { font-family: var(--f-text); font-size: calc(var(--t-display) * 0.7); color: var(--accent); padding-inline: 0.2em; }

/* ---------- approach ---------- */

.approach { padding-top: 0; }
.approach__list { display: grid; gap: 48px; }
.approach__item { position: relative; padding-top: 28px; display: grid; gap: 14px; align-content: start; max-width: 34ch; }
.approach__item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--fg); transform-origin: left; }
.js .approach__item::before { transform: scaleX(var(--rule, 0)); transition: transform 900ms var(--ease-chisel); }
.approach__item .numeral { font-size: 1.4rem; }
.approach__item p { color: var(--muted); }
@media (min-width: 768px) { .approach__list { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); } }

/* ---------- about teaser / portrait ---------- */

.about-teaser__grid { display: grid; gap: 48px; }
.about-teaser__lead { max-width: 30ch; margin-bottom: 32px; }
/* Portrait hung like a painting: crisp edge, a hairline frame offset behind it, caption below. */
.portrait { position: relative; width: min(100%, 560px); margin-right: 14px; }
.portrait > img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; background: var(--marble-2); }
.portrait::before {
  content: ''; position: absolute; z-index: 0; top: 14px; left: 14px; right: -14px; aspect-ratio: 4 / 5;
  border: 1px solid var(--accent); opacity: 0.55; pointer-events: none;
}
.portrait__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.portrait__cap .t-micro { color: var(--muted); }
@media (min-width: 1024px) {
  .about-teaser__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: center; }
  .about-teaser__text { grid-column: 1 / 6; }
  .about-teaser .portrait { grid-column: 7 / 12; width: auto; justify-self: stretch; }
}

/* ---------- faq ---------- */

.faq__grid { display: grid; gap: 48px; }
.faq__head .t-display { font-size: clamp(2.25rem, 0.4rem + 3vw, 4.25rem); }
.faq__more { margin-top: 28px; color: var(--muted); display: grid; gap: 6px; justify-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 28px; align-items: baseline; gap: 12px;
  padding-block: 24px; min-height: 44px;
  font: 500 clamp(1.125rem, 1rem + 0.5vw, 1.4375rem) / 1.3 var(--f-display);
  transition: color var(--d-micro) var(--ease-ui);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__num { font-size: 1.05em; }
.faq__icon { position: relative; width: 18px; height: 18px; align-self: center; justify-self: end; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor;
  transition: transform var(--d-ui) var(--ease-chisel);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__item[open] .faq__q { color: var(--accent); }
.faq__a { padding: 0 0 28px calc(2.6rem + 12px); max-width: 64ch; color: var(--muted); font-size: var(--t-body); line-height: 1.6; }
/* Smooth open/close where the browser supports animating to auto height. */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq__item::details-content { height: 0; overflow: clip; transition: height 450ms var(--ease-chisel), content-visibility 450ms allow-discrete; }
  .faq__item[open]::details-content { height: auto; }
}
@media (max-width: 639px) {
  .faq__q { grid-template-columns: 2rem minmax(0, 1fr) 22px; }
  .faq__a { padding-left: calc(2rem + 12px); }
}
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .faq__head { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 24px); }
  .faq__list { grid-column: 6 / 13; }
}

/* ---------- contact band / channels ---------- */

.cta__line { margin-top: 28px; max-width: 34ch; color: var(--muted); }
.channels { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.channel {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center;
  padding-block: 22px; border-bottom: 1px solid var(--line); min-height: 44px;
  transition: color var(--d-micro) var(--ease-ui);
}
.channel__label { color: var(--muted); grid-column: 1; }
.channel__value { grid-column: 1; font: 500 clamp(1.375rem, 1rem + 1.6vw, 2.25rem) / 1.1 var(--f-display); }
.channel__arrow { grid-column: 2; grid-row: 1 / 3; font: 200 clamp(1.5rem, 1rem + 1.5vw, 2.5rem) / 1 var(--f-display); transition: transform var(--d-ui) var(--ease-chisel); }
.channel:hover { color: var(--accent); }
.channel:hover .channel__arrow { transform: translateX(8px); }
.cta__hours { margin-top: 20px; color: var(--muted); }
@media (min-width: 1024px) {
  .channels:not(.channels--stack) { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0 var(--gutter); border-top: 0; }
  .channels:not(.channels--stack) .channel { border-top: 1px solid var(--line); }
  .channel { grid-template-columns: 1fr auto; }
}

/* ---------- footer ---------- */

.site-footer { background: var(--ink-2); color: var(--bone); --bg: var(--ink-2); --muted: var(--stone); --line: var(--line-ink); padding: clamp(72px, 9vw, 128px) 0 24px; overflow: hidden; border-top: 1px solid var(--line-ink); }
.site-footer__inner { padding-inline: var(--margin); max-width: 1680px; margin-inline: auto; }
.site-footer__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--gutter); }
.site-footer__intro { grid-column: 1 / -1; }
.site-footer__tag { font-size: var(--t-lead); line-height: 1.2; max-width: 20ch; }
.site-footer__tag em { color: var(--sinopia-lit); }
.site-footer__cta {
  display: inline-flex; align-items: center; gap: 18px; margin-top: 36px; min-height: 56px; padding: 0 22px 0 24px;
  border: 1px solid rgba(237, 231, 223, 0.32); font: 500 var(--t-label) / 1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase;
  transition: background var(--d-ui) var(--ease-ui), color var(--d-micro), border-color var(--d-ui);
}
.site-footer__cta-arrow { font-size: 1.1rem; transition: transform var(--d-ui) var(--ease-chisel); }
.site-footer__cta:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.site-footer__cta:hover .site-footer__cta-arrow { transform: translateX(4px); }
.site-footer__head { color: var(--stone); padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line-ink); }
.site-footer__col ul { display: grid; }
.site-footer__col a {
  display: block; padding-block: 9px; font: 400 1rem / 1.35 var(--f-display); letter-spacing: 0.01em;
  transition: color var(--d-micro) var(--ease-ui), transform var(--d-ui) var(--ease-chisel);
}
.site-footer__col a:hover { color: var(--sinopia-lit); transform: translateX(4px); }
.site-footer__label { display: block; color: var(--stone); font-size: 0.6875rem; margin-bottom: 4px; }
.site-footer__hours { margin-top: 14px; color: var(--stone); font-size: 0.9375rem; font-style: italic; }
.site-footer__col:last-child { grid-column: 1 / -1; }
.site-footer__mark { display: block; color: var(--bone); margin-top: clamp(72px, 10vw, 144px); opacity: 0.92; transition: opacity var(--d-ui); }
.site-footer__mark:hover { opacity: 1; }
.site-footer__mark svg { width: 100%; height: auto; }
.site-footer__base {
  display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line-ink); color: var(--stone);
}
.site-footer__base a { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.site-footer__base a:hover { color: var(--bone); }
.site-footer__credit span[lang] { color: var(--bone); transition: color var(--d-micro) var(--ease-ui); }
.site-footer__credit:hover span[lang] { color: var(--sinopia-lit); }
@media (min-width: 640px) {
  .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__col:last-child { grid-column: auto; }
}
@media (min-width: 1024px) {
  .site-footer__top { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .site-footer__intro { grid-column: 1 / 5; }
  .site-footer__col:nth-child(2) { grid-column: 6 / 8; }
  .site-footer__col:nth-child(3) { grid-column: 8 / 11; }
  .site-footer__col:last-child { grid-column: 11 / 13; }
}

/* ---------- cursor + preview (desktop pointer only, enabled by JS) ---------- */

.cursor, .preview { display: none; }
.has-cursor .cursor {
  display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--sinopia-lit);
  opacity: 0;
  transition: width var(--d-ui) var(--ease-chisel), height var(--d-ui) var(--ease-chisel), margin var(--d-ui) var(--ease-chisel), background var(--d-ui), opacity var(--d-ui);
}
.has-cursor .cursor.is-live { opacity: 1; }
.has-cursor .cursor.is-big { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: var(--bone); }
.cursor__label { font: 500 10px / 1 var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity var(--d-micro); }
.cursor.is-big .cursor__label { opacity: 1; }
.has-cursor .preview {
  display: block; position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: 280px; aspect-ratio: 4 / 5; margin: -175px 0 0 -140px; overflow: hidden; background: var(--ink-2);
  opacity: 0; transition: opacity var(--d-ui) var(--ease-ui);
}
.has-cursor .preview.is-on { opacity: 1; }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview .is-logo { object-fit: contain; padding: 22%; background: var(--marble-2); }

/* ---------- page hero (work index) ---------- */

.page-hero { padding: calc(var(--header-h) + clamp(64px, 10vw, 160px)) 0 clamp(48px, 6vw, 96px); }
.page-hero__intro { margin-top: 28px; color: var(--muted); }
.page-hero + .work { padding-top: 0; }

/* ---------- case study ---------- */

.case-hero { padding: calc(var(--header-h) + clamp(40px, 6vw, 96px)) 0 0; }
.case-hero__grid { display: grid; gap: 40px; }
.case-hero__title { margin-top: 8px; }
.case-hero__tagline { margin-top: 28px; max-width: 26ch; color: var(--muted); }
.case-hero__cover { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); order: -1; }
.case-hero__cover img, .case-hero__cover .logo-tile { width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags li { border: 1px solid var(--line); padding: 9px 12px; color: var(--muted); }
.case-hero__live { margin-top: 24px; }
.meta-strip {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(56px, 7vw, 112px);
  border-block: 1px solid var(--line);
}
.meta-strip > div { padding: 22px 16px 22px 0; }
.meta-strip dt { color: var(--muted); margin-bottom: 8px; }
.meta-strip dd { font: 500 1.0625rem / 1.35 var(--f-display); }
@media (min-width: 1024px) {
  .case-hero__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; }
  .case-hero__text { grid-column: 1 / 7; padding-bottom: 8px; }
  .case-hero__cover { grid-column: 8 / 13; order: 0; }
  .meta-strip { grid-template-columns: repeat(4, 1fr); }
}

.story__grid { display: grid; gap: 14px; }
.story__label { color: var(--muted); margin-top: 32px; }
.story__label:first-child { margin-top: 0; }
.story__text { max-width: 40ch; }
.fulltext { margin-top: 48px; border-top: 1px solid var(--line); }
.fulltext summary {
  list-style: none; cursor: pointer; padding-block: 22px; min-height: 44px;
  display: flex; justify-content: space-between; color: var(--muted);
}
.fulltext summary::-webkit-details-marker { display: none; }
.fulltext summary span { transition: transform var(--d-ui) var(--ease-chisel); font-size: 1.2rem; line-height: 0.8; }
.fulltext[open] summary span { transform: rotate(45deg); }
.fulltext__body { display: grid; gap: 1em; max-width: 62ch; padding-bottom: 24px; }
@media (min-width: 1024px) {
  .story__grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 56px; align-items: baseline; }
  .story__label { grid-column: 1 / 4; margin-top: 0; position: sticky; top: calc(var(--header-h) + 24px); }
  .story__text { grid-column: 5 / 12; }
  .fulltext { grid-column: 5 / 12; margin-top: 0; }
}

.gallery { padding-top: 0; }
.gallery__head { display: grid; gap: 8px; margin-bottom: clamp(40px, 5vw, 80px); }
.gallery__head .t-lead { color: var(--muted); max-width: 32ch; }
.gallery__count { color: var(--accent); }
.g-row { display: grid; gap: var(--gutter); margin-bottom: clamp(16px, 4vw, 64px); }
.g-row--2, .g-row--3 { grid-template-columns: 1fr 1fr; }
.g-row--3 > :first-child { grid-column: 1 / -1; }
.g-item { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-chisel); }
.g-item:hover img { transform: scale(1.025); }
.gallery--wide .g-row--3 { align-items: start; }
@media (min-width: 1024px) {
  .gallery--wide .g-row--1 .g-item { grid-column: 1 / -1; }
  .gallery--wide .g-row--3 > :nth-child(2) { margin-top: 64px; }
}
@media (min-width: 1024px) {
  .g-row--1 { grid-template-columns: repeat(12, 1fr); }
  .g-row--1 .g-item { grid-column: 3 / 11; }
  .g-row--3 { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .g-row--3 > :first-child { grid-column: auto; }
  .g-row--3 > :nth-child(2) { margin-top: 96px; }
}

.scope-rows__list { border-top: 1px solid var(--line); }
.scope-row { display: grid; grid-template-columns: 3rem 1fr; gap: 12px 16px; padding-block: clamp(32px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.scope-row .numeral { font-size: 1.5rem; }
.scope-row__name { font-weight: 200; }
.scope-row p { grid-column: 2; max-width: 48ch; color: var(--muted); }

.next {
  position: relative; display: grid; gap: 18px; overflow: hidden;
  padding: clamp(80px, 12vw, 176px) var(--margin);
  border-top: 1px solid var(--line);
}
.next__label { color: var(--muted); display: flex; gap: 0.75em; align-items: baseline; }
.next__name { position: relative; z-index: 1; transition: transform var(--d-ui) var(--ease-chisel); max-width: 14ch; }
.next__peek { position: absolute; right: -6vw; top: 50%; width: min(34vw, 380px); aspect-ratio: 4 / 5; transform: translateY(-50%) translateX(22%); transition: transform 900ms var(--ease-chisel); opacity: 0.9; }
.next__peek img { width: 100%; height: 100%; object-fit: cover; }
.next:hover .next__name { transform: translateX(16px); }
.next:hover .next__peek { transform: translateY(-50%) translateX(0); }
@media (max-width: 767px) { .next__peek { display: none; } }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(15, 14, 13, 0.96); color: var(--bone);
  display: grid; place-items: center; padding: 64px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: min(92vw, 1100px); max-height: calc(100svh - 140px); width: auto; height: auto; object-fit: contain; }
.lightbox__count { position: absolute; left: var(--margin); top: 24px; color: var(--stone); }
.lightbox__close { position: absolute; right: var(--margin); top: 12px; min-height: 44px; }
.lightbox__btn { position: absolute; bottom: 16px; width: 56px; height: 56px; font: 200 1.75rem / 1 var(--f-display); }
.lightbox__prev { left: var(--margin); }
.lightbox__next { right: var(--margin); }
.lightbox__btn:hover, .lightbox__close:hover { color: var(--sinopia-lit); }
@media (min-width: 1024px) {
  .lightbox__btn { top: 50%; bottom: auto; transform: translateY(-50%); }
}

/* ---------- about page ---------- */

.about-hero { padding: calc(var(--header-h) + clamp(24px, 4vw, 64px)) 0 clamp(64px, 8vw, 128px); }
.about-hero__grid { display: grid; gap: clamp(48px, 8vw, 72px); }
.about-hero .t-display { font-size: clamp(2.25rem, 1rem + 3.6vw, 5.25rem); }
.about-hero__intro { margin-top: 32px; max-width: 30ch; }
.about-hero__note { margin-top: 20px; max-width: 46ch; color: var(--muted); }
.portrait--hero { width: 100%; max-width: 640px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); max-width: 520px; }
.facts > div { padding: 18px 12px 0 0; }
.facts dt { color: var(--muted); }
.facts dd { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); line-height: 1; margin-top: 10px; }
@media (min-width: 900px) {
  .about-hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .about-hero__text { padding-top: clamp(0px, 2vw, 32px); }
  .portrait--hero { grid-column: 1 / 6; max-width: none; }
  /* Fit the whole portrait in the first screen on laptops: width follows the available height. */
  .portrait--hero > img, .portrait--hero::before { width: min(100%, calc((100svh - var(--header-h) - 130px) * 0.8)); }
  .about-hero__text { grid-column: 7 / 13; }
}
@media (min-width: 1400px) { .about-hero__text { grid-column: 7 / 12; } }
.bio .wrap { display: grid; gap: clamp(56px, 7vw, 112px); }
.bio__block { display: grid; gap: 20px; }
.bio__label { display: flex; gap: 0.75em; align-items: baseline; }
.bio__text { display: grid; gap: 1em; max-width: 62ch; }
.bio__text a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; }
.bio__list { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 62ch; }
.bio__list li { padding-block: 14px; border-bottom: 1px solid var(--line); font: 500 1.0625rem / 1.3 var(--f-display); }
@media (min-width: 1024px) {
  .bio__block { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; }
  .bio__label { grid-column: 1 / 5; position: sticky; top: calc(var(--header-h) + 24px); }
  .bio__text, .bio__list { grid-column: 6 / 12; }
}

.quote__text { font: italic 400 clamp(1.875rem, 1rem + 3.6vw, 4.25rem) / 1.12 var(--f-text); max-width: 22ch; }
.quote__text em { color: var(--accent); }
.quote figcaption { margin-top: 32px; color: var(--muted); }

.clients { padding-top: 0; }
.clients__list { border-top: 1px solid var(--line); }
.clients__list a {
  display: flex; gap: 1em; align-items: baseline; padding-block: 20px; border-bottom: 1px solid var(--line);
  font: 200 var(--t-h2) / 1.05 var(--f-display); text-transform: uppercase;
  transition: color var(--d-micro), padding var(--d-ui) var(--ease-chisel);
}
.clients__list a:hover { color: var(--accent); padding-left: 12px; }
.clients__list .numeral { font-size: 0.6em; min-width: 2.2em; }

/* ---------- contact page ---------- */

.contact-page { min-height: 100svh; padding: calc(var(--header-h) + clamp(48px, 8vw, 128px)) 0 var(--section-y); }
.contact-page__grid { display: grid; gap: 56px; }
.contact-page__line { margin-top: 28px; max-width: 32ch; color: var(--muted); }
.contact-page__line em { color: var(--fg); }
.channels--stack { margin-top: 0; }
.contact-page__hours { margin-top: 32px; }
.contact-page__hours dt { color: var(--muted); margin-bottom: 8px; }
@media (min-width: 1024px) {
  .contact-page__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 72px; align-items: start; }
  .contact-page__intro { grid-column: 1 / 7; }
  .contact-page__form { grid-column: 8 / 13; grid-row: 1 / 3; }
  .contact-page__channels { grid-column: 1 / 7; }
}

/* WhatsApp form */
.wa-form { display: grid; gap: 22px; padding: clamp(24px, 3vw, 40px); background: var(--ink-2); border: 1px solid var(--line); }
.wa-form__title { color: var(--accent); }
.field { display: grid; gap: 10px; }
.field__label { color: var(--stone); }
.field__label span { text-transform: none; letter-spacing: 0.02em; }
.field__input {
  width: 100%; min-height: 52px; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(237, 231, 223, 0.28);
  border-radius: 0; background: transparent; color: var(--bone);
  font: 400 1.1875rem / 1.4 var(--f-text); transition: border-color var(--d-ui) var(--ease-ui);
}
.field__input:focus { outline: none; border-bottom-color: var(--sinopia-lit); box-shadow: 0 1px 0 var(--sinopia-lit); }
.field__input:focus-visible { outline: none; }
.field__input[aria-invalid='true'] { border-bottom-color: #e8826a; }
.field__select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239A9288' stroke-width='1.5'%3E%3Cpath d='m2 5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.field__select option { background: var(--ink-2); color: var(--bone); }
.field__area { resize: vertical; min-height: 132px; }
.wa-form__error { color: #e8826a; font: 500 0.9375rem / 1.4 var(--f-display); }
.wa-form__error:empty { display: none; }
.wa-form__submit {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding-inline: 24px;
  background: var(--bone); color: var(--ink);
  font: 500 var(--t-label) / 1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase;
  transition: background var(--d-ui) var(--ease-ui), color var(--d-micro);
}
.wa-form__submit .icon { color: #1f9d55; width: 22px; height: 22px; }
.wa-form__submit:hover { background: var(--sinopia-lit); color: var(--ink); }
.wa-form__submit:hover .icon { color: var(--ink); }
.wa-form__note { color: var(--stone); text-transform: none; letter-spacing: 0.02em; font-size: 0.8125rem; line-height: 1.5; }

/* ---------- 404 ---------- */

.not-found { min-height: 100svh; display: grid; align-items: center; padding-top: var(--header-h); }
.not-found__code { font: 200 clamp(6rem, 4rem + 18vw, 22rem) / 0.8 var(--f-display); color: var(--stone); margin-bottom: 24px; }
.not-found .t-lead { margin: 24px 0 32px; color: var(--muted); }

/* ---------- web tasarım ---------- */

.web-hero .t-hero { max-width: 14ch; }
.web-hero__intro { max-width: 34ch; }
.web-hero__intro em { color: var(--fg); }
.web-hero .hero__ctas { margin-top: 32px; }
.web-hero + .showcase { padding-top: clamp(48px, 6vw, 96px); }

.site-card { display: grid; gap: 32px; align-items: center; }
.site-card + .site-card { margin-top: clamp(80px, 10vw, 160px); }
.site-card__num { font-size: 1.5rem; display: block; margin-bottom: 14px; }
.site-card__kind { color: var(--muted); margin-top: 16px; line-height: 1.6; }
.site-card__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; }

.device { position: relative; padding: 0 clamp(36px, 9%, 96px) clamp(36px, 7%, 72px) 0; }
.device__browser { background: var(--ink-2); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.device__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 14px; border-bottom: 1px solid var(--line); }
.device__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.device__bar span { margin-left: 12px; font: 500 0.6875rem / 1 var(--f-display); letter-spacing: 0.08em; color: var(--stone); }
.device__browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.device__phone {
  position: absolute; right: 0; bottom: 0; width: clamp(92px, 24%, 210px); aspect-ratio: 390 / 844;
  padding: 5px; border-radius: 22px; background: #050505; border: 1px solid rgba(237, 231, 223, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); overflow: hidden;
}
.device__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 17px; }
@media (min-width: 1024px) {
  .site-card { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .site-card .device { grid-column: 1 / 9; }
  .site-card__text { grid-column: 9 / 13; padding-left: 8px; }
  .site-card--flip .device { grid-column: 5 / 13; grid-row: 1; }
  .site-card--flip .site-card__text { grid-column: 1 / 5; grid-row: 1; padding-left: 0; }
}

.approach__list--4 { gap: 40px; }
@media (min-width: 640px) { .approach__list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--gutter); } }
@media (min-width: 1024px) { .approach__list--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.principles + .packages { padding-top: 0; }

.pkg-list { display: grid; gap: var(--gutter); align-items: stretch; }
.pkg {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(28px, 3vw, 44px); border: 1px solid var(--line); background: var(--marble);
}
.pkg__num { font-size: 1.4rem; }
.pkg__name { font-weight: 700; }
.pkg__line { color: var(--muted); max-width: 32ch; }
.pkg__list { margin-top: 10px; border-top: 1px solid var(--line); flex: 1; }
.pkg__list li {
  position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line);
  font: 500 0.96875rem / 1.35 var(--f-display);
}
.pkg__list li::before {
  content: ''; position: absolute; left: 2px; top: 17px; width: 11px; height: 6px;
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg);
}
.pkg__list li.is-off { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.pkg__list li.is-off::before { top: 20px; width: 11px; height: 0; border-left: 0; border-bottom-color: var(--muted); transform: none; }
.pkg__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin-top: 18px; padding-inline: 20px;
  border: 1px solid var(--fg); font: 500 var(--t-label) / 1 var(--f-display); letter-spacing: 0.14em; text-transform: uppercase;
  transition: background var(--d-ui) var(--ease-ui), color var(--d-micro);
}
.pkg__cta:hover { background: var(--fg); color: var(--bg); }
.pkg--featured { background: var(--ink); color: var(--bone); border-color: var(--ink); --fg: var(--bone); --bg: var(--ink); --muted: var(--stone); --accent: var(--sinopia-lit); --line: var(--line-ink); }
.pkg__flag {
  position: absolute; top: 0; right: clamp(20px, 3vw, 44px); transform: translateY(-50%);
  padding: 8px 12px; background: var(--sinopia-lit); color: var(--ink);
}
@media (min-width: 1024px) {
  .pkg-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pkg--featured { margin-block: -24px; padding-block: calc(clamp(28px, 3vw, 44px) + 24px); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .pkg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pkg--featured { grid-column: 1 / -1; grid-row: 1; }
}

.care__grid { display: grid; gap: 48px; }
.care__line { margin-top: 28px; max-width: 34ch; color: var(--muted); }
.care__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); align-self: end; }
.care__list li { padding: 20px 12px 20px 0; border-bottom: 1px solid var(--line); font: 500 1.0625rem / 1.3 var(--f-display); }
@media (min-width: 1024px) {
  .care__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .care__grid > :first-child { grid-column: 1 / 7; }
  .care__list { grid-column: 8 / 13; }
}

.delivery { margin-top: clamp(64px, 8vw, 112px); display: grid; border-top: 1px solid var(--fg); }
.delivery__title { padding: 20px 0 8px; color: var(--muted); }
.delivery dd { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.delivery__time { font: 200 clamp(1.375rem, 1rem + 1.4vw, 2.25rem) / 1.1 var(--f-display); text-align: right; }
@media (min-width: 1024px) {
  .delivery { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .delivery__title { grid-column: 1 / 4; }
  .delivery dd { grid-column: 5 / 13; }
}

/* ---------- reveal initial states (only when JS + motion are on) ---------- */

.motion [data-reveal='fade'], .motion [data-reveal='rise'] { opacity: 0; }
.motion [data-reveal='lines'] { visibility: hidden; }
.motion [data-reveal='chisel'] { clip-path: inset(100% 0 0 0); }
.motion [data-hero-fade] { opacity: 0; }
.motion .qw { opacity: 0.14; }
.motion [data-maxim-cap] { opacity: 0; }
.motion .wall { opacity: 0; }

/* ---------- view transitions ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 600ms; animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1); }

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