/* markus-straessle.com — brand derived from CV 2027: Barlow, CV blue, tinted side panel, dot ratings. */

@font-face { font-family: "Barlow"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/barlow-300.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/barlow-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-700.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --panel: #eef4f8;
  --panel-2: #e2edf4;
  --ink: #1d2328;
  --ink-2: #3c464f;
  --muted: #5f6b75;
  --faint: #8a949d;
  --line: #dde7ee;
  --line-strong: #c9d6df;
  --accent: #1a78ad;
  --accent-ink: #176c9e;
  --accent-hover: #135f8b;
  --accent-soft: #e3f0f8;
  --success: #2e9d6a;
  --danger: #c2412d;

  --dark: #13202b;
  --dark-2: #1c2d3b;
  --violet: #4f4fc8;
  --violet-soft: #ecedfb;

  --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(19, 32, 43, .06), 0 8px 24px rgba(19, 32, 43, .08);
  --shadow-lg: 0 2px 4px rgba(19, 32, 43, .06), 0 24px 60px rgba(19, 32, 43, .16);
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.125rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.15; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
::selection { background: var(--accent); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* --- Type ---------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 18px; color: var(--accent-ink);
  font-size: .8125rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow::before { content: ""; display: block; width: 48px; height: 3px; margin-bottom: 14px; background: var(--accent); border-radius: 2px; }
.h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); letter-spacing: -.01em; line-height: 1.08; text-wrap: balance; }
.h3 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem); letter-spacing: -.005em; line-height: 1.12; text-wrap: balance; }
.h4 { font-size: 1.375rem; }
.h5 { font-size: 1.1875rem; }
.section-intro { max-width: 640px; margin-top: 20px; color: var(--muted); font-size: 1.1875rem; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 1.5px solid transparent; border-radius: 10px;
  font: 600 1rem/1 var(--font); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-danger { border-color: #efc9c2; color: var(--danger); background: #fff; }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled, .nav-open .site-header { background: rgba(255, 255, 255, .92); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.wordmark { color: var(--ink); text-decoration: none; font-size: .9375rem; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.wordmark-first { font-weight: 700; }
.wordmark-last { font-weight: 400; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink); font-size: .9375rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.site-nav a:hover { color: var(--accent-ink); }
.site-nav .nav-cta { padding: 9px 16px; border: 1.5px solid var(--accent); border-radius: 8px; color: var(--accent-ink); }
.site-nav .nav-cta:hover { background: var(--accent); color: #fff; }
.lang-switch { display: flex; gap: 2px; padding-left: 20px; border-left: 1px solid var(--line); }
.lang-switch a { padding: 4px 6px; color: var(--faint); font-size: .8125rem; letter-spacing: .1em; }
.lang-switch a[aria-current] { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    border: 0; background: none; cursor: pointer; color: var(--ink);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; background: #fff; box-shadow: 0 12px 24px rgba(19, 32, 43, .08);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
  .site-nav .nav-cta { margin-top: 16px; padding: 14px 0; text-align: center; border: 1.5px solid var(--accent); }
  .lang-switch { padding: 20px 0 0; border: 0; gap: 8px; }
  .lang-switch a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 32px) 0 96px; overflow: hidden; }
.hero-panel { position: absolute; inset: 0 auto 0 0; width: 38%; background: var(--panel); }
.hero-grid { position: relative; display: grid; grid-template-columns: 38fr 62fr; align-items: center; gap: 0; }
.hero-portrait { position: relative; justify-self: center; width: min(360px, 76%); aspect-ratio: 1; margin-right: var(--gutter); }
.hero-portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-lg); }
.portrait-orbit { position: absolute; inset: -26px; border: 3px dotted var(--accent); border-radius: 50%; opacity: .55; animation: orbit 90s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.hero-copy { padding-left: clamp(32px, 6vw, 96px); }
.status { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font-size: .875rem; font-weight: 500; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(46, 157, 106, .5); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 157, 106, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(46, 157, 106, 0); } }
.display { margin: 0; font-size: clamp(2.75rem, 1rem + 6.2vw, 6.25rem); line-height: .95; letter-spacing: .04em; text-transform: uppercase; }
.display span { display: block; }
.display-first { font-weight: 700; }
.display-last { font-weight: 300; color: var(--faint); }
.role { margin: 28px 0 0; color: var(--accent-ink); font-size: clamp(.9375rem, .8rem + .5vw, 1.1875rem); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.hero-lead { max-width: 620px; margin: 28px 0 0; font-size: clamp(1.3125rem, 1rem + 1vw, 1.75rem); line-height: 1.35; font-weight: 500; text-wrap: balance; }
.hero-sub { max-width: 560px; margin: 16px 0 0; color: var(--muted); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; display: grid; place-items: center; width: 48px; height: 48px; margin-left: -24px;
  border: 1.5px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink);
  animation: nudge 2.6s var(--ease) infinite;
}
.scroll-cue:hover { border-color: var(--accent); color: var(--accent-ink); }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(6px); } }

