/* ShutterScope v3 — Apple-style: one idea per section, big centered type,
   translucent chrome, fluid (spring-driven) gallery. Brand tokens only. */
@font-face { font-family: "Readex Pro"; src: url("fonts/ReadexPro-Light.woff2") format("woff2"), url("fonts/ReadexPro-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("fonts/ReadexPro-Regular.woff2") format("woff2"), url("fonts/ReadexPro-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("fonts/ReadexPro-Medium.woff2") format("woff2"), url("fonts/ReadexPro-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("fonts/ReadexPro-SemiBold.woff2") format("woff2"), url("fonts/ReadexPro-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Readex Pro"; src: url("fonts/ReadexPro-Bold.woff2") format("woff2"), url("fonts/ReadexPro-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Parkinsans"; src: url("fonts/Parkinsans-VariableFont_wght.woff2") format("woff2"), url("fonts/Parkinsans-VariableFont_wght.ttf") format("truetype"); font-weight: 300 800; font-display: swap; }

:root {
  --yellow: #F9C044;   /* Maize Yellow */
  --ink: #282725;      /* Raisin Black */
  --cream: #F7F1E5;    /* Linen White */
  --ink-2: #33322F;    /* raised ink surface */
  --on-ink-2: rgba(247, 241, 229, .7);
  --on-cream-2: rgba(40, 39, 37, .7);
  --ar: "Readex Pro", system-ui, sans-serif;
  --en: "Parkinsans", "Readex Pro", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-l: 28px;
  --radius-m: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 1.0625rem/1.75 var(--ar); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.en { font-family: var(--en); }
.wrap { width: min(1080px, 100% - 2 * var(--gutter)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* Type scale — tracking tightens as size grows, leading loosens as it shrinks */
.display { font-size: clamp(2.6rem, 7vw, 5.25rem); font-weight: 700; line-height: 1.16; letter-spacing: -.02em; }
.headline { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.title { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.3; letter-spacing: -.005em; }
.sub { font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 400; line-height: 1.65; }

/* Translucent chrome; content scrolls underneath */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(40, 39, 37, .72); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); }
.site-header::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 14px; background: linear-gradient(rgba(40, 39, 37, .35), transparent); pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.site-header.scrolled::after { opacity: 1; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 56px; }
.brand img { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: .875rem; }
.nav a:not(.pill) { color: var(--cream); transition: color .15s ease; }
.nav a:not(.pill):hover { color: var(--yellow); }
.nav .lang { font-family: var(--en); font-weight: 500; }

/* Buttons — feedback on press, instantly */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; white-space: nowrap; transition: transform .1s ease-out, background-color .15s ease; -webkit-tap-highlight-color: transparent; }
.pill:active { transform: scale(.97); }
.pill-yellow { background: var(--yellow); color: var(--ink); }
.pill-yellow:hover { background: #fbcb60; }
.pill-ink { background: var(--ink); color: var(--cream); }
.pill-ink:hover { background: var(--ink-2); }
.pill-sm { min-height: 32px; padding: 5px 14px; font-size: .875rem; }
.link { color: var(--yellow); font-weight: 500; font-size: 1.0625rem; }
.link::after { content: " ›"; }
[dir="rtl"] .link::after { content: " ‹"; }
[dir="ltr"] .link::after { content: " ›"; }
.link:hover { text-decoration: underline; text-underline-offset: 5px; }
.light .link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Hero */
.hero { text-align: center; padding: clamp(72px, 12vw, 140px) 0 0; }
.hero .icon { width: 64px; margin: 0 auto 28px; }
.hero .display { max-width: 14ch; margin-inline: auto; }
.hero .sub { max-width: 34ch; margin: 22px auto 0; color: var(--on-ink-2); }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 36px; }
.stage { margin-top: clamp(56px, 8vw, 96px); border-radius: var(--radius-l); overflow: hidden; background: var(--ink-2); }
.stage .pattern { height: clamp(120px, 18vw, 220px); background: url("img/pattern-fill.png") repeat-x 0 50% / auto 100%; }
.stage .caption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; padding: 22px 24px; color: var(--on-ink-2); font-size: .9375rem; }

/* Sections */
.section { padding: clamp(88px, 12vw, 150px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section-head .sub { margin-top: 16px; }
.light { background: var(--cream); color: var(--ink); }
.light .sub, .light .muted { color: var(--on-cream-2); }
.dark .sub, .dark .muted { color: var(--on-ink-2); }

/* Services — bento with brand-approved surface pairs */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { border-radius: var(--radius-l); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; min-height: 340px; overflow: hidden; position: relative; }
.tile.a { grid-column: span 6; background: var(--ink); color: var(--cream); min-height: 380px; }
.tile.b { grid-column: span 3; background: var(--yellow); color: var(--ink); }
.tile.c { grid-column: span 3; background: var(--ink); color: var(--cream); }
.tile .kicker { font-family: var(--en); font-weight: 500; font-size: .875rem; opacity: .75; }
.tile .title { margin-top: 6px; }
.tile p { margin-top: 12px; max-width: 40ch; }
.tile.a p, .tile.c p { color: var(--on-ink-2); }
.tile.b p { color: rgba(40, 39, 37, .78); }
.tile .chips { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.tile .chips span { font-size: .8125rem; padding: 4px 12px; border-radius: 999px; background: rgba(247, 241, 229, .1); }
.tile.b .chips span { background: rgba(40, 39, 37, .1); }
.tile.a .art { position: absolute; inset-inline-end: clamp(-40px, -2vw, 0px); bottom: -46px; width: clamp(180px, 26vw, 300px); }
.tile.a .body { max-width: 56%; display: flex; flex-direction: column; flex: 1; }

/* Gallery — fluid, spring-driven, draggable */
.gallery { position: relative; }
.gallery-viewport { overflow: hidden; overflow: clip; touch-action: pan-y; cursor: grab; padding-inline: max(var(--gutter), (100vw - 1080px) / 2); }
.gallery-viewport.dragging { cursor: grabbing; }
.gallery-track { display: flex; gap: 18px; will-change: transform; user-select: none; -webkit-user-select: none; }
.shot { flex: 0 0 clamp(260px, 62vw, 760px); margin: 0; }
.shot .frame { aspect-ratio: 16 / 10; border-radius: var(--radius-m); background: var(--ink-2); display: grid; place-items: center; overflow: hidden; }
.shot .frame img { width: 64px; pointer-events: none; }
.shot figcaption { margin-top: 14px; }
.shot figcaption strong { display: block; font-weight: 600; font-size: 1.0625rem; }
.shot figcaption span { color: var(--on-ink-2); font-size: .9375rem; }
.gallery-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.dots { display: flex; gap: 4px; }
/* 8px dot drawn inside a 24px hit area (padding + background-clip) */
.dots button { box-sizing: content-box; width: 8px; height: 8px; padding: 8px; border: 0; border-radius: 999px; background-color: rgba(247, 241, 229, .45); background-clip: content-box; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: width .25s ease, background-color .25s ease; }
.dots button[aria-current="true"] { width: 24px; background-color: var(--yellow); }
.arrows { display: flex; gap: 10px; }
.arrows button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink-2); color: var(--cream); font-size: 1.25rem; cursor: pointer; transition: transform .1s ease-out, opacity .2s ease; }
.arrows button:active { transform: scale(.94); }
.arrows button:disabled { opacity: .35; cursor: default; }
.gallery-note { margin-top: 18px; font-size: .9375rem; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; background: rgba(40, 39, 37, .05); border-radius: var(--radius-m); padding: 28px 24px 30px; }
.steps li::before { content: counter(s); display: block; font: 800 2.75rem/1 var(--en); letter-spacing: -.02em; color: var(--ink); }
.steps h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--yellow); margin-bottom: 14px; }
.steps h3 { font-size: 1.3rem; margin-top: 16px; }
.steps p { margin-top: 6px; font-size: .9375rem; color: var(--on-cream-2); }

/* CTA */
.cta { background: var(--yellow); color: var(--ink); text-align: center; }
.cta .icon { width: 72px; margin: 0 auto 26px; }
.cta .headline { max-width: 16ch; margin-inline: auto; }
.cta .sub { margin: 16px auto 0; max-width: 36ch; color: rgba(40, 39, 37, .78); }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 26px; margin-top: 34px; }
.cta .mail { font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }

/* Footer */
.site-footer { padding: 48px 0 96px; font-size: .875rem; color: var(--on-ink-2); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid rgba(247, 241, 229, .12); }
.footer-top img { height: 26px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 26px; padding-top: 20px; }

.wa { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .28); transition: transform .1s ease-out; }
.wa:active { transform: scale(.94); }
.wa svg { width: 26px; height: 26px; fill: var(--ink); }

