/*
  HOW TO EDIT (styles.css)
  - Colors: change the tokens in :root below (navy, panel, off-white, accent blue on dark / on light, amber).
  - Fonts: Bricolage Grotesque (headings) and Hanken Grotesk (body) are loaded in index.html. Change --font-head / --font-body here.
  - Spacing: --section-y controls the vertical space between sections; --maxw is the content width.
  - Light/dark bands: a section with class "dark" or "light" switches the color variables for everything inside it.
  - Text, links, projects and reviews are NOT edited here: see index.html and script.js.
*/

:root {
  --navy: #0E1526;
  --panel: #16203A;
  --paper: #F5F3EE;
  --blue-dark: #4C7DFF;   /* accent on dark */
  --blue-light: #2F57E0;  /* accent on light */
  --amber: #F2B84B;       /* highlight, used sparingly */

  --font-head: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 40px);
  --section-y: clamp(56px, 7.5vw, 100px);
  --radius: 22px;
  --header-h: 68px;
}

/* Color contexts */
.dark {
  --bg: var(--navy);
  --fg: #F5F3EE;
  --muted: #A9B3CC;
  --card: var(--panel);
  --border: rgba(255, 255, 255, .1);
  --border-strong: rgba(255, 255, 255, .28);
  --accent: var(--blue-dark);
  --focus: #8FB0FF;
  --btn-bg: var(--blue-dark);
  --btn-fg: #0B1020;
  --tag-bg: rgba(255, 255, 255, .07);
  --tag-fg: #DCE3F5;
  --glow: rgba(76, 125, 255, .16);
}
.light {
  --bg: var(--paper);
  --fg: var(--navy);
  --muted: #4B5468;
  --card: #FFFFFF;
  --border: rgba(14, 21, 38, .1);
  --border-strong: rgba(14, 21, 38, .35);
  --accent: var(--blue-light);
  --focus: #2F57E0;
  --btn-bg: var(--blue-light);
  --btn-fg: #FFFFFF;
  --tag-bg: rgba(47, 87, 224, .08);
  --tag-fg: #1F3CA8;
  --glow: rgba(47, 87, 224, .10);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: #F5F3EE;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  font-feature-settings: "kern", "liga", "calt";
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus, #8FB0FF); outline-offset: 3px; border-radius: 6px; }

.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: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; color: var(--navy); padding: 12px 18px; border-radius: 10px; font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; }
#progress-bar { display: block; height: 100%; background: var(--blue-dark); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  #progress-bar { animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes grow { to { transform: scaleX(1); } }

/* Placeholders: every [BRACKET] stays visible until filled */
.ph {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 8px;
  border: 1px dashed #C98F1E;
  background: #FBEFD0;
  color: #5E4200;
  font-size: .92em;
  line-height: 1.5;
}
.dark .ph { background: rgba(242, 184, 75, .12); border-color: rgba(242, 184, 75, .7); color: var(--amber); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -10px var(--btn-bg); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { box-shadow: none; border-color: var(--fg); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(14, 21, 38, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  --fg: #F5F3EE; --focus: #8FB0FF; --btn-bg: var(--blue-dark); --btn-fg: #0B1020; --border-strong: rgba(255,255,255,.28);
}
.nav-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; min-height: 44px; }
.wordmark-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--panel); border: 1px solid rgba(255,255,255,.14); color: #8FB0FF; font-size: .9rem; }
.wordmark-logo { width: 44px; height: 44px; image-rendering: auto; flex: none; }
.wordmark-text { font-size: 1rem; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: #C9D2E8; font-size: .95rem; font-weight: 500; transition: color .2s, background-color .2s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: #F5F3EE; border-radius: 2px; }

@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1); padding: 8px var(--pad) 20px; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a { width: 100%; padding: 0 8px; font-size: 1.05rem; border-radius: 10px; }
}
@media (max-width: 440px) { .wordmark-text { display: none; } }

