/* MOF — Makers of Form
   Brand: Black #111111 · Off White #F5F5F3 · Gray #808080 · White #FFFFFF
   Type: Pretendard (KO) / Inter (EN). Wide whitespace, grid, sharp contrast, large headlines, restrained motion. */

:root {
  --black: #111111;
  --off: #F5F5F3;
  --gray: #808080;
  --white: #FFFFFF;
  --line: #DCDCD8;
  --muted: #5E5E5E;          /* darker than brand gray for AA body text */
  --font: 'Inter', 'Pretendard Variable', Pretendard, 'Helvetica Neue', -apple-system, system-ui, sans-serif;
  --font-ko: 'Pretendard Variable', Pretendard, 'Inter', 'Helvetica Neue', -apple-system, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--off); color: var(--black);
  font-family: var(--font); font-size: 16px; line-height: 1.65; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="ko"] body { font-family: var(--font-ko); word-break: keep-all; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--black); color: var(--white); padding: 10px 14px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* type */
.eyebrow, .section-label { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--font); font-weight: 700; font-size: clamp(52px, 9.2vw, 132px); line-height: .94; letter-spacing: -.045em; margin-top: 22px; }
.display-2 { font-family: var(--font); font-weight: 700; font-size: clamp(40px, 6vw, 84px); line-height: .98; letter-spacing: -.04em; margin-top: 14px; }
.h2 { font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.03em; margin-top: 10px; }
.h3 { font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }
.num { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--gray); }
.tag { display: inline-block; font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 1px solid currentColor; padding: 3px 8px; border-radius: 99px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 99px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid var(--black); transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.btn-solid { background: var(--black); color: var(--white); }
.btn-solid:hover { background: #2a2a2a; }
.btn-line { background: transparent; color: var(--black); }
.btn-line:hover { background: var(--black); color: var(--white); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn-wide { width: 100%; }
.chip { min-height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 14px; transition: all .2s var(--ease); }
.chip:hover { border-color: var(--black); }
.chip[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 22px; line-height: 1; cursor: pointer; }
.icon-btn:hover { border-color: var(--black); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 245, 243, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.wordmark { font-family: var(--font); font-weight: 800; font-size: 26px; letter-spacing: -.05em; text-decoration: none; }
.wordmark-lg { font-size: 56px; line-height: 1; margin-bottom: 10px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 32px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.lang button { border: 0; background: none; padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: .06em; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--black); color: var(--white); }

/* hero */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; min-height: calc(100svh - 68px); padding-block: clamp(48px, 8vw, 96px); }
.hero-sub { font-family: var(--font); font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.02em; margin-top: 22px; }
.hero .lead { max-width: 34em; margin-top: 18px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-mark { margin: 0; }
.hero-stage { aspect-ratio: 1; background: var(--white); border-radius: 4px; display: grid; place-items: center; overflow: hidden; }
.hero-stage img { width: 78%; mix-blend-mode: multiply; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.hero-stage img.fade { opacity: 0; transform: scale(.97); }
.hero-mark figcaption { display: flex; gap: 14px; align-items: center; margin-top: 14px; font-size: 13px; }
.hero-mark figcaption > span:first-child { font-weight: 700; letter-spacing: .14em; }
.hero-mark .tag { margin-left: auto; color: var(--muted); }

/* principles */
.principles { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 32px; }
.principle-grid li { padding: 28px 28px 28px 0; border-top: 1px solid var(--black); }
.principle-grid li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.principle-grid h3 { font-size: 24px; letter-spacing: -.025em; margin: 18px 0 10px; }
.principle-grid p { color: var(--muted); font-size: 15px; }

/* section heads */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 36px; }
.section-note { color: var(--muted); max-width: 38em; justify-self: end; font-size: 15px; }

/* work */
.work { padding-block: clamp(56px, 8vw, 112px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.concept-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.concept-grid li { background: var(--off); }
.tile { width: 100%; border: 0; background: var(--off); padding: 22px 12px 18px; cursor: pointer; display: flex; flex-direction: column; align-items: center; transition: background .3s var(--ease); }
.tile:hover { background: var(--white); }
.tile-img { width: 100%; aspect-ratio: 230 / 148; display: grid; place-items: center; }
.tile-img img { width: 82%; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.tile:hover .tile-img img { transform: scale(1.05); }
.tile-name { font-family: var(--font); font-weight: 700; font-size: 13px; letter-spacing: .2em; margin-top: 10px; }
.tile-sector { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
html[lang="ko"] .tile-sector { letter-spacing: .02em; }

/* about */
.about { background: var(--black); color: var(--off); padding-block: clamp(72px, 10vw, 140px); }
.about .section-label, .about .muted { color: #A6A6A6; }
.about-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: 48px; }
.about-cols p:not(.lead) { color: #C9C9C6; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 24px; margin-top: 64px; }
.people li { border-top: 1px solid #3A3A3A; padding-top: 20px; }
.person-name { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.person-name span { display: block; font-family: var(--font); font-weight: 500; font-size: 15px; color: #A6A6A6; letter-spacing: 0; margin-top: 2px; }

/* services */
.services { padding-block: clamp(72px, 10vw, 140px); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--black); }
.svc-grid li { padding: 28px 24px 32px 0; position: relative; }
.svc-grid li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.svc-grid h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 8px; }
.svc-grid p { color: var(--muted); font-size: 15px; }
.svc-grid .soon h3 { color: var(--gray); }
.svc-grid .soon .tag { margin-top: 14px; color: var(--gray); }
.pk-title { margin-top: clamp(56px, 7vw, 96px); margin-bottom: 20px; }
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pk { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; }
.pk header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.pk-name { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.pk-price { font-family: var(--font); font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.pk-price small { font-size: 15px; font-weight: 500; margin-left: 2px; }
.pk dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pk dl div:last-child { border-bottom: 0; }
.pk dt { color: var(--muted); }
.pk dd { text-align: right; font-weight: 500; }
.pk-dark { background: var(--black); color: var(--off); border-color: var(--black); }
.pk-dark header, .pk-dark dl div { border-color: #333; }
.pk-dark dt { color: #A6A6A6; }
.pk-custom { background: transparent; border-style: dashed; border-color: #BDBDB8; }
.pk-custom .pk-price { font-size: 24px; }
.pk-custom p { color: var(--muted); font-size: 15px; margin: 14px 0 24px; }
.pk-custom .btn { margin-top: auto; align-self: flex-start; }
.fine { font-size: 13px; color: var(--muted); margin-top: 18px; max-width: 60em; }

/* process */
.process { background: var(--white); padding-block: clamp(72px, 10vw, 140px); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 48px; counter-reset: s; }
.steps li { padding: 24px 20px 0 0; border-top: 1px solid var(--black); position: relative; }
.steps li::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--black); }
.steps h3 { font-size: 24px; letter-spacing: -.025em; margin: 14px 0 6px; }
.steps p { color: var(--muted); font-size: 15px; }

/* faq */
.faq { padding-block: clamp(72px, 10vw, 140px); }
.faq-list { margin-top: 32px; border-top: 1px solid var(--black); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; }

/* contact */
.contact { background: var(--black); color: var(--off); padding-block: clamp(72px, 10vw, 140px); }
.contact .section-label, .contact .muted { color: #A6A6A6; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact .lead { margin-top: 20px; color: #C9C9C6; }
.ai-brief { margin-top: 40px; padding: 24px; border: 1px solid #333; border-radius: 6px; background: #181818; }
.ai-kicker { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ai-brief .muted { font-size: 14px; margin-bottom: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #F08A3C; display: inline-block; box-shadow: 0 0 0 3px rgba(240, 138, 60, .18); }
.ai-brief textarea { width: 100%; background: #0E0E0E; border: 1px solid #3A3A3A; border-radius: 4px; padding: 12px 14px; color: var(--off); resize: vertical; margin-bottom: 12px; }
.ai-brief textarea::placeholder { color: #7A7A7A; }
.ai-brief .btn-solid { background: var(--off); color: var(--black); border-color: var(--off); }
.ai-brief .btn-solid:hover { background: var(--white); }
.ai-brief .btn-line { color: var(--off); border-color: var(--off); }
.ai-brief .btn-line:hover { background: var(--off); color: var(--black); }
.ai-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid #333; font-size: 14px; color: #D8D8D4; }
.ai-result p { margin-top: 10px; }
.ai-result ul { list-style: disc; padding-left: 18px; margin-top: 4px; }
.brief-text { white-space: pre-wrap; font-family: inherit; margin: 0; background: #0E0E0E; border: 1px solid #2A2A2A; border-radius: 4px; padding: 14px; color: var(--off); }
.ai-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.via { font-size: 11px; letter-spacing: .04em; color: var(--gray); }

.form { display: grid; gap: 18px; background: var(--off); color: var(--black); padding: clamp(22px, 3vw, 40px); border-radius: 6px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid #CFCFCA; border-radius: 4px; padding: 10px 12px; background: var(--white); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--black); outline-offset: 0; border-color: var(--black); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--black); flex: none; }
.form-status { font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: #1F6B3A; }
.form-status.err { color: #B3261E; }

/* footer */
.site-footer { padding-block: 56px 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.footer-meta { display: grid; gap: 10px; font-size: 14px; max-width: 560px; justify-items: end; text-align: right; }
.privacy summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.privacy p { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: left; }

/* concept dialog */
.concept-dialog { border: 0; padding: 0; border-radius: 8px; width: min(820px, calc(100vw - 32px)); background: var(--off); color: var(--black); display: none; }
.concept-dialog[open] { display: grid; grid-template-columns: 1.1fr 1fr; }
.concept-dialog::backdrop { background: rgba(17, 17, 17, .55); backdrop-filter: blur(4px); }
.concept-dialog { position: fixed; }
.concept-dialog > form { position: absolute; top: 12px; right: 12px; z-index: 1; margin: 0; }
.cd-stage { background: var(--white); display: grid; place-items: center; padding: 32px; }
.cd-stage img { width: 100%; mix-blend-mode: multiply; }
.cd-body { padding: 40px 32px 32px; display: flex; flex-direction: column; gap: 10px; }
.cd-body .tag { align-self: flex-start; color: var(--muted); }
.cd-body .h2 { letter-spacing: .06em; }
.cd-nav { display: flex; gap: 8px; margin-top: auto; padding-top: 20px; }
.cd-nav .btn { min-width: 56px; padding: 0 18px; }

/* Ask MOF */
.ask-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 99px; border: 0; background: var(--black); color: var(--white); font-weight: 600; cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 10px 30px rgba(0, 0, 0, .18); }
.ask-fab:hover { background: #2a2a2a; }
.ask-panel { position: fixed; right: 20px; bottom: 84px; z-index: 61; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100svh - 120px)); background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .18); display: flex; flex-direction: column; overflow: hidden; }
.ask-panel[hidden] { display: none; }
.ask-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.ask-title { font-weight: 800; letter-spacing: -.02em; font-size: 17px; }
.ask-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--off); }
.msg { max-width: 88%; font-size: 14px; line-height: 1.55; }
.msg p { padding: 10px 14px; border-radius: 14px; }
.msg-assistant { align-self: flex-start; }
.msg-assistant p { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-user { align-self: flex-end; }
.msg-user p { background: var(--black); color: var(--white); border-bottom-right-radius: 4px; }
.msg .via { display: block; margin: 4px 0 0 6px; }
.msg.pending p { color: var(--muted); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; background: var(--off); }
.ask-chips:empty { display: none; }
.ask-chips .chip { background: var(--white); font-size: 13px; min-height: 34px; }
.ask-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ask-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 99px; padding: 0 16px; min-height: 44px; }
.ask-form .btn { min-height: 44px; padding: 0 18px; }
.ask-foot { padding: 0 16px 12px; font-size: 11px; }
body.ai-off .ask-fab, body.ai-off .ask-panel, body.ai-off .ai-brief { display: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1080px) {
  .concept-grid { grid-template-columns: repeat(4, 1fr); }
  .packages { grid-template-columns: 1fr 1fr; }
  .pk-custom { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .svc-grid, .principle-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid li:nth-child(3), .principle-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .svc-grid li:nth-child(n+3), .principle-grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; border: 1px solid var(--line); background: none; border-radius: 99px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; background: var(--off); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  body.nav-open .nav ul { display: flex; }
  .nav ul a { display: block; padding: 14px 0; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header-inner { gap: 12px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-mark { max-width: 420px; }
  .section-head { grid-template-columns: 1fr; }
  .section-note { justify-self: start; }
  .concept-grid { grid-template-columns: repeat(3, 1fr); }
  .about-cols, .contact-inner { grid-template-columns: 1fr; }
  .concept-dialog[open] { grid-template-columns: 1fr; }
  .cd-body { padding: 24px; }
  .footer-meta { justify-items: start; text-align: left; }
}
@media (max-width: 560px) {
  .concept-grid { grid-template-columns: repeat(2, 1fr); }
  .packages, .svc-grid, .principle-grid, .steps, .people, .field-row { grid-template-columns: 1fr; }
  .svc-grid li, .principle-grid li { padding-left: 0 !important; border-left: 0 !important; }
  .svc-grid li + li, .principle-grid li + li { border-top: 1px solid var(--line); }
  .tile { padding: 16px 8px 14px; }
  .tile-name { font-size: 12px; letter-spacing: .14em; }
  .ask-fab { right: 16px; bottom: 16px; }
  .ask-panel { right: 16px; bottom: 80px; }
  .cta-row .btn { flex: 1; }
}

/* ================================================================ motion layer */
/* hero particles */
.hero-stage { position: relative; cursor: default; }
.hero-stage canvas { position: absolute; inset: 0; display: none; }
.hero-stage.particles-on { cursor: crosshair; }
.hero-stage.particles-on canvas { display: block; }
.hero-stage.particles-on img { visibility: hidden; }
.hero-hint { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: .02em; opacity: 0; transition: opacity .4s; pointer-events: none; }
.hero-stage.particles-on .hero-hint { opacity: .85; }
.hero-stage:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }

/* headline letters */
.display .w { display: inline-block; white-space: nowrap; }
.display .ch { display: inline-block; font-weight: 700; will-change: font-weight; }

/* process construction */
.process-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.process-hint { margin-top: 14px; font-size: 15px; max-width: 32em; }
.process .steps { grid-template-columns: 1fr; margin-top: 32px; }
.process .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); transition: opacity .35s var(--ease); }
.process .steps li::before { display: none; }
.process .steps li .num { grid-row: span 2; }
.process .steps h3 { margin: 0; font-size: 22px; transition: transform .35s var(--ease); }
.process .steps p { font-size: 14px; }
html.gsap-on .process .steps li { opacity: .35; }
html.gsap-on .process .steps li.active { opacity: 1; border-top-color: var(--black); }
html.gsap-on .process .steps li.active h3 { transform: translateX(6px); }
.process-stage { background: var(--off); border: 1px solid var(--line); border-radius: 6px; padding: clamp(16px, 3vw, 32px); position: relative; }
.process-stage svg { width: 100%; height: auto; display: block; overflow: visible; }
.stage-caption { position: absolute; left: 20px; top: 16px; font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.stage-caption #stageNum { color: var(--gray); margin-right: 6px; }
.p-grid path { fill: none; stroke: #CFCFCA; stroke-width: 1; }
.p-words text { font-family: var(--font); font-size: 17px; font-weight: 500; fill: var(--black); text-anchor: middle; }
.p-build .draw { fill: none; stroke: var(--gray); stroke-width: 1.2; }
.p-mark { fill: var(--black); stroke: var(--black); stroke-width: 1.5; }
.p-anchors rect { fill: var(--white); stroke: #2F6FED; stroke-width: 1.5; }
.p-anchors path { fill: none; stroke: #2F6FED; stroke-width: 1.2; }
.p-sizes use { fill: var(--black); }
.p-sizes use.inv { fill: var(--off); }
.p-sizes text { font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: .08em; fill: var(--muted); text-anchor: middle; }
/* static (no-JS / reduced-motion) state: show the finished mark */
html:not(.gsap-on) .p-words, html:not(.gsap-on) .p-anchors, html:not(.gsap-on) .p-sizes { display: none; }
html:not(.gsap-on) .p-build { opacity: .18; }
html:not(.gsap-on) .p-grid { opacity: .35; }
html:not(.gsap-on) .stage-caption { display: none; }

/* work tiles: tilt + construction-grid spotlight */
.tile { position: relative; overflow: hidden; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; }
.tile::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,0) 0, rgba(245,245,243,.92) 140px),
    linear-gradient(to right, rgba(17,17,17,.07) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(to bottom, rgba(17,17,17,.07) 1px, transparent 1px) 0 0 / 16px 16px;
}
.tile::after { content: ''; position: absolute; left: 50%; top: 40%; width: 58%; aspect-ratio: 1; translate: -50% -50%; border: 1px dashed rgba(17,17,17,.18); border-radius: 50%; opacity: 0; transition: opacity .35s var(--ease), scale .5s var(--ease); scale: .85; pointer-events: none; }
.tile:hover::before, .tile:focus-visible::before { opacity: 1; }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; scale: 1; }
.tile-img, .tile-name, .tile-sector { position: relative; z-index: 1; }
.tile-img img { transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out; }
.tile:hover .tile-img img { transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.08); }

/* Form Lab in the concept dialog */
.cd-stage { position: relative; --mark-w: 240px; min-height: 320px; transition: background .3s var(--ease); }
.cd-stage img { width: var(--mark-w); max-width: 100%; transition: filter .3s var(--ease); }
.cd-stage[data-mode="mono"] img { filter: grayscale(1) brightness(0); }
.cd-stage[data-mode="inverse"] { background: var(--black); }
.cd-stage[data-mode="inverse"] img { filter: grayscale(1) brightness(0) invert(1); mix-blend-mode: normal; }
.cd-stage.show-grid::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(47,111,237,.35) 1px, transparent 1px) center / 24px 24px,
    linear-gradient(to bottom, rgba(47,111,237,.35) 1px, transparent 1px) center / 24px 24px; }
.cd-stage.show-grid::after { content: ''; position: absolute; left: 50%; top: 50%; width: calc(var(--mark-w) * .62); aspect-ratio: 1; translate: -50% -50%; border: 1px solid rgba(47,111,237,.7); border-radius: 50%; pointer-events: none; }
.cd-lab { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.lab-title { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.lab-size { display: grid; grid-template-columns: auto 1fr 52px; align-items: center; gap: 12px; font-size: 13px; }
.lab-size input { accent-color: var(--black); width: 100%; }
.lab-size output { font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); }
.lab-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.lab-modes .chip { min-height: 34px; font-size: 13px; }

@media (max-width: 860px) {
  .process-inner { grid-template-columns: 1fr; }
}
.process-stage svg { overflow: hidden; }
html.gsap-on .process .steps li p { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s var(--ease); }
html.gsap-on .process .steps li.active p { max-height: 4em; opacity: 1; }
html.gsap-on .process .steps li { padding: 11px 0; }

/* ================================================================ UX fixes */
/* anchored sections never hide under the sticky header */
section[id] { scroll-margin-top: 72px; }

/* hero pause / play (auto-advancing content needs a stop control) */
.hero-mark figcaption .tag { margin-left: auto; }
.hero-pause { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; cursor: pointer; padding: 0; }
.hero-pause:hover { border-color: var(--black); }
.hero-pause svg { width: 12px; height: 12px; fill: var(--black); }
.hero-pause .i-play { display: none; }
.hero-pause.is-paused .i-pause { display: none; }
.hero-pause.is-paused .i-play { display: inline; }

/* Ask MOF: icon only on phones, and leave room at the page end so it never sits on the footer */
.fab-icon { display: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (max-width: 560px) {
  .ask-fab { width: 52px; height: 52px; padding: 0; justify-content: center; gap: 0; }
  .ask-fab .fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ask-fab .fab-icon { display: block; }
  .ask-fab .dot { position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; }
  .site-footer { padding-bottom: 96px; }
}

/* concept pop-up always fits the screen and scrolls inside */
.concept-dialog[open] { max-height: calc(100svh - 24px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 860px) { .cd-stage { min-height: 220px; padding: 20px; } }

/* process: dim/collapse only where the list and the drawing sit side by side */
@media (max-width: 860px) {
  html.gsap-on .process .steps li { opacity: 1; padding: 14px 0; }
  html.gsap-on .process .steps li p { max-height: none; opacity: 1; }
  html.gsap-on .process .steps li.active h3 { transform: none; }
}

/* direct contact + social */
.direct { display: grid; gap: 10px; margin-top: 28px; }
.direct a { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 14px 16px; border: 1px solid #333; border-radius: 6px; transition: border-color .25s var(--ease), background .25s var(--ease); }
.direct a:hover { border-color: var(--off); background: #181818; }
.direct span { display: grid; font-weight: 600; font-size: 15px; word-break: break-all; }
.direct small { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #A6A6A6; }
.direct svg, .social svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.direct svg .fill, .social svg .fill { fill: currentColor; stroke: none; }
.social { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: 13px; font-weight: 500; }
.social a:hover { border-color: var(--black); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .social { justify-content: flex-start; } }
@media (max-width: 860px) { .site-footer { padding-bottom: 104px; } }
.notfound { min-height: 100svh; display: grid; place-content: center; gap: 16px; }
/* Turnstile bot check */
.ts-slot { min-height: 0; }
.ts-slot:not(:empty) { margin-top: 4px; }
