:root {
  --paper: #f2f0eb;
  --surface: #e7e3dc;
  --ink: #181917;
  --muted: #646661;
  --line: #cfcac1;
  --deep: #171918;
  --light: #f7f5f0;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
::selection { background: #c7bca9; color: var(--ink); }
:focus-visible { outline: 3px solid #8c7450; outline-offset: 4px; }
.shell { width: min(100% - 96px, 1400px); margin-inline: auto; }
.skip-link { position: absolute; left: 10px; top: -100px; padding: 12px; z-index: 100; background: var(--light); }
.skip-link:focus { top: 10px; }
.eyebrow, .hero-kicker { color: var(--muted); font: 700 11px/1.3 var(--display); letter-spacing: .16em; }

/* A quiet frame lets the work supply the color. */
.header { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; min-height: 80px; gap: 35px; }
.wordmark { font: 800 17px/1 var(--display); letter-spacing: -.075em; white-space: nowrap; }
.wordmark span:last-child { font-weight: 500; margin-left: .12em; }
.wordmark-dot { color: #8b7b61; }
.navigation { margin-left: auto; display: flex; align-items: center; gap: 32px; }
.navigation a { font-size: 13px; font-weight: 600; }
.navigation a:hover, .navigation a:focus-visible { color: #7b694e; }
.header-contact { display: inline-flex; align-items: center; gap: 30px; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 100px; font-size: 12px; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s; }
.header-contact:hover { background: var(--ink); color: var(--light); }
.menu-button { display: none; }

.hero-stage { padding-top: clamp(70px, 8vw, 128px); padding-bottom: clamp(94px, 10vw, 154px); }
.hero-stage-inner { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(45px, 7vw, 120px); }
.hero-copy { min-width: 0; }
.hero-kicker span { margin: 0 8px; color: #aea89f; }
.hero h1 { margin-top: 32px; font-size: clamp(62px, 6.6vw, 104px); line-height: .98; font-weight: 650; letter-spacing: -.073em; text-wrap: balance; }
.hero h1 em { font: inherit; }
.hero-copy > p { max-width: 390px; margin-top: 35px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 27px; flex-wrap: wrap; margin-top: 39px; }
.hero-hire { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 52px; padding: 0 20px; border-radius: 100px; background: var(--ink); color: var(--light); font-size: 13px; font-weight: 700; transition: background .2s, transform .2s; }
.hero-hire:hover { background: #4e514b; transform: translateY(-2px); }
.hero-contact { display: inline-flex; align-items: center; gap: 15px; min-height: 44px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; }
.hero-contact:hover { color: #7b694e; }
.hero-feature { min-width: 0; }
.hero-film { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; padding: 0; border: 0; border-radius: 6px; background: #161823; }
.hero-motion { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-film:hover .hero-motion { transform: scale(1.025); }
.hero-film-play { position: absolute; left: 22px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #ffffffa0; border-radius: 100px; background: #151719a8; color: white; font: 700 10px/1 var(--display); letter-spacing: .1em; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-film-play > span { font-size: 10px; }
.hero-film-caption { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 8px 20px; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 17px; }
.hero-film-caption span { color: var(--muted); font: 700 10px/1.3 var(--display); letter-spacing: .12em; }
.hero-film-caption strong { grid-column: 1; grid-row: 2; font: 700 24px/1.1 var(--display); letter-spacing: -.045em; }
.hero-film-caption span:last-child { grid-column: 2; grid-row: 2; text-align: right; }

.section-space { padding-top: 130px; padding-bottom: 145px; }
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 55px; }
.section-intro h2, .about h2 { margin-top: 20px; font: 700 clamp(56px, 6vw, 88px)/1.03 var(--display); letter-spacing: -.065em; }
.section-intro h2 span { color: #787a74; }
.section-intro p { max-width: 310px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.work { padding-top: 90px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 28px; }
.project { min-width: 0; }
.project-visual { position: relative; display: block; width: 100%; height: clamp(430px, 47vw, 640px); overflow: hidden; padding: 0; border: 0; border-radius: 6px; background: #1c1d1c; }
.project-visual::before { content: ''; position: absolute; inset: -40px; background: var(--poster) center / cover; filter: blur(35px) brightness(.55) saturate(.75); transform: scale(1.1); }
.project-visual::after { content: ''; position: absolute; inset: 0; background: #0001; pointer-events: none; }
.project-visual img { position: relative; z-index: 1; display: block; width: auto; height: 100%; max-width: 72%; margin-inline: auto; object-fit: contain; box-shadow: 0 0 45px #0004; transition: transform .35s ease; }
.project-visual:hover img { transform: scale(1.025); }
.project-wide { grid-column: 1 / -1; }
.project-wide .project-visual { aspect-ratio: 16/9; height: auto; background: #181925; }
.project-wide .project-visual img { width: 100%; max-width: 100%; height: 100%; object-fit: contain; box-shadow: none; }
.featured-tag { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 10px 13px; border-radius: 100px; background: #f2f0ebed; color: var(--ink); font: 700 10px/1 var(--display); letter-spacing: .08em; }
.play-circle { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 58px; height: 58px; padding-left: 3px; border-radius: 50%; background: var(--light); color: var(--ink); font-size: 17px; box-shadow: 0 10px 32px #0005; transition: transform .2s; }
.project-visual:hover .play-circle { transform: translate(-50%, -50%) scale(1.1); }
.project-detail { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-top: 20px; }
.project-detail span { color: var(--muted); font: 700 10px var(--display); letter-spacing: .12em; }
.project-detail h3 { margin-top: 9px; font: 650 clamp(27px, 2.8vw, 40px)/1.15 var(--display); letter-spacing: -.05em; }
.project-detail p { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.project-detail > a { font-size: 27px; line-height: 1; transition: transform .2s; }
.project-detail > a:hover { transform: translate(3px, -3px); }
.work-tail { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 85px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font: 700 10px var(--display); letter-spacing: .09em; }
.work-tail a { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 4px; font-size: 12px; }

.result { background: var(--surface); }
.result-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; padding-top: 120px; padding-bottom: 125px; }
.result-label h2 { margin: 25px 0; font: 700 clamp(50px, 4.7vw, 74px)/1.05 var(--display); letter-spacing: -.06em; }
.result-label p { max-width: 500px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.result-label p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.line-link { display: inline-flex; gap: 30px; margin-top: 35px; padding-bottom: 7px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; }
.result-stat { display: flex; flex-direction: column; align-items: start; justify-content: center; padding-left: 8%; border-left: 1px solid #bbb5a9; }
.stat-prefix { font: 600 60px/1 var(--display); }
.result-stat strong { font: 750 clamp(130px, 15vw, 225px)/.89 var(--display); letter-spacing: -.11em; }
.stat-note { margin-top: 22px; font: 700 11px var(--display); letter-spacing: .12em; }
.result-person { display: flex; align-items: center; gap: 12px; width: min(100%, 420px); margin-top: 42px; padding-top: 18px; border-top: 1px solid #bbb5a9; font: 700 11px/1.5 var(--display); letter-spacing: .04em; }
.result-person img { width: 43px; height: 43px; border-radius: 50%; object-fit: cover; }
.result-person small { color: var(--muted); font-size: 9px; font-weight: 500; }

.clients { padding-top: 135px; }
.client-grid { border-top: 1px solid var(--ink); }
.client-card { display: grid; grid-template-columns: 50px minmax(0, 1fr) 44px; align-items: center; gap: 25px; min-width: 0; padding: 29px 0; border-bottom: 1px solid var(--line); transition: padding .2s, color .2s; }
.client-card:hover { padding-left: 12px; padding-right: 12px; color: #7b694e; }
.client-index { align-self: start; padding-top: 10px; color: var(--muted); font: 700 11px var(--display); letter-spacing: .1em; }
.client-info h3 { font: 650 clamp(31px, 3.7vw, 55px)/1.1 var(--display); letter-spacing: -.05em; }
.client-info p { margin-top: 9px; color: var(--muted); font-size: 14px; }
.client-arrow { justify-self: end; font: 400 34px/1 var(--body); }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; padding-top: 100px; border-top: 1px solid var(--line); }
.about-body { padding-top: 28px; }
.about-lead { margin-bottom: 25px; font: 650 clamp(25px, 2.7vw, 39px)/1.3 var(--display); letter-spacing: -.045em; }
.about-body > p:not(.about-lead) { max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.service-rows { margin-top: 54px; border-top: 1px solid var(--ink); }
.service-rows > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.service-rows span { grid-row: span 2; color: var(--muted); font: 700 11px var(--display); }
.service-rows strong { font: 650 21px var(--display); letter-spacing: -.03em; }
.service-rows p { margin-top: 7px; color: var(--muted); font-size: 13px; }

.contact { background: var(--deep); color: var(--light); }
.contact-inner { padding-top: 52px; padding-bottom: 67px; }
.contact-top { display: flex; justify-content: space-between; gap: 20px; color: #b4b5af; font: 700 10px var(--display); letter-spacing: .12em; }
.contact h2 { margin: 115px 0 85px; font: 700 clamp(62px, 8vw, 126px)/1 var(--display); letter-spacing: -.065em; }
.contact h2 span { color: #b4b5af; }
.contact-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 27px 0; border-top: 1px solid #656763; border-bottom: 1px solid #656763; }
.contact-bottom p { max-width: 440px; color: #b4b5af; font-size: 17px; line-height: 1.5; }
.contact-main { display: inline-flex; justify-content: space-between; gap: 50px; min-width: 285px; padding: 18px 22px; border-radius: 100px; background: var(--light); color: var(--ink); font: 750 12px var(--display); letter-spacing: .05em; transition: background .2s; }
.contact-main:hover { background: #d7d1c4; }
.contact-main span { font-size: 19px; line-height: .8; }
.contact-other { display: flex; gap: 30px; margin-top: 32px; color: #b4b5af; font: 700 11px var(--display); letter-spacing: .06em; }
.contact-other a:hover { color: white; }
.footer { background: var(--deep); color: #a0a19b; border-top: 1px solid #424540; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 20px; font: 700 10px var(--display); letter-spacing: .08em; }
.footer a:hover { color: white; }

.contact-dock[hidden], .contact-popover[hidden] { display: none; }
.contact-dock { position: fixed; z-index: 30; right: 28px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; width: min(350px, calc(100vw - 32px)); }
.contact-dock-trigger { display: flex; align-items: center; gap: 11px; min-height: 49px; padding: 0 17px; border: 1px solid #6d7068; border-radius: 100px; background: #1d201de8; color: white; box-shadow: 0 10px 36px #0005; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 12px; font-weight: 750; }
.contact-dock-trigger:hover, .contact-dock-trigger[aria-expanded="true"] { background: #343832; }
.contact-dock-trigger span:last-child { margin-left: 9px; color: #d0c3aa; font-size: 18px; font-weight: 500; }
.contact-dock-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbbd9e; box-shadow: 0 0 0 5px #cbbd9e25; }
.contact-popover { position: relative; width: 100%; padding: 29px; border: 1px solid #6d7068; border-radius: 18px; background: #1d201df2; color: white; box-shadow: 0 24px 65px #0007; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.contact-popover-close { position: absolute; top: 16px; right: 17px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: transparent; color: #c5c7c1; font-size: 25px; line-height: 1; }
.contact-popover-close:hover { color: white; }
.contact-popover-kicker { color: #d0c3aa; font: 700 10px/1 var(--display); letter-spacing: .13em; }
.contact-popover h2 { margin-top: 16px; font: 700 32px/1.05 var(--display); letter-spacing: -.055em; }
.contact-popover p { margin: 10px 0 23px; color: #c0c2bb; font-size: 13px; line-height: 1.5; }
.contact-popover-primary, .contact-popover-secondary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 17px; border-radius: 100px; font-size: 13px; font-weight: 700; }
.contact-popover-primary { background: var(--light); color: var(--ink); }
.contact-popover-primary:hover { background: #d7d1c4; }
.contact-popover-secondary { margin-top: 9px; border: 1px solid #ffffff70; color: white; }
.contact-popover-secondary:hover { background: #ffffff20; }
.contact-popover-primary span, .contact-popover-secondary span { font-size: 19px; font-weight: 500; }
body:has(.video-dialog[open]) .contact-dock { display: none; }

.video-dialog { max-width: min(90vw, 480px); max-height: 90vh; padding: 0; border: 0; background: transparent; color: white; overflow: visible; }
.video-dialog::backdrop { background: #0b0d0be8; backdrop-filter: blur(8px); }
.dialog-frame { padding: 10px; border: 1px solid #787b74; background: #191b19; }
.dialog-frame video { display: block; width: min(80vw, 390px); max-height: 75vh; background: black; }
.video-dialog.is-wide { max-width: min(94vw, 1000px); }
.video-dialog.is-wide .dialog-frame video { width: min(88vw, 940px); }
.dialog-title { padding: 12px 4px 3px; font: 650 17px var(--display); }
.dialog-close { position: absolute; right: -48px; top: 0; width: 38px; height: 38px; border: 0; border-radius: 50%; background: white; color: var(--ink); font-size: 25px; line-height: 1; }

@media (max-width: 1120px) {
  .shell { width: min(100% - 64px, 1400px); }
  .navigation { gap: 20px; }
  .hero-stage-inner { gap: 42px; }
  .hero h1 { font-size: clamp(57px, 6vw, 76px); }
  .hero-kicker { font-size: 10px; }
}
@media (max-width: 900px) {
  .hero-stage { padding-top: 82px; padding-bottom: 100px; }
  .hero-stage-inner { grid-template-columns: 1fr; gap: 62px; }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: clamp(60px, 8vw, 84px); }
  .hero-feature { max-width: 760px; }
  .result-stat strong { font-size: clamp(120px, 15vw, 170px); }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 40px, 600px); }
  .header-inner { min-height: 68px; }
  .wordmark { font-size: 14px; }
  .menu-button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
  .menu-button span { width: 17px; height: 2px; background: var(--ink); }
  .navigation { display: none; position: absolute; left: 0; right: 0; top: 67px; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 25px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .navigation.is-open { display: flex; }
  .navigation a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .header-contact { display: none; }
  .hero-stage { padding-top: 70px; padding-bottom: 90px; }
  .hero-stage-inner { gap: 55px; }
  .hero h1 { font-size: clamp(52px, 10.2vw, 76px); margin-top: 24px; }
  .hero-copy > p { margin-top: 25px; font-size: 15px; }
  .hero-actions { margin-top: 30px; }
  .hero-film-caption strong { font-size: 21px; }
  .section-space { padding-top: 88px; padding-bottom: 100px; }
  .section-intro { display: block; margin-bottom: 38px; }
  .section-intro h2, .about h2 { font-size: clamp(45px, 10vw, 66px); }
  .section-intro p { margin-top: 21px; font-size: 15px; }
  .work { padding-top: 70px; }
  .work-grid { grid-template-columns: 1fr; gap: 50px; }
  .project-visual { height: 510px; }
  .project-wide { grid-column: auto; }
  .project-detail h3 { font-size: 29px; }
  .work-tail { margin-top: 58px; font-size: 9px; }
  .result-layout { display: block; padding-top: 85px; padding-bottom: 95px; }
  .result-label h2 { font-size: 54px; }
  .result-label p { font-size: 15px; }
  .result-stat { margin-top: 56px; padding: 28px 0 0; border-left: 0; border-top: 1px solid #bbb5a9; }
  .result-stat strong { font-size: clamp(136px, 27vw, 205px); }
  .stat-prefix { font-size: 48px; }
  .stat-note { font-size: 10px; }
  .clients { padding-top: 90px; }
  .client-card { grid-template-columns: 28px minmax(0, 1fr) 25px; gap: 10px; padding: 22px 0; }
  .client-index { font-size: 9px; padding-top: 7px; }
  .client-info h3 { font-size: clamp(24px, 6.8vw, 38px); }
  .client-info p { font-size: 12px; line-height: 1.5; }
  .client-arrow { font-size: 25px; }
  .about { display: block; padding-top: 85px; }
  .about-body { padding-top: 38px; }
  .about-lead { font-size: 30px; }
  .about-body > p:not(.about-lead) { font-size: 15px; }
  .service-rows { margin-top: 40px; }
  .contact-inner { padding-top: 38px; padding-bottom: 48px; }
  .contact-top { font-size: 8px; }
  .contact h2 { margin: 100px 0 68px; font-size: clamp(55px, 10.8vw, 78px); }
  .contact-bottom { display: block; }
  .contact-bottom p { font-size: 15px; }
  .contact-main { margin-top: 25px; width: 100%; }
  .contact-other { gap: 18px; flex-wrap: wrap; font-size: 9px; }
  .footer-inner { min-height: 110px; flex-wrap: wrap; font-size: 8px; }
  .dialog-close { right: 0; top: -45px; }
}
@media (max-width: 480px) {
  .hero-stage { padding-top: 60px; padding-bottom: 75px; }
  .hero-stage-inner { gap: 48px; }
  .hero-kicker { font-size: 9px; line-height: 1.7; }
  .hero h1 { font-size: clamp(44px, 11.3vw, 54px); }
  .hero-actions { gap: 17px; }
  .hero-hire { min-height: 48px; gap: 20px; }
  .hero-film-play { left: 12px; bottom: 12px; padding: 8px 10px; font-size: 9px; }
  .hero-film-caption span { font-size: 8px; }
  .project-visual { height: 445px; }
  .result-label h2 { font-size: 49px; }
  .contact h2 { font-size: 55px; }
  .contact-dock { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .contact-popover { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ===== v3 tweaks: bigger small type, no grey heading halves, scroll reveal ===== */
.eyebrow, .hero-kicker { font-size: 13px; }
.hero-copy > p { font-size: 19px; max-width: 440px; }
.hero-hire, .hero-contact, .header-contact { font-size: 15px; }
.hero-film-caption span, .project-detail span { font-size: 12px; }
.project-detail p, .client-info p, .section-intro p { font-size: 17px; }
.work-tail { font-size: 12px; }
.work-tail a { font-size: 14px; }
.result-label p, .about-body > p:not(.about-lead) { font-size: 18px; }
.stat-note { font-size: 13px; }
.result-person { font-size: 13px; }
.result-person small { font-size: 12px; }
.client-index, .service-rows span { font-size: 13px; }
.service-rows strong { font-size: 24px; }
.service-rows p { font-size: 16px; }
.contact-top { font-size: 12px; }
.contact-bottom p { font-size: 19px; }
.contact-main { font-size: 14px; }
.contact-other { font-size: 13px; }
.footer-inner { font-size: 12px; }
.contact-dock-trigger { font-size: 14px; }
.contact-popover p { font-size: 15px; }
.section-intro h2 span { color: var(--ink); }
.contact h2 span { color: var(--light); }

.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .eyebrow, .hero-kicker { font-size: 11px; }
  .hero-copy > p { font-size: 17px; }
  .project-detail p, .client-info p, .section-intro p, .result-label p, .about-body > p:not(.about-lead), .contact-bottom p { font-size: 16px; }
  .work-tail, .contact-top, .contact-other, .footer-inner { font-size: 11px; }
}

/* ===== Brief (project questionnaire) ===== */
body:has(.brief[open]) .contact-dock { display: none; }
.brief { width: min(94vw, 640px); max-height: 92vh; padding: 0; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 120px #0006; overflow: auto; }
.brief::backdrop { background: #171918b8; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.brief[open] { animation: brief-in .45s cubic-bezier(.2,.8,.2,1); }
@keyframes brief-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.brief-form { padding: 30px 34px 30px; }
.brief-trap { position: absolute; left: -9999px; }
.brief-top { display: flex; align-items: center; gap: 16px; }
.brief-kicker { font: 700 12px/1 var(--display); letter-spacing: .14em; color: var(--muted); }
.brief-count { margin-left: auto; font: 600 14px/1 var(--display); color: var(--muted); }
.brief-count b { color: var(--ink); }
.brief-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 22px; line-height: 1; }
.brief-close:hover { background: var(--ink); color: var(--light); }
.brief-bar { height: 3px; margin: 20px 0 34px; border-radius: 3px; background: var(--line); overflow: hidden; }
.brief-bar span { display: block; height: 100%; width: 20%; background: var(--ink); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.brief-step { display: none; margin: 0; padding: 0; border: 0; min-width: 0; }
.brief-step.is-active { display: block; animation: step-in .45s cubic-bezier(.2,.8,.2,1); }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }
.brief-step.is-back { animation-name: step-back; }
@keyframes step-back { from { opacity: 0; transform: translateX(-18px); } }
.brief legend, .brief h2 { padding: 0; margin-bottom: 24px; font: 700 clamp(32px, 4.4vw, 44px)/1.05 var(--display); letter-spacing: -.055em; }
.brief-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt > span { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 76px; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--light); transition: border-color .2s, background .2s, color .2s, transform .2s; }
.opt strong { font: 650 18px/1.2 var(--display); letter-spacing: -.02em; }
.opt small { font-size: 14px; line-height: 1.35; color: var(--muted); }
.opt:hover > span { border-color: var(--ink); }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--light); }
.opt input:checked + span small { color: #c9cbc5; }
.opt input:focus-visible + span { outline: 3px solid #8c7450; outline-offset: 3px; }
.brief-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.brief-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-wide, .field:has(.seg) { grid-column: 1 / -1; }
.field > span { font: 600 14px/1 var(--display); }
.field em { font-style: normal; color: var(--muted); font-weight: 500; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--light); color: var(--ink); font: 400 17px/1.4 var(--body); transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input.is-invalid { border-color: #b4482f; }
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; background: var(--light); font-size: 15px; font-weight: 600; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--ink); color: var(--light); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid #8c7450; outline-offset: 2px; }
.brief-nav { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.brief-back { padding: 10px 0; border: 0; background: none; color: var(--muted); font-size: 15px; font-weight: 600; }
.brief-back:hover { color: var(--ink); }
.brief-back[hidden] { display: block; visibility: hidden; }
.brief-error { flex: 1; margin: 0; color: #b4482f; font-size: 14px; text-align: right; }
.brief-next { display: inline-flex; align-items: center; gap: 18px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 100px; background: var(--ink); color: var(--light); font: 700 15px/1 var(--display); white-space: nowrap; transition: background .2s, transform .2s; }
.brief-next:hover { background: #4e514b; transform: translateY(-1px); }
.brief-next:disabled { opacity: .6; cursor: wait; }
.brief-done, .brief-fail { padding: 6px 0 4px; }
.brief-done h2, .brief-fail h2 { margin: 16px 0 14px; }
.brief-done p, .brief-fail p { margin-bottom: 26px; max-width: 440px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.brief-back-link { display: inline-block; margin-left: 18px; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--ink); }
.brief.is-final .brief-nav, .brief.is-final .brief-bar, .brief.is-final .brief-count { display: none; }

@media (max-width: 560px) {
  .brief { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .brief-form { min-height: 100%; display: flex; flex-direction: column; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
  .brief-options, .brief-fields { grid-template-columns: 1fr; }
  .opt > span { min-height: 64px; }
  .brief-nav { margin-top: auto; }
  .brief-step.is-active { margin-bottom: 24px; }
  .brief-back-link { display: block; margin: 18px 0 0; width: max-content; }
}
