/* mschiller.dev: clear, confident, quiet. One ink-blue accent, light and dark. */
@font-face { font-family: Manrope; src: url('/fonts/manrope.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: Newsreader; src: url('/fonts/newsreader.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --raised: #fbfcfd;
  --ink: #0f1729;
  --muted: #566176;
  --line: #e1e5ec;
  --accent: #2952e3;
  --accent-strong: #1e3fb8;
  --accent-soft: #e9eeff;
  --on-accent: #ffffff;
  --band: #0f1729;
  --on-band: #eef2fb;
  --shadow: 0 1px 2px #0f17290d, 0 12px 32px -12px #0f172926;
  --sans: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: Newsreader, Georgia, serif;
  --width: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #151a22;
    --raised: #1a202a;
    --ink: #e9edf4;
    --muted: #9ba6b9;
    --line: #262e3b;
    --accent: #7d9bff;
    --accent-strong: #a3b8ff;
    --accent-soft: #1b2442;
    --on-accent: #0b1020;
    --band: #1b2442;
    --on-band: #eef2fb;
    --shadow: 0 1px 2px #0006, 0 16px 40px -16px #000a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 30; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--on-accent); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; max-width: calc(var(--width) + 2 * var(--gutter)); margin: 0 auto; padding: 14px var(--gutter); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; text-decoration: none; }
.monogram { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; letter-spacing: -.02em; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .15s, background .15s; }
.site-nav a:hover { color: var(--ink); background: var(--surface); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.language-switcher { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.language-switcher button { min-width: 36px; min-height: 30px; padding: 4px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 11px var(--sans); letter-spacing: .04em; cursor: pointer; }
.language-switcher button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.language-switcher button:hover:not([aria-pressed="true"]) { color: var(--ink); }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 15px var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; }
.button:hover { border-color: var(--ink); transform: translateY(-1px); }
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -10px var(--accent); }
.button-primary:hover { border-color: var(--accent-strong); background: var(--accent-strong); }
.button-small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22b573; box-shadow: 0 0 0 4px #22b57326; }

main { max-width: calc(var(--width) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: clamp(32px, 6vw, 80px); padding-block: clamp(40px, 8vw, 96px) clamp(32px, 5vw, 64px); }
.hero-copy { display: grid; gap: 24px; }
.hero h1 { font-size: clamp(34px, 9.5vw, 96px); line-height: .98; letter-spacing: -.045em; overflow-wrap: anywhere; hyphens: auto; }
.hero h1 em { color: var(--accent); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.hero-lede { max-width: 34em; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); }
.hero-availability { color: var(--muted); font-size: 14px; }
.hero-photo { margin: 0; display: grid; gap: 14px; }
.hero-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.hero-photo figcaption { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-photo figcaption a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; text-decoration: none; }
.hero-photo figcaption a:hover { border-color: var(--accent); color: var(--accent); }
.principles { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 8px; }
.principles p { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 500; }

/* Sections */
.section { padding-block: clamp(56px, 9vw, 112px); border-top: 1px solid var(--line); }
.principles + .section { margin-top: clamp(40px, 6vw, 72px); }
.section-heading { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-heading h2 { font-size: clamp(32px, 4.4vw, 52px); }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 18px; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service { display: grid; align-content: start; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, transform .2s, box-shadow .2s; }
.service:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.service h3 { font-size: 21px; }
.service h3::before { content: ''; display: block; width: 28px; height: 4px; margin-bottom: 18px; border-radius: 4px; background: var(--accent); }
.service p { color: var(--muted); }
.service-invitation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 24px 28px; border-radius: var(--radius); background: var(--accent-soft); }
.service-invitation p { display: grid; gap: 2px; font-size: 19px; font-weight: 700; }
.service-invitation p span { color: var(--muted); font-size: 15px; font-weight: 500; }

.case-list { display: grid; border-top: 1px solid var(--line); }
.case-study { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 16px 48px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.case-meta { display: grid; align-content: start; gap: 4px; color: var(--muted); font-size: 14px; }
.case-client { color: var(--ink); font-size: 16px; font-weight: 700; }
.case-tags { margin-top: 6px; color: var(--accent); font-size: 13px; font-weight: 600; }
.case-body { display: grid; gap: 10px; }
.case-body h3 { font-size: 24px; }
.case-body p { color: var(--muted); }

.about-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); }
.about-role { color: var(--muted); font-size: 18px; }
.about-copy { display: grid; gap: 18px; font-size: 18px; }
.about-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.about-facts div { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.about-facts dt { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.about-facts dd { margin: 6px 0 0; font-weight: 600; }

.studio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.studio-card { display: grid; gap: 6px; padding: 10px 10px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.studio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.studio-card img { aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 10px; border-radius: 12px; background: var(--raised); }
.studio-card-name { padding-inline: 8px; font-size: 18px; font-weight: 700; }
.studio-card-tagline { padding-inline: 8px; color: var(--muted); font-size: 14px; }

.contact-band { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 18px; margin-block: 24px clamp(56px, 8vw, 96px); padding: clamp(24px, 6vw, 72px); border-radius: 28px; background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%), var(--band); color: var(--on-band); }
.contact-band .eyebrow { color: color-mix(in srgb, var(--on-band) 70%, var(--accent)); }
.contact-band h2 { max-width: 100%; font-size: clamp(30px, 5.6vw, 64px); }
.contact-band > p:not(.eyebrow) { max-width: 36em; color: color-mix(in srgb, var(--on-band) 78%, transparent); font-size: 18px; }
.contact-band .button:not(.button-primary) { border-color: #ffffff40; background: transparent; color: var(--on-band); }
.contact-band .button:not(.button-primary):hover { border-color: var(--on-band); }
.contact-band .button-primary { border-color: #fff; background: #fff; color: #0f1729; box-shadow: none; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 8px; }
.contact-direct a { color: var(--on-band); font-weight: 600; text-decoration: underline; text-decoration-color: #ffffff55; text-underline-offset: 4px; }
.contact-direct a:hover { text-decoration-color: currentColor; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; max-width: calc(var(--width) + 2 * var(--gutter)); margin: 0 auto; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer a { font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

/* Contact dialog */
.contact-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px #0008; }
.contact-dialog::backdrop { background: #0b1020a6; backdrop-filter: blur(4px); }
.contact-dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.contact-dialog-header h2 { margin-top: 6px; font-size: 32px; }
.contact-dialog-close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.contact-dialog-close:hover { border-color: var(--ink); }
.ui-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-dialog-intro { margin: 12px 0 20px; color: var(--muted); }
.contact-form { display: grid; gap: 16px; }
.contact-form fieldset { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.contact-form legend { margin-bottom: 8px; font-weight: 700; }
.contact-form fieldset label { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.contact-form fieldset label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.contact-form input[type="radio"] { accent-color: var(--accent); }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-form label > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.contact-form small { color: var(--muted); font-weight: 500; }
.contact-form input[type="email"], .contact-form input[type="text"], .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.contact-trap { display: none; }
.contact-note, .contact-dialog-email { color: var(--muted); font-size: 13px; }
.contact-dialog-email { margin-top: 16px; }
.contact-dialog-email a { color: var(--accent); font-weight: 600; }

/* Thanks */
.thanks-page { display: grid; min-height: 100dvh; place-items: center; padding: var(--gutter); }
.thanks { display: grid; justify-items: start; gap: 20px; max-width: 560px; }
.thanks h1 { font-size: clamp(40px, 7vw, 64px); }
.thanks p { color: var(--muted); font-size: 18px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { max-width: 360px; }
  .services, .studio-cards { grid-template-columns: 1fr; }
  .case-study, .about-body { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-tools { margin-left: auto; }
  .contact-fields, .about-facts { grid-template-columns: 1fr; }
  .contact-dialog { padding: 20px; }
}
@media (max-width: 420px) {
  .site-header { gap: 12px; }
  .header-tools .button-small { display: none; }
}
@media (max-width: 380px) {
  .brand > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