@media (max-width: 860px) {
  .hero { align-items: flex-start; padding-bottom: 104px; }
  .hero-panel { inset: 0 0 auto 0; width: 100%; height: 230px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { justify-self: start; width: 176px; margin: 8px 0 40px 26px; }
  .portrait-orbit { inset: -16px; }
  .hero-copy { padding-left: 0; }
  .status { margin-bottom: 20px; }
}

/* --- Sections ------------------------------------------------------------ */
.section { padding: clamp(80px, 10vw, 144px) 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 820px; }

/* Work */
.work-list { display: grid; gap: clamp(56px, 8vw, 112px); }
.work-card { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.work-card:nth-child(even) { grid-template-columns: 5fr 7fr; }
.work-card:nth-child(even) .work-cover { order: 2; }
.work-cover { display: block; border-radius: var(--radius-lg); overflow: hidden; }
.work-cover .cover { transition: transform .6s var(--ease); }
.work-card:hover .work-cover .cover { transform: scale(1.015); }
.work-index { margin: 0 0 8px; color: var(--faint); font-size: .875rem; font-weight: 600; letter-spacing: .2em; }
.work-kicker { margin: 0 0 10px; color: var(--accent-ink); font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.work-card h3 a { color: var(--ink); text-decoration: none; }
.work-card h3 a:hover { color: var(--accent-ink); }
.work-summary { margin: 18px 0 24px; color: var(--ink-2); }
.work-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.work-meta dt, .case-facts dt { color: var(--faint); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.work-meta dd { font-size: 1rem; font-weight: 500; }
@media (max-width: 860px) {
  .work-card, .work-card:nth-child(even) { grid-template-columns: 1fr; }
  .work-card:nth-child(even) .work-cover { order: 0; }
}

/* Covers */
.cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); }
.cover-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 48px 48px; background-position: -1px -1px; }
.cover-viseca { --grid-line: rgba(255, 255, 255, .05); background: radial-gradient(120% 90% at 70% 10%, #20384b 0%, var(--dark) 60%); }
.cover-phones { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 6%; }
.cover-phones .phone { width: 31%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); }
.cover-phones .phone:first-child { transform: translateY(9%); }
.cover-phones .phone:last-child { transform: translateY(-7%); }
.cover-relocrate { --grid-line: rgba(79, 79, 200, .07); background: radial-gradient(110% 90% at 20% 0%, #f7f7ff 0%, var(--violet-soft) 70%); }
.cover-browser { position: absolute; width: 78%; left: 7%; top: 12%; }
.cover-browser-2 { left: auto; right: 6%; top: auto; bottom: 10%; width: 62%; }

.browser { display: block; overflow: hidden; border: 1px solid rgba(19, 32, 43, .08); border-radius: 12px; background: #fff; box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: #f4f6f8; border-bottom: 1px solid #e8edf1; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4dbe1; }
.browser img { width: 100%; }

/* Schematic phone */
.phone { --ph-frame: #233442; }
.ph-frame { fill: var(--ph-frame); }
.ph-screen { fill: #fff; }
.ph-soft { fill: #e6ecf1; }
.ph-ink { fill: #2a3540; }
.ph-tint { fill: var(--accent-soft); }
.ph-accent { fill: var(--accent); }
.ph-ink-btn { fill: var(--ink); }
.ph-on-card { fill: rgba(255, 255, 255, .9); }
.ph-on-card.dim { fill: rgba(255, 255, 255, .45); }
.ph-chip { fill: #f0cd78; }
.ph-line { stroke: #e6ecf1; stroke-width: 1.5; }
.ph-field { fill: #fff; stroke: #d5dee5; stroke-width: 1.5; }
.ph-field.active { stroke: var(--accent); stroke-width: 2.5; }
.ph-card-alt { fill: #c9d4dc; }
.ph-scan { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.ph-soft-stroke { fill: none; stroke: #e6ecf1; stroke-width: 8; }
.ph-accent-stroke { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; }
.ph-success { fill: var(--success); }
.ph-check { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.stop-a { stop-color: #2b8fcb; }
.stop-b { stop-color: #134e79; }

/* Approach */
.approach { background: var(--panel); }
.approach-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); counter-reset: none; }
.approach-item { padding-top: 28px; border-top: 1.5px solid var(--line-strong); }
.approach-num { display: block; margin-bottom: 18px; color: var(--accent-ink); font-size: 2.75rem; font-weight: 300; line-height: 1; letter-spacing: .02em; }
.approach-item .dots { margin-bottom: 22px; }
.approach-item h3 { margin-bottom: 12px; text-transform: uppercase; letter-spacing: .12em; font-size: 1.125rem; }
.approach-item p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .approach-list { grid-template-columns: 1fr; } }

/* Dots (CV skill ratings) */
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border: 1.5px solid var(--accent); border-radius: 50%; }
.dots i.on { background: var(--accent); }

/* Experience */
.experience-grid { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.timeline-period { margin: 0; padding-top: 2px; color: var(--accent-ink); font-size: .875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.timeline-role { margin-bottom: 6px; font-size: 1rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.timeline-company { color: var(--faint); font-weight: 400; letter-spacing: .08em; }
.timeline-item p:last-child { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }
.experience-side { position: sticky; top: calc(var(--header-h) + 24px); padding: 36px 32px; background: var(--panel); border-radius: var(--radius-lg); }
.side-block + .side-block { margin-top: 36px; }
.side-title { margin-bottom: 16px; color: var(--accent-ink); font-size: .9375rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.side-title::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 10px; background: var(--accent); border-radius: 2px; }
.rating-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: 1rem; }
.edu-list li { padding: 6px 0; font-size: 1rem; }
.edu-list small { display: block; color: var(--muted); font-size: .875rem; }
@media (max-width: 960px) {
  .experience-grid { grid-template-columns: 1fr; }
  .experience-side { position: static; }
}
@media (max-width: 600px) {
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}

/* Contact */
.contact { background: var(--panel); }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-direct-label { margin: 40px 0 8px; color: var(--faint); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.contact-direct li { padding: 2px 0; }
.contact-direct a { font-weight: 600; }
.contact-form-wrap { padding: clamp(24px, 4vw, 44px); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff;
  color: var(--ink); font: 400 1.0625rem/1.5 var(--font); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:hover, .field textarea:hover { border-color: #aebdc8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(26, 120, 173, .14); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { margin: 6px 0 0; color: var(--danger); font-size: .9375rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-note { flex: 1 1 240px; margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin-bottom: 24px; padding: 18px 20px; border-radius: var(--radius); }
.notice:focus { outline: none; }
.notice p { margin: 0; }
.notice-title { margin-bottom: 4px !important; font-weight: 700; }
.notice-success { background: #e7f5ee; color: #17583b; }
.notice-error { background: #fbece9; color: #8c2d1f; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* --- Case study ---------------------------------------------------------- */
.case-hero { padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 0; background: linear-gradient(var(--panel) 0, var(--panel) 72%, var(--bg) 72%); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: clamp(32px, 5vw, 56px); color: var(--muted); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.back-link:hover { color: var(--accent-ink); }
.case-title { font-size: clamp(3rem, 1.5rem + 6vw, 6rem); font-weight: 700; line-height: .95; letter-spacing: .02em; text-transform: uppercase; }
.case-summary { max-width: 760px; margin: 28px 0 0; font-size: clamp(1.1875rem, 1rem + .6vw, 1.5rem); line-height: 1.45; font-weight: 500; color: var(--ink-2); }
.case-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 40px 0 32px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.case-facts dd { margin-top: 4px; font-weight: 500; }
.case-cover { margin-top: clamp(32px, 5vw, 56px); }
.case-cover .cover { aspect-ratio: 16 / 9; box-shadow: var(--shadow-lg); }
.case-cover .cover-phones .phone { width: 19%; }
@media (max-width: 860px) {
  .case-facts { grid-template-columns: 1fr 1fr; }
  .case-cover .cover { aspect-ratio: 4 / 3; }
  .case-cover .cover-phones .phone { width: 31%; }
}

.case-body { padding: clamp(48px, 7vw, 96px) 0 clamp(80px, 10vw, 128px); }
.block { margin-bottom: clamp(64px, 9vw, 120px); }
.block:last-child { margin-bottom: 0; }
.block-head { margin-bottom: 32px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats li { padding-top: 20px; border-top: 3px solid var(--accent); }
.stats strong { display: block; font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.stats span { display: block; margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.4; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 36px; } }

.block-text { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); }
.block-text .block-head { margin: 0; }
.prose { font-size: 1.1875rem; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .block-text { grid-template-columns: 1fr; } }

.decision-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 64px); }
.decision-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 24px 0; border-top: 1px solid var(--line); }
.decision-num { color: var(--accent-ink); font-size: .9375rem; font-weight: 600; letter-spacing: .1em; padding-top: 2px; }
.decision-list h3 { margin-bottom: 8px; }
.decision-list p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .decision-list { grid-template-columns: 1fr; } }

.block-steps { padding: clamp(64px, 8vw, 104px) 0; background: var(--panel); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1.5px; background: var(--line-strong); }
.steps li { position: relative; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 0 0 6px var(--panel); }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 1.5px; height: auto; }
  .steps li { padding-left: 68px; }
  .step-num { position: absolute; left: 0; top: -6px; }
}

.block-figure figcaption, .block-gallery figcaption, .block-illustration figcaption { margin-top: 16px; max-width: 720px; color: var(--muted); font-size: 1rem; }
.block-figure { margin-left: auto; margin-right: auto; margin-bottom: clamp(64px, 9vw, 120px); }
.block-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.block-gallery figure { margin: 0; }
@media (max-width: 760px) { .block-gallery { grid-template-columns: 1fr; } }
figure { margin: 0; }
.zoom { display: block; cursor: zoom-in; border-radius: 12px; }
.zoom .browser { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.zoom:hover .browser { transform: translateY(-3px); }

.block-illustration { padding: clamp(56px, 7vw, 88px) 0; background: var(--dark); color: #c5d2dc; }
.block-illustration figcaption { color: #a9b8c4; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 2.5vw, 32px); }
.flow-step { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.flow-step .phone { --ph-frame: #304556; width: 100%; max-width: 190px; filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .35)); }
.flow-label { font-size: .9375rem; font-weight: 600; letter-spacing: .04em; color: #fff; text-align: center; }
.flow-label b { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; border-radius: 50%; background: var(--accent); font-size: .8125rem; }
@media (max-width: 860px) {
  .flow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); }
  .flow-step { flex: 0 0 44%; scroll-snap-align: start; }
}

.block-quote blockquote { margin: 0 auto; max-width: 900px; padding-left: clamp(20px, 4vw, 40px); border-left: 3px solid var(--accent); }
.block-quote p { margin: 0 0 16px; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem); font-weight: 500; font-style: italic; line-height: 1.25; text-wrap: balance; }
.block-quote footer { color: var(--muted); font-size: .9375rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.next-project { background: var(--dark); }
.next-project.theme-violet { background: #2d2d86; }
.next-inner { position: relative; display: block; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); color: #fff; text-decoration: none; }
.next-inner:hover { color: #fff; }
.next-inner .eyebrow { color: #a9d4ee; }
.next-inner .eyebrow::before { background: #a9d4ee; }
.next-title { display: block; font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); font-weight: 700; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.next-kicker { display: block; margin-top: 12px; color: #c5d2dc; }
.next-arrow { position: absolute; right: var(--gutter); top: 50%; margin-top: -20px; transition: transform .3s var(--ease); }
.next-inner:hover .next-arrow { transform: translateX(8px); }
@media (max-width: 600px) { .next-arrow { display: none; } }

/* Lightbox */
.lightbox { width: min(1400px, 94vw); max-width: none; max-height: 92vh; padding: 0; border: 0; border-radius: 12px; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 18, 25, .82); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 92vh; object-fit: contain; border-radius: 12px; }
.lightbox-close { position: absolute; top: -52px; right: 0; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }

/* Simple pages */
.page-simple { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 104px)); min-height: 70vh; }
.legal { margin-top: 40px; }
.legal h2 { margin: 36px 0 10px; }
.legal p { color: var(--ink-2); }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.footer-brand p { margin: 6px 0 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent-ink); }

/* --- Motion -------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- Coming soon --------------------------------------------------------- */
.soon { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 38fr 62fr; }
.soon-panel { display: grid; place-items: center; padding: 48px var(--gutter); background: var(--panel); }
.soon-panel .hero-portrait { width: min(300px, 70%); margin: 0; }
.soon-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(24px, 7vw, 112px); }
.soon-copy .hero-lead { margin-top: 24px; }
.soon-note { margin-top: 32px; color: var(--muted); }
.soon-contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.soon-foot { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--faint); font-size: .875rem; }
.soon-foot a { color: var(--faint); text-decoration: none; }
.soon-foot a:hover { color: var(--ink); }
.preview-card { max-width: 400px; margin-top: 32px; }
@media (max-width: 860px) {
  .soon { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .soon-panel { justify-items: start; padding: 40px var(--gutter) 32px; }
  .soon-panel .hero-portrait { width: 140px; margin-left: 16px; }
  .soon-copy { padding: 40px var(--gutter) 48px; justify-content: flex-start; }
}

/* --- Admin --------------------------------------------------------------- */
.admin { background: var(--panel); min-height: 100vh; }
.admin-header { background: #fff; border-bottom: 1px solid var(--line); }
.admin-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.admin-header form { display: flex; align-items: center; gap: 16px; }
.admin-link { font-weight: 600; text-decoration: none; font-size: .9375rem; }
.admin-main { padding-top: 40px; padding-bottom: 64px; }
.admin-head { margin-bottom: 24px; }
.admin-sub { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }
.admin-card { padding: 28px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.admin-login { max-width: 420px; margin: 40px auto; }
.admin-login h1 { margin-bottom: 20px; }
.admin-table-wrap { padding: 0; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.admin-table th { padding: 14px 20px; text-align: left; color: var(--faint); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .is-unread td { font-weight: 600; }
.admin-table .is-unread td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.admin-dl { display: grid; gap: 6px; margin: 16px 0 24px; }
.admin-dl div { display: grid; grid-template-columns: 90px 1fr; }
.admin-dl dt { color: var(--muted); }
.admin-message { padding: 20px; background: var(--panel); border-radius: var(--radius); white-space: normal; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.admin-actions form { display: flex; gap: 12px; }
.preview-badge { position: fixed; left: 16px; bottom: 16px; z-index: 60; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-decoration: none; box-shadow: var(--shadow); }
.preview-badge:hover { background: var(--accent); color: #fff; }
.soon-copy .status { align-self: flex-start; }
.quiet-link, .quiet-link:hover { color: inherit; text-decoration: none; cursor: default; }
.admin-settings { max-width: 640px; }
.admin-settings h2 { margin-bottom: 20px; }
.admin-settings .form-note { margin-top: 8px; }

/* --- Devices, duo, phones, more work -------------------------------------- */
.device { display: block; padding: 7px; background: #1c2228; border-radius: 30px; box-shadow: var(--shadow-lg); }
.device img { width: 100%; border-radius: 23px; }
.duo { display: grid; grid-template-columns: 1fr 22%; gap: clamp(20px, 3vw, 40px); align-items: end; }
.duo-phone { border-radius: 30px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .duo-phone { width: 52%; justify-self: center; } }
.block-duo figcaption { margin-top: 16px; max-width: 720px; color: var(--muted); font-size: 1rem; }

.block-phones { padding: clamp(56px, 7vw, 88px) 0; background: var(--panel); }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 40px); }
.phones li { display: flex; flex-direction: column; gap: 14px; }
.phones .zoom { border-radius: 30px; }
.phones-caption { color: var(--ink-2); font-size: .9375rem; font-weight: 600; text-align: center; }
.block-phones figcaption { margin-top: 24px; max-width: 720px; color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) {
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 16px; }
  .phones li { flex: 0 0 58%; scroll-snap-align: start; }
}

.cover-er { --grid-line: rgba(14, 96, 116, .06); background: radial-gradient(110% 90% at 20% 0%, #fdf6ee 0%, #f2e2cf 75%); }
.cover-er .cover-browser { width: 74%; left: 6%; top: 14%; }
.cover-device { position: absolute; right: 7%; bottom: -14%; width: 23%; padding: 5px; border-radius: 22px; }
.cover-device img { border-radius: 17px; }
.case-cover .cover-device { width: 17%; bottom: -8%; }

.cover-flint { display: grid; place-items: center; background: radial-gradient(90% 90% at 50% 40%, #bfe6f7 0%, #8fd0ee 100%); }
.cover-icon { width: 46%; border-radius: 22%; box-shadow: 0 24px 48px rgba(19, 60, 90, .3); }
.case-cover .cover-flint .cover-icon { width: 24%; }

.next-project.theme-sand { background: #0e4a5c; }
.next-project.theme-stone { background: #1f5f82; }

.more-work { margin-top: clamp(72px, 10vw, 128px); }
.more-title { margin-bottom: 28px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--accent-ink); font-size: .9375rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 48px); }
.more-card { display: grid; grid-template-columns: 2fr 3fr; gap: 24px; align-items: center; color: var(--ink); text-decoration: none; }
.more-card:hover { color: var(--ink); }
.more-card .cover { aspect-ratio: 1; transition: transform .6s var(--ease); }
.more-card:hover .cover { transform: scale(1.02); }
.more-body { display: flex; flex-direction: column; gap: 8px; }
.more-body .work-kicker { margin: 0; }
.more-name { font-size: 1.625rem; font-weight: 600; line-height: 1.1; }
.more-summary { color: var(--ink-2); font-size: 1rem; }
.more-body .link-arrow { color: var(--accent-ink); margin-top: 6px; }
@media (max-width: 860px) { .more-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .more-card { grid-template-columns: 1fr; } }
.phones-3 { grid-template-columns: repeat(3, 1fr); max-width: 820px; margin: 0 auto; }
.admin-settings + .admin-settings { margin-top: 24px; }
.admin-status { display: flex; align-items: center; gap: 10px; margin: -8px 0 20px; color: var(--ink-2); }
.status-dot.is-off { background: #e0a030; animation: none; }
.admin-settings form .form-note { margin-top: 12px; }
.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-viseca { background: #eef2f8; }
.plain-frame { display: block; overflow: hidden; border-radius: var(--radius-lg); background: #eef2f8; }
.plain-frame img { width: 100%; padding: clamp(12px, 3vw, 40px) 0; }