/* Sections */
.section { padding-block: var(--section-y); background: var(--bg); color: var(--fg); }
.section.light { padding-block: calc(var(--section-y) - 15px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.eyebrow { font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.dark .eyebrow { color: #8FB0FF; }
h2 { font-size: clamp(2.1rem, 1.1rem + 4vw, 4rem); }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); margin-top: 18px; max-width: 62ch; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 560px at 85% 8%, rgba(76,125,255,.30), transparent 60%),
    radial-gradient(600px 420px at 6% 100%, rgba(242,184,75,.08), transparent 60%),
    var(--navy);
  padding-block: calc(clamp(48px, 8vw, 120px) - 30px) clamp(56px, 8vw, 110px);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 40px; } }

.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.05); font-size: .9rem; font-weight: 500; color: #DCE3F5; margin-bottom: 26px; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242,184,75,.2); }
.hero-title { font-size: clamp(2.4rem, 1rem + 4.8vw, 4.9rem); letter-spacing: -0.025em; line-height: 1; text-wrap: balance; }
.hl { font-style: normal; color: var(--amber); }
.w { display: inline-block; opacity: 0; transform: translateY(.45em); animation: wordIn 280ms cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.hero-sub { color: var(--muted); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 46ch; margin: 24px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cta .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .hero-cta .btn { flex: 0 0 auto; } }
.hero-meta { margin: 20px 0 0; font-size: .95rem; color: var(--muted); }

.hero-visual { position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 1 / 1.2; }
.headshot { position: absolute; top: 0; right: 0; width: 86%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 46% 54% 42% 58% / 38% 44% 56% 62%; border: 1px solid rgba(255,255,255,.14); background: var(--panel); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.headshot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.dots { position: absolute; left: 0; bottom: 0; width: 55%; height: 45%; background-image: radial-gradient(rgba(143,176,255,.55) 1.6px, transparent 1.8px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 100%); mask-image: radial-gradient(closest-side, #000 40%, transparent 100%); }
.chip { position: absolute; z-index: 2; padding: 10px 16px; border-radius: 14px; background: linear-gradient(180deg, rgba(36,50,88,.92), rgba(22,32,58,.92)); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 14px 36px -14px rgba(0,0,0,.7); font-size: .88rem; line-height: 1.3; font-weight: 500; color: #EAEFFD; }
.chip strong { color: var(--amber); font-family: var(--font-head); }
.chip-star { display: none; }
.chip-a { top: 12%; left: 0; }
.chip-b { left: 0; bottom: 8%; max-width: 52%; }
@media (max-width: 420px) { .chip { font-size: .8rem; padding: 8px 12px; } .chip-b { max-width: 52%; } }


/* Hero fits the first screen: everything scales with the visible height on desktop */
@media (min-width: 960px) {
  .hero { padding-block: clamp(16px, 4svh, 40px) clamp(28px, 5.5svh, 56px); }
  .hero-title { font-size: clamp(2.2rem, min(1rem + 4.8vw, 8.4svh), 4.9rem); }
  .pill { margin-bottom: clamp(12px, 2.6svh, 26px); }
  .hero-sub { margin: clamp(12px, 2.6svh, 24px) 0 clamp(16px, 3.4svh, 34px); }
  .hero-visual { width: min(100%, 440px, calc((100svh - var(--header-h) - 110px) / 1.2)); }
}
@media (max-width: 959px) {
  .hero { padding-block: 20px 40px; }
  .hero-grid { gap: 36px; }
  .pill { margin-bottom: 16px; }
  .hero-title { font-size: clamp(2.1rem, 1rem + 5.2vw, 3rem); }
  .hero-sub { margin: 16px 0 22px; }
}

/* Browser frame */
.frame { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(14,21,38,.14); }
.dark .frame { border-color: rgba(255,255,255,.14); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #E9E6DE; border-bottom: 1px solid rgba(14,21,38,.1); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C6C2B7; flex: none; }
.frame-bar i:nth-child(1) { background: #E58C86; } .frame-bar i:nth-child(2) { background: #E8C46A; } .frame-bar i:nth-child(3) { background: #8CC59B; }
.url { margin-left: 8px; flex: 1; min-width: 0; height: 20px; padding: 0 10px; border-radius: 999px; background: #fff; color: #3C4458; font-size: .7rem; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url-ph { color: #5E4200; background: #FBEFD0; }
.frame img { width: 100%; height: auto; background: #fff; }

/* Proof strip */
.proof { background: var(--panel); border-block: 1px solid rgba(255,255,255,.08); padding-block: 32px; }
.proof-grid { display: flex; flex-wrap: wrap; gap: 24px 72px; }
.proof-grid li { display: flex; flex-direction: column; gap: 6px; }
.proof-val { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.proof-val.ph { font-family: var(--font-body); font-weight: 500; font-size: .95rem; letter-spacing: 0; align-self: flex-start; }
.proof-label { color: var(--muted); font-size: .92rem; line-height: 1.4; }

/* Cards / bento */
.card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 62%); }
@media (hover: hover) { .card:hover::before { opacity: 1; } }
.bento { display: grid; gap: 20px; grid-template-columns: 1fr; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--fg); font-weight: 600; font-size: .95rem; cursor: pointer; transition: background-color .2s, color .2s; }
.filter .count { font-size: .8rem; opacity: .75; }
.filter[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter:hover { border-color: var(--fg); }

/* Project cards */
.project { display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; cursor: pointer; }
.project:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(14,21,38,.45); }
.project:has(.card-open:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.project .frame { border-radius: 0; border: 0; border-bottom: 1px solid var(--border); }
.project .frame img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; }
.project-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.tag { display: inline-block; align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-fg); font-size: .78rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 12px; }
.project h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); margin-bottom: 10px; }
.card-open { all: unset; cursor: pointer; }
.card-open::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card-open:focus-visible { outline: none; }
.outcome { color: var(--muted); font-size: 1rem; margin-bottom: 18px; }
.more { margin-top: auto; font-weight: 600; font-size: .95rem; color: var(--accent); }
.project:hover .more { text-decoration: underline; text-underline-offset: 4px; }

.featured { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .featured { grid-template-columns: repeat(12, 1fr); }
  .feat:nth-child(1) { grid-column: 1 / -1; flex-direction: row; }
  .feat:nth-child(n+2) { grid-column: span 6; }
  .feat:nth-child(1) .frame { flex: 0 0 58%; display: flex; flex-direction: column; border-bottom: 0; border-right: 1px solid var(--border); }
  .feat:nth-child(1) .frame img { flex: 1; min-height: 0; aspect-ratio: auto; }
  .feat:nth-child(1) .project-body { justify-content: center; padding: 40px; }
  .feat:nth-child(1) .more { margin-top: 12px; }
  .feat:nth-child(1) h3 { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem); }
}
.more-title { font-size: 1.1rem; font-family: var(--font-head); color: var(--muted); margin: 56px 0 20px; letter-spacing: -0.01em; }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
#featured[hidden] + .more-title { display: none; }

/* Results */
.results-bento { grid-template-columns: 1fr; }
.tile { padding: clamp(24px, 3vw, 36px); }
.tile h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 12px; }
.tile p { color: var(--muted); }
.tile-kicker { font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8FB0FF !important; margin-bottom: 18px !important; }
.stat { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4rem); white-space: nowrap; color: var(--amber) !important; margin: 0 0 14px !important; font-variant-numeric: tabular-nums; }
.stat.sm { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); margin: 0 !important; }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mini-stats li { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: .98rem; }
.note-row { margin: 0; }
@media (min-width: 900px) {
  .results-bento { grid-template-columns: repeat(12, 1fr); }
  .results-bento .tile:not(.tile-wide) { grid-column: span 4; }
  .note-row, .tile-wide { grid-column: 1 / -1; }
  .mini-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Services */
.services { grid-template-columns: 1fr; }
.services .tile p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { padding: 5px 14px; border-radius: 999px; background: var(--tag-bg); color: var(--tag-fg); font-size: .85rem; font-weight: 500; border: 1px solid transparent; }
.tags-sm { margin-top: 14px; } .tags-sm li { font-size: .78rem; padding: 3px 11px; }
.tile-ai { --card: var(--navy); --fg: #F5F3EE; --muted: #A9B3CC; --tag-bg: rgba(255,255,255,.08); --tag-fg: #DCE3F5; --btn-bg: var(--blue-dark); --btn-fg: #0B1020; --focus: #8FB0FF; --glow: rgba(76,125,255,.22); color: var(--fg); background: radial-gradient(500px 280px at 100% 0%, rgba(76,125,255,.28), transparent 70%), var(--navy); border-color: rgba(76,125,255,.4); }
.tile-ai .btn { margin-top: 26px; }
.badge { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(242,184,75,.14); border: 1px solid rgba(242,184,75,.6); color: var(--amber); font-size: .8rem; font-weight: 600; margin-bottom: 18px; }
.badge-light { background: var(--tag-bg); border-color: transparent; color: var(--tag-fg); }
@media (min-width: 900px) {
  .services { grid-template-columns: repeat(12, 1fr); }
  .s-shopify, .s-front, .s-seo { grid-column: span 4; }
}

/* Process */
.steps { display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step-n { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: #8FB0FF; margin-bottom: 36px; letter-spacing: .06em; }
.steps h3 { font-size: 1.4rem; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; font-size: 1rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Reviews */
.reviews-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
.review { margin: 0; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rating .stars { color: var(--amber); letter-spacing: 2px; background: var(--navy); padding: 4px 12px; border-radius: 999px; font-size: .95rem; }
.rating strong { font-family: var(--font-head); }
.rev-title { color: var(--muted); font-size: .92rem; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; font-size: 1.02rem; line-height: 1.7; }
.review figcaption { display: flex; flex-direction: column; gap: 4px; font-size: .95rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 18px; }
.review figcaption strong { color: var(--fg); }
.cta-inline { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-inline p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); letter-spacing: -0.02em; }

/* About */
.about-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.3fr 1fr; gap: 80px; } }
.about-meta { color: var(--muted); font-size: 1rem; margin-top: 24px; }
.skills { display: flex; flex-wrap: wrap; gap: 12px; }
.skills li { padding: 14px 24px; border-radius: 999px; background: var(--card); color: var(--fg); border: 1px solid var(--border); font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }

/* AI */
.ai-bento { grid-template-columns: 1fr; }
@media (min-width: 900px) { .ai-bento { grid-template-columns: 1.4fr 1fr; } }
.slots { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tile-empty { border-style: dashed; border-color: var(--border-strong); background: transparent; }

/* Contact */
.contact { background: radial-gradient(800px 480px at 90% 0%, rgba(76,125,255,.22), transparent 62%), var(--navy); }
.contact h2 { font-size: clamp(2rem, 1.1rem + 3.2vw, 3.2rem); }
.contact-grid { display: grid; gap: 56px; align-items: start; }
.contact-grid > div { max-width: 760px; }
.contact .hero-cta { margin-top: 28px; }
.cta-quote { margin: 32px 0 0; padding: 22px 24px; border-left: 3px solid var(--amber); background: rgba(255,255,255,.04); border-radius: 0 16px 16px 0; }
.cta-quote p { margin: 0 0 10px; font-size: 1.05rem; }
.cta-quote footer { color: var(--muted); font-size: .9rem; }
.contact-list { margin-top: 40px; display: grid; gap: 0; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 16px 0; border-top: 1px solid var(--border); min-height: 60px; }
.contact-list li:last-child { border-bottom: 1px solid var(--border); }
.contact-label { width: 110px; flex: none; color: var(--muted); font-size: .92rem; }
.contact-list a { text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.contact-list a.ph-link { text-decoration: none; }
.copy-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.contact-form { padding: clamp(24px, 3vw, 36px); display: grid; gap: 8px; }
.contact-form h3 { font-size: 1.5rem; margin-bottom: 12px; }
.contact-form label { font-size: .92rem; font-weight: 500; color: #DCE3F5; margin-top: 8px; }
.contact-form input:not([type="hidden"]), .contact-form textarea { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 14px; background: var(--navy); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid #8FB0FF; outline-offset: 2px; border-color: transparent; }
.contact-form .btn { margin-top: 16px; width: 100%; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { min-height: 1.5em; margin: 8px 0 0; font-size: .95rem; color: var(--muted); }
.form-status.ok { color: #BFD0FF; } .form-status.err { color: var(--amber); }

/* Footer */
.site-footer { background: var(--navy); border-top: 1px solid var(--border); padding-block: 36px; color: var(--muted); font-size: .95rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot-row p { margin: 0; }
.foot-row a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 767px) { .site-footer { padding-bottom: 110px; } }

/* Mobile sticky bar */
.mobile-bar { position: fixed; inset: auto 0 0 0; z-index: 55; display: none; grid-template-columns: 1fr; gap: 10px; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); background: var(--navy); border-top: 1px solid rgba(255,255,255,.12); transform: translateY(110%); transition: transform .3s ease;
  --fg: #F5F3EE; --focus: #8FB0FF; --btn-bg: var(--blue-dark); --btn-fg: #0B1020; --border-strong: rgba(255,255,255,.3); }
.mobile-bar.show { transform: none; }
@media (max-width: 767px) { .mobile-bar { display: grid; } }

/* Case-study modal */
.case { width: min(1040px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: var(--paper); color: var(--navy); overflow: auto; box-shadow: 0 40px 120px -20px rgba(0,0,0,.6);
  --fg: var(--navy); --muted: #4B5468; --card: #fff; --border: rgba(14,21,38,.1); --border-strong: rgba(14,21,38,.35); --accent: var(--blue-light); --focus: #2F57E0; --btn-bg: var(--blue-light); --btn-fg: #fff; --tag-bg: rgba(47,87,224,.08); --tag-fg: #1F3CA8; }
.case::backdrop { background: rgba(8,12,24,.74); }
.case[open] { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.case-inner { padding: clamp(20px, 4vw, 44px); }
.case-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.case-head h2 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.8rem); }
.case-head .tag { margin-bottom: 14px; }
.case-meta { color: var(--muted); margin: 10px 0 0; font-size: .98rem; }
.case-close { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-strong); background: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--navy); }
.case-close:hover { background: var(--navy); color: #fff; }
.case-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
.case-grid.one { grid-template-columns: 1fr !important; }
.case-grid section { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; }
.case-grid h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; font-family: var(--font-head); }
.case-grid p, .case-grid li { font-size: 1rem; margin: 0 0 8px; line-height: 1.55; }
.case-grid ul:not(.tags) li { position: relative; padding-left: 18px; }
.case-grid ul:not(.tags) li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.case-grid .tags { margin-top: 0; }
.case-note { margin: 16px 0 0; font-size: .95rem; }
.gallery-note { margin: 28px 0 0; color: var(--muted); font-size: 1rem; }
.gallery { display: grid; gap: 16px; margin-top: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.shot { margin: 0; }
.shot.portrait { max-width: 320px; }
.shot figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.shot-ph { display: grid; place-items: center; text-align: center; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px dashed #C98F1E; background: #FBEFD0; padding: 16px; }
.case-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.case-review { margin: 32px 0 0; padding: 22px 26px; border-left: 3px solid var(--blue-light); background: #fff; border-radius: 0 16px 16px 0; }
.case-review p { margin: 0 0 10px; font-size: 1rem; }
.case-review footer { color: var(--muted); font-size: .92rem; }
.case-cta { --fg: #F5F3EE; --muted: #A9B3CC; --btn-bg: var(--blue-dark); --btn-fg: #0B1020; --focus: #8FB0FF; margin-top: 36px; padding: clamp(22px, 3vw, 34px); border-radius: 20px; background: radial-gradient(500px 240px at 100% 0%, rgba(76,125,255,.3), transparent 70%), var(--navy); color: var(--fg); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.case-cta h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.case-cta p { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }

/* Reveal animations (restrained) */
@supports (animation-timeline: view()) {
  .reveal { animation: rv linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
}
@keyframes rv { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
html.io-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
html.io-reveal .reveal.in { opacity: 1; transform: none; }

/* Reduced motion: no animation, no hover lift, no spotlight, no smooth scroll */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, html.io-reveal .reveal { opacity: 1 !important; transform: none !important; }
  .w { opacity: 1; transform: none; }
  .card::before { display: none; }
  .btn:hover, .project:hover { transform: none; }
  .mobile-bar { transition: none; }
}
