/* =========================================================
   Merve Simsek — Portfolio
   Tokens mirror the "Portfolio / Color" variables in Figma.
   ========================================================= */
:root {
  --white: #ffffff;
  --ink: #2D2A32;          /* text/ink — soft dark, never pure black */
  --body: #4A4651;         /* text/body */
  --dark: #474550;         /* labels, numbers */
  --grey: #7A7A7A;         /* paragraph grey */
  --lgrey: #929290;        /* light serif lead text */
  --tab: #8C8C8C;          /* hero tabs */
  --hint: #929290;         /* scroll hint, copyright */
  --clay: #B4532A;         /* accent/clay (orange) */
  --soft: #F6F5F3;         /* hover fill */
  --card: #F8F8F8;         /* case study cards */
  --chip: #F0EFED;         /* mobile hero chips */
  --line: #ECEAE7;         /* nav + pill strokes */
  --img-bg: #F4F3F1;
  --img-line: #ECEAE6;

  --serif: "Averia Serif Libre", Georgia, serif;
  --sans: "Inclusive Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Licorice", "Brush Script MT", cursive;

  --spring: cubic-bezier(.34, 1.32, .58, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --col: min(880px, 100% - 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
  animation: page-in .55s var(--ease-out) both;
}
html.is-leaving body { opacity: 0; transition: opacity .25s ease; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.col { width: var(--col); margin-inline: auto; }

/* ---------------------------------------------------------
   Intro — orange pixels dissolve (home, once per visit)
   --------------------------------------------------------- */
.intro { position: fixed; inset: 0; z-index: 1000; background: var(--clay); pointer-events: none; }
.intro canvas { display: block; width: 100%; height: 100%; }
.intro.is-done { display: none; }

/* ---------------------------------------------------------
   Nav
   --------------------------------------------------------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 59px; pointer-events: none; }
.nav__inner { width: var(--col); height: 100%; margin: 0 auto; display: flex; align-items: flex-start; justify-content: space-between; position: relative; }
.nav__logo {
  pointer-events: auto; margin-top: 14px; padding: 5px 12px 6px; border-radius: 200px;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 700 17px/1.2 var(--sans); letter-spacing: -.06em; color: var(--ink);
}
.nav__pills {
  pointer-events: auto; margin-top: 10px; display: flex; gap: 2px; padding: 4px;
  border-radius: 100px; background: rgba(255, 255, 255, .55); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(46, 41, 51, .06);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px 6px 14px; border-radius: 200px;
  background: var(--white); font: 400 16px/1.2 var(--serif); color: var(--ink); white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.pill svg { width: 16px; height: 16px; flex: none; }
.pill:hover { background: var(--soft); }
.pill.is-current { background: var(--clay); color: var(--white); }
.nav__toggle { display: none; }

@media (max-width: 767px) {
  .nav { height: 70px; }
  .nav__logo { margin-top: 12px; padding: 10px 20px 11px; border: 1px solid #E6E4E1; font-size: 19px; background: var(--white); }
  .nav__toggle {
    pointer-events: auto; display: grid; place-items: center; margin-top: 12px; width: 46px; height: 46px;
    border-radius: 50%; background: var(--white); border: 1px solid #E6E4E1;
  }
  .nav__toggle svg { width: 20px; height: 20px; transition: transform .35s var(--ease-out); }
  .nav.is-open .nav__toggle svg { transform: rotate(180deg); }
  .nav__pills {
    position: absolute; right: 0; top: 66px; margin: 0; flex-direction: column; align-items: flex-end; gap: 6px; padding: 8px;
    border-radius: 24px; background: rgba(255, 255, 255, .72); box-shadow: 0 10px 24px rgba(46, 41, 51, .08);
    opacity: 0; visibility: hidden; transform: translateY(-28px);
    transition: opacity .3s ease, transform .35s var(--ease-out), visibility 0s linear .35s;
  }
  .nav.is-open .nav__pills { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .35s var(--ease-out); }
}

/* ---------------------------------------------------------
   Hero stage — coordinates are the Figma frame's (1440 × 900),
   scaled with container units. Below 1100px it switches to the
   mobile frame (390 × 800).
   --------------------------------------------------------- */
.stage-wrap { position: relative; max-width: 1440px; margin: 0 auto; container-type: inline-size; overflow: hidden; overflow: clip; }
.stage { position: relative; --u: calc(100cqw / 1440); height: calc(900 * var(--u)); }

.tabs { position: absolute; left: 0; right: 0; top: calc(269 * var(--u)); display: flex; justify-content: center; gap: calc(16 * var(--u)); z-index: 2; }
.tab {
  padding: calc(16 * var(--u)); font: 600 calc(16 * var(--u))/1 var(--sans); letter-spacing: .02em; text-transform: uppercase;
  color: var(--tab); border-radius: 200px; transition: color .2s ease, background-color .2s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--clay); }

.panel { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.panel.is-active { visibility: visible; }
.panel__desc {
  position: absolute; left: calc(280 * var(--u)); top: calc(365 * var(--u)); width: calc(880 * var(--u));
  font: 400 calc(58 * var(--u))/.96 var(--serif); letter-spacing: -.01em; text-align: center; color: var(--ink);
  opacity: 0;
}
.panel.is-active .panel__desc { animation: desc-in .55s var(--ease-out) forwards; }
@keyframes desc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Handwritten words write themselves on (mask sweeps left → right) */
.hand {
  --x: var(--dx); --y: var(--dy); --r: var(--dr);
  position: absolute; left: calc(var(--x) * var(--u) - .3em); top: calc(var(--y) * var(--u) - .15em);
  padding: .15em .3em; transform-origin: .3em .15em; transform: rotate(calc(var(--r) * 1deg));
  font: 400 calc(236 * var(--u))/.9 var(--hand); color: var(--clay); white-space: nowrap; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%); mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.panel.is-active .hand { animation: write-on 1.1s var(--ease-out) var(--d, 0ms) forwards; }
@keyframes write-on { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
.intro-playing .panel.is-active .hand, .intro-playing .panel.is-active .panel__desc { animation-play-state: paused; }

.scroll-hint {
  position: absolute; left: 50%; top: calc(752 * var(--u)); transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: calc(12 * var(--u));
  font: 600 calc(18 * var(--u))/1.2 var(--sans); color: var(--hint); white-space: nowrap;
}
.mouse { position: relative; width: calc(20 * var(--u)); height: calc(30 * var(--u)); border: 1.6px solid var(--hint); border-radius: calc(10 * var(--u)); }
.mouse::after {
  content: ""; position: absolute; left: 50%; top: calc(5 * var(--u)); width: calc(3 * var(--u)); height: calc(6 * var(--u));
  margin-left: calc(-1.5 * var(--u)); border-radius: 2px; background: var(--hint); animation: wheel 1.4s ease-in-out infinite;
}
@keyframes wheel { 0%, 20% { transform: none; opacity: 1; } 70% { transform: translateY(calc(8 * var(--u))); opacity: .25; } 100% { transform: none; opacity: 1; } }

/* Story hero uses the same stage */
.stage--story { height: calc(640 * var(--u)); }
.story-label { position: absolute; left: 0; right: 0; top: calc(230 * var(--u)); text-align: center; font: 600 calc(16 * var(--u))/1 var(--sans); letter-spacing: .02em; color: var(--clay); }
.story-title { position: absolute; left: calc(280 * var(--u)); top: calc(300 * var(--u)); width: calc(880 * var(--u)); font: 400 calc(58 * var(--u))/.96 var(--serif); letter-spacing: -.01em; text-align: center; color: var(--ink); }
.stage--story .panel { visibility: visible; }

@media (max-width: 1099px) {
  .stage-wrap { max-width: 600px; }
  .stage { --u: calc(100cqw / 390); height: calc(800 * var(--u)); }
  .tabs { top: calc(140 * var(--u)); left: calc(20 * var(--u)); right: auto; width: calc(350 * var(--u)); flex-wrap: wrap; gap: calc(10 * var(--u)); }
  .tab { padding: calc(10 * var(--u)) calc(16 * var(--u)) calc(11 * var(--u)); background: var(--chip); font: 700 calc(12 * var(--u))/1.2 var(--sans); letter-spacing: .04em; }
  .tab:hover { color: var(--ink); }
  .tab[aria-selected="true"] { background: var(--clay); color: var(--white); }
  .panel__desc { left: calc(24 * var(--u)); top: calc(395 * var(--u)); width: calc(342 * var(--u)); font-size: calc(38 * var(--u)); line-height: 1; letter-spacing: -.02em; }
  .hand { --x: var(--mx); --y: var(--my); --r: var(--mr); font-size: calc(146 * var(--u)); }
  .scroll-hint { top: calc(690 * var(--u)); font-size: calc(15 * var(--u)); gap: calc(10 * var(--u)); }
  .mouse { width: calc(17 * var(--u)); height: calc(26 * var(--u)); }
  .stage--story { height: calc(560 * var(--u)); }
  .story-label { top: calc(170 * var(--u)); font-size: calc(13 * var(--u)); }
  .story-title { left: calc(24 * var(--u)); top: calc(220 * var(--u)); width: calc(342 * var(--u)); font-size: calc(38 * var(--u)); line-height: 1; letter-spacing: -.02em; }
}

/* ---------------------------------------------------------
   Project folder — Figma component "Project Folder"
   Desktop geometry (880 wide), mobile geometry (342 wide)
   --------------------------------------------------------- */
.work { display: flex; flex-direction: column; gap: 160px; padding-top: 120px; }
.folder { position: relative; display: block; container-type: inline-size; color: inherit; outline-offset: 8px; }
a.folder { cursor: none; }
.folder__in {
  --f: calc(100cqw / 880);
  --H: 644; --backY: 144; --backH: 500; --backR: 36;
  --sx: 44; --sy: 14; --sw: 792; --sh: 479; --sr: 14; --sdy: 100.5; --ss: .5556;
  --py: 294; --popen: 100; --cx: 400; --cy: 330; --overlap: 40;
}
.folder__stage { position: relative; height: calc(var(--H) * var(--f)); }
.folder__back { position: absolute; left: 0; right: 0; top: calc(var(--backY) * var(--f)); height: calc(var(--backH) * var(--f)); border-radius: calc(var(--backR) * var(--f)); background: var(--folder); }
.folder__screen {
  position: absolute; left: calc(var(--sx) * var(--f)); top: calc(var(--sy) * var(--f));
  width: calc(var(--sw) * var(--f)); height: calc(var(--sh) * var(--f)); border-radius: calc(var(--sr) * var(--f));
  overflow: hidden; background: var(--soft);
  transform: translateY(calc(var(--sdy) * var(--f))) scale(var(--ss));
  box-shadow: 0 6px 18px rgba(46, 41, 51, .10);
  transition: transform .6s var(--spring), box-shadow .6s ease;
}
.folder__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.folder__pocket-clip { position: absolute; inset: 0; pointer-events: none; }
.folder__pocket {
  position: absolute; left: 0; right: 0; bottom: 0; height: calc((var(--H) - var(--py)) * var(--f));
  border-radius: calc(var(--backR) * var(--f)) calc(var(--backR) * var(--f)) 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .72) 55%, #fff 100%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: height .6s var(--ease-out);
}
.folder__tag {
  --tx: var(--dtx); --ty: var(--dty); --tr: var(--dtr);
  position: absolute; left: calc(var(--tx) * var(--f)); top: calc(var(--ty) * var(--f)); z-index: 3;
  padding: 7px 16px 8px; border-radius: 200px; background: var(--folder); color: var(--white);
  border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 6px 14px rgba(46, 41, 51, .16);
  font: 400 16px/1.2 var(--serif); white-space: nowrap; transform-origin: top left;
  opacity: 0; transform: translate(calc((var(--cx) - var(--tx)) * var(--f)), calc((var(--cy) - var(--ty)) * var(--f))) scale(.5);
  transition: transform .6s var(--spring) var(--td, 0ms), opacity .3s ease var(--td, 0ms);
}
.folder__tag[data-i="1"] { --dtx: 6;   --dty: 262; --dtr: -8; --mtx: -6;  --mty: 118; --mtr: -8; --td: 0ms; }
.folder__tag[data-i="2"] { --dtx: 28;  --dty: 330; --dtr: 9;  --mtx: 4;   --mty: 150; --mtr: 9;  --td: 40ms; }
.folder__tag[data-i="3"] { --dtx: 724; --dty: 268; --dtr: 8;  --mtx: 262; --mty: 120; --mtr: 8;  --td: 80ms; }
.folder__tag[data-i="4"] { --dtx: 712; --dty: 336; --dtr: -7; --mtx: 256; --mty: 154; --mtr: -7; --td: 120ms; }

.folder.is-open .folder__screen { transform: none; box-shadow: 0 22px 50px rgba(46, 41, 51, .18); }
.folder.is-open .folder__pocket { height: calc(var(--popen) * var(--f)); }
.folder.is-open .folder__tag { opacity: 1; transform: rotate(calc(var(--tr) * 1deg)); }

/* Pill that follows the cursor over a folder */
.folder__cursor {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  padding: 8px 16px 9px; border-radius: 200px; background: var(--clay); color: var(--white);
  font: 600 15px/1.2 var(--sans); white-space: nowrap; box-shadow: 0 8px 20px rgba(46, 41, 51, .2);
  opacity: 0; scale: .7; transition: opacity .25s ease, scale .35s var(--spring);
  will-change: transform;
}
.folder.is-open .folder__cursor { opacity: 1; scale: 1; }
@media (hover: none), (pointer: coarse) { .folder__cursor { display: none; } a.folder { cursor: pointer; } }

.folder__caption { position: relative; z-index: 4; margin-top: calc(var(--overlap) * var(--f) * -1); display: grid; gap: 14px; }
.folder__statement { font: italic 400 36px/1.18 var(--serif); color: var(--ink); }
.folder__tags { font: 500 20px/1.3 var(--sans); color: var(--ink); }

@container (max-width: 600px) {
  .folder__in {
    --f: calc(100cqw / 342);
    --H: 280; --backY: 60; --backH: 220; --backR: 24;
    --sx: 19; --sy: 4; --sw: 304; --sh: 184; --sr: 10; --sdy: 55.5; --ss: .625;
    --py: 130; --popen: 44; --cx: 150; --cy: 150; --overlap: 12;
  }
  .folder__tag { --tx: var(--mtx); --ty: var(--mty); --tr: var(--mtr); padding: 4px 10px 5px; font-size: 11px; box-shadow: 0 4px 10px rgba(46, 41, 51, .16); }
  .folder__caption { gap: 10px; }
  .folder__statement { font-size: 24px; }
  .folder__tags { font-size: 14px; line-height: 1.4; }
}

.note-hand { width: var(--col); margin: 200px auto 40px; font: 400 72px/1.05 var(--hand); text-align: center; color: var(--ink); }
.explorations { padding-top: 60px; }
@media (max-width: 767px) {
  .work { gap: 70px; padding-top: 20px; }
  .explorations { padding-top: 20px; }
  .note-hand { margin: 90px auto 50px; font-size: 46px; }
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer { position: relative; overflow: hidden; overflow: clip; padding: 240px 0 36px; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 2; }
.cpill {
  height: 48px; display: inline-flex; align-items: center; gap: 6px; padding: 0 18px 0 16px; border-radius: 200px;
  background: var(--white); border: 1px solid var(--line); font: 500 20px/1 var(--sans); color: var(--body);
  transition: background-color .2s ease;
}
.cpill--icon { padding: 0 13px; }
.cpill svg { width: 22px; height: 22px; flex: none; }
.cpill:hover { background: var(--soft); }
.copyright { margin-top: 80px; text-align: center; font: 400 14px/1.5 Inter, var(--sans); color: var(--hint); }
.copyright a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .2s ease, text-decoration-color .2s ease; }
.copyright a:hover { color: var(--clay); text-decoration-color: currentColor; }
@media (max-width: 767px) {
  .footer { padding-top: 110px; padding-bottom: 30px; }
  .footer__contact { justify-content: center; }
  .cpill { height: 41px; font-size: 17px; padding: 0 15px 0 13px; }
  .cpill--icon { padding: 0 11px; }
  .cpill svg { width: 19px; height: 19px; }
  .copyright { margin-top: 36px; font-size: 12px; }
}

/* ---------------------------------------------------------
   Case study + Story pages
   --------------------------------------------------------- */
.cs-hero { padding: 230px 16px 70px; text-align: center; background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 58%, #fff 100%); }
.cs-hero h1 { max-width: 960px; margin: 0 auto; font: italic 300 48px/1.1 var(--serif); color: var(--white); white-space: pre-line; }
.cs-hero .meta { margin-top: 24px; font: 400 16px/1.4 var(--sans); color: var(--white); word-spacing: .15em; }
.cs-hero__shot { width: min(1040px, 100%); margin: 51px auto 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(26, 20, 15, .22); background: var(--img-bg); }
.cs-hero__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.cs { container-type: inline-size; }
.cs-ov { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding-top: 20px; }
.cs-ov__col { display: grid; gap: 4px; align-content: start; }
.card { background: var(--card); border-radius: 16px; padding: 24px; }
.card h2 { font: 400 24px/1.2 var(--serif); color: var(--ink); }
.card h2 em { font-style: italic; color: var(--lgrey); margin-left: .3em; }
.card p { font: 400 16px/1.5 var(--sans); color: var(--grey); }
.card--product { display: grid; gap: 12px; align-content: start; }
/* Story: name + role always on one line, scaled to fit the card */
.card--intro { container-type: inline-size; }
.card--intro h2 { white-space: nowrap; font-size: min(24px, calc(100cqi / 16.9)); }
.card--details { display: grid; gap: 20px; align-content: start; }
.detail strong { display: block; font: 500 16px/1.4 var(--sans); color: var(--ink); }
.detail span { display: block; margin-top: 4px; font: 400 16px/1.3 var(--sans); color: var(--grey); }
.card--psr { display: grid; gap: 36px; align-content: start; }
.card--psr div { display: grid; gap: 14px; }
.portrait { border-radius: 16px; overflow: hidden; background: var(--img-bg); min-height: 520px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.card--impact { margin-top: 4px; display: grid; gap: 30px; }
.impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.impact div { display: grid; gap: 6px; align-content: start; }
.impact b { font: italic 400 48px/1.15 var(--serif); color: var(--dark); }
.impact strong { font: 400 24px/1.08 var(--serif); color: var(--ink); white-space: pre-line; }
.impact span { font: 400 16px/1.4 var(--sans); color: var(--grey); }

.cs-sec { padding-top: 120px; display: grid; gap: 24px; }
.cs-label { font: 600 16px/1.6 var(--sans); letter-spacing: .02em; color: var(--dark); }
.cs-row { display: grid; grid-template-columns: minmax(0, 400fr) minmax(0, 422fr); column-gap: 58px; row-gap: 24px; align-items: start; }
.lead { font: 300 28px/1.18 var(--serif); color: var(--lgrey); }
.lead em { font-style: italic; font-weight: 400; color: var(--ink); }
.cs-right { display: grid; gap: 16px; }
.cs-right p { font: 400 18px/1.5 var(--sans); color: var(--grey); }
.cs-right .item { display: grid; gap: 4px; }
.cs-right .item b { font: 700 18px/1.4 var(--sans); color: var(--grey); }
.cs-right .item p { line-height: 1.45; }

.img { position: relative; overflow: hidden; border-radius: 16px; background: var(--img-bg); border: 1px solid var(--img-line); }
.img img { width: 100%; height: auto; }
.img--cover img, .img--fit img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.img--fit img { object-fit: contain; object-position: center; }
.img--tall { max-height: calc(var(--cap) / 880 * 100cqw); }
.img--tall.has-fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); }
.img-grid { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 20px; align-items: start; }
.phones { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; padding: 48px 20px; border-radius: 16px; background: var(--card); }
.phones .img { width: 190px; aspect-ratio: 190 / 400; border-radius: 18px; }

.next { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 140px 0 20px; }
.next .cs-label { flex: none; }
.next a { font: italic 400 36px/1.2 var(--serif); color: var(--ink); text-align: right; transition: color .2s ease; }
.next a:hover { color: var(--clay); }
.spacer { height: 120px; }

@media (max-width: 899px) {
  .cs-ov { grid-template-columns: 1fr; }
  .portrait { min-height: 0; aspect-ratio: 4 / 5; }
  .cs-row { grid-template-columns: 1fr; }
  .impact { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 767px) {
  .cs-hero { padding-top: 130px; padding-bottom: 48px; }
  .cs-hero h1 { font-size: 32px; }
  .cs-hero .meta { font-size: 13px; word-spacing: 0; }
  .cs-hero__shot { margin-top: 32px; }
  .cs-sec { padding-top: 80px; }
  .lead { font-size: 24px; }
  .cs-right p, .cs-right .item b { font-size: 16px; }
  .img-grid { grid-template-columns: 1fr; gap: 14px; }
  .phones { gap: 12px; padding: 24px 12px; }
  .phones .img { width: calc(50% - 6px); }
  .next { padding-top: 90px; }
  .next a { font-size: 26px; }
}

/* ---------------------------------------------------------
   Reveal on scroll (only when JS is running)
   --------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

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

/* small additions */
figure { margin: 0; }
.cs-hero .meta .sep { margin: 0 .9em; opacity: .9; }
@media (max-width: 767px) { .cs-hero .meta .sep { margin: 0 .5em; } }

/* prototype link under the case-study title */
.cs-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; padding: 10px 20px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font: 500 15px/1.2 var(--sans); text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.cs-link:hover { background: #fff; color: var(--clay); transform: translateY(-1px); }
@media (max-width: 767px) { .cs-link { margin-top: 18px; font-size: 14px; padding: 9px 16px; } }