@media (max-width: 860px) {
  .nav a:not(.lang):not(.pill) { display: none; }
  .tile.b, .tile.c { grid-column: span 6; }
  .tile.a .body { max-width: 100%; }
  .tile.a .art { position: static; width: 120px; margin-top: 28px; }
  .tile.a { min-height: 0; }
  .tile { min-height: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .shot { flex-basis: 84vw; }
}

/* Accessibility signals */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .wa, .arrows button, .dots button { transition: none; }
  .pill:active, .wa:active, .arrows button:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .site-header { background: var(--ink); backdrop-filter: none; border-bottom: 1px solid var(--cream); }
  .light .sub, .light .muted, .steps p { color: var(--ink); }
  .dark .sub, .dark .muted, .nav a:not(.pill) { color: var(--cream); }
}

/* English page */
html[lang="en"] body { font-family: var(--en); }
html[lang="en"] .display { line-height: 1.04; letter-spacing: -.03em; }
html[lang="en"] .headline { line-height: 1.08; letter-spacing: -.025em; }
html[lang="en"] .title { letter-spacing: -.015em; }
html[lang="en"] .nav .lang { font-family: var(--ar); }
html[lang="en"] .hero .sub { max-width: 44ch; }

/* Gallery frames: still → Vimeo player on press */
.shot .frame { position: relative; width: 100%; padding: 0; border: 0; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.gallery-viewport.dragging .shot .frame { cursor: grabbing; }
.shot .frame picture, .shot .frame img { position: absolute; inset: 0; width: 100%; height: 100%; }
.shot .frame img { object-fit: cover; pointer-events: none; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.shot .frame:hover img { transform: scale(1.02); }
.shot .frame .play { position: absolute; inset-inline-start: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: transform .1s ease-out; }
.shot .frame .play::before { content: ""; margin-inline-start: 4px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--ink); }
.shot .frame:active .play { transform: scale(.94); }
.shot .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shot .frame.playing { cursor: default; }
@media (prefers-reduced-motion: reduce) { .shot .frame img { transition: none; } .shot .frame:hover img { transform: none; } }
