/* YAVI Studio homepage: "Type your name". Palette/fonts from the live site (style.css). Plain CSS, no build.
   Fog wipe image is lazy-loaded by assets/js/type-your-name-fog.js. Inquiry overlay styles stay in inquiry.css. */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin-subset.woff2") format("woff2"); }
/* Accented Latin-1 letters (e.g. a typed "Café") fall back to the full live Manrope; only downloaded if such a glyph is shown. */
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope.woff2") format("woff2"); unicode-range: U+00C0-00FF, U+0102, U+0131, U+0152-0153, U+20AC; }
/* Used by inquiry.css (form inputs); only downloaded when the inquiry overlay opens. */
@font-face { font-family: "DM Sans"; font-weight: 400 700; font-display: swap; src: url("../fonts/dm-sans.woff2") format("woff2"); }
:root { --ink: #171714; --paper: #f2efe8; --coral: #ff5f46; --lime: #d8ff4f; --mute: #5f5e59; --coral-text: #c23a22;
  --display: "Manrope", system-ui, sans-serif; --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --serif: Georgia, "Times New Roman", serif;
  --line: rgba(23, 23, 20, 0.18);
  --pad: clamp(16px, 4vw, 56px); --grain: url("../images/type-your-name/grain-512.webp"); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; color: var(--ink); font: 400 17px/1.5 var(--body); background: var(--paper) var(--grain) repeat; background-size: 512px; }
@supports (background-image: image-set(url("a.avif") type("image/avif"))) { :root { --grain: image-set(url("../images/type-your-name/grain-512.avif") type("image/avif"), url("../images/type-your-name/grain-512.webp") type("image/webp")); } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--coral-text); outline-offset: 3px; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; margin: 0 0 10px; }
.btn { display: inline-flex; gap: 8px; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; border: 0; font-size: 16px; font-family: inherit; line-height: 1.5; cursor: pointer; }
.btn.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.lime { background: var(--lime); color: var(--ink); }
.ghost { font-weight: 700; text-underline-offset: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin: 24px 0 0; }

/* --- top bar --- */
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; padding: 10px var(--pad); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid #17171418; }
.logo { display: flex; gap: 8px; align-items: center; text-decoration: none; font: 800 15px var(--display); }
.logo small { font-weight: 500; letter-spacing: .12em; font-size: 10px; }
.bar-links { display: none; gap: 22px; margin-left: auto; font-size: 15px; }
.bar-links a { text-decoration: none; font-weight: 600; } .bar-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bar-cta { margin-left: auto; padding: 9px 16px; font-size: 14px; }
@media (min-width: 760px) { .bar-links { display: flex; } .bar-cta { margin-left: 22px; } }

/* --- stage --- */
.tyn { padding: 28px var(--pad) 48px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.intro h1 { font-size: clamp(40px, 7vw, 92px); font-weight: 800; }
.hint { margin: 8px 0 0; color: var(--mute); }
.looks { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }

/* the visitor's site: one panel, three looks */
.site { --fs: clamp(44px, 10.5vw, 136px); position: relative; overflow: hidden; isolation: isolate; min-height: clamp(340px, 52vh, 600px); border: 3px solid var(--ink); border-radius: 18px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(20px, 4vw, 56px); padding-top: 72px; transition: background-color .01s; }
.s-nav { position: absolute; z-index: 2; top: 0; left: 0; right: 0; display: flex; gap: 18px; align-items: center; padding: 18px clamp(20px, 4vw, 56px); font-size: 14px; }
.s-mark { width: 22px; height: 22px; border-radius: 50%; background: currentColor; margin-right: auto; }
.s-tag { position: relative; z-index: 2; margin: 0; }
.s-look { display: inline-block; font: 700 12px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border: 1.5px solid currentColor; border-radius: 999px; }
.s-name { position: relative; z-index: 2; width: 100%; min-width: 0; margin: 0; padding: 0 0 4px; background: transparent; border: 0; border-bottom: 3px dashed currentColor; border-radius: 0; color: inherit; caret-color: var(--coral); display: block; resize: none; overflow: hidden; font-family: inherit; text-align: inherit; overflow-wrap: anywhere; box-sizing: border-box;
  font-size: calc(var(--fs) * var(--k, 1)); line-height: 1.05; min-height: calc(1.05em + 7px); outline: none; }
.s-name::placeholder { color: inherit; opacity: .38; }
.s-name:focus-visible { border-bottom-style: solid; }
.site.has-name .s-name { border-bottom: 2px dotted color-mix(in srgb, currentColor 35%, transparent); }
.site.has-name .s-name:not(:focus) { border-bottom-color: transparent; }
.s-line { position: relative; z-index: 2; margin: 0; max-width: 40ch; font-size: clamp(16px, 2vw, 22px); }
.s-line span { display: none; }
.s-btn { position: relative; z-index: 2; align-self: flex-start; padding: 12px 20px; font-weight: 700; }
.s-deco { position: absolute; z-index: 1; pointer-events: none; }

/* LOUD */
.look-loud { background: var(--lime); color: var(--ink); }
.look-loud .s-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -.045em; }
.look-loud .l-loud { display: inline; } .look-loud .s-line { font-family: var(--display); font-weight: 700; }
.look-loud .s-nav { font-family: var(--display); font-weight: 800; text-transform: uppercase; }
.look-loud .s-btn { background: var(--coral); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 5px 5px 0 var(--ink); font-family: var(--display); text-transform: uppercase; }
.look-loud .d1 { width: 34vmin; height: 34vmin; right: -8vmin; bottom: -10vmin; border-radius: 50%; background: var(--coral); border: 3px solid var(--ink); }
.look-loud .d2 { width: 14vmin; height: 14vmin; right: 22vmin; top: 64px; background: var(--ink); transform: rotate(14deg); border-radius: 10px; }

/* CALM */
.look-calm { background: #fbfaf6; color: #34332f; border-color: #c9c5ba; }
.look-calm .s-name { font-family: var(--display); font-weight: 300; letter-spacing: -.035em; text-transform: none; }
.look-calm .l-calm { display: inline; } .look-calm .s-line { color: #6b6a64; }
.look-calm .s-mark { background: none; border: 1.5px solid currentColor; }
.look-calm .s-btn { padding: 0 0 2px; border-bottom: 1.5px solid currentColor; font-weight: 500; }
.look-calm .d1 { width: 46vmin; height: 46vmin; right: -6vmin; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, #d8ff4f55, #d8ff4f00 70%); }
.look-calm .d2 { left: 0; right: 0; bottom: 18%; height: 1px; background: #34332f22; }

/* LUXE */
.look-luxe { background: var(--ink); color: var(--paper); text-align: center; align-items: center; }
.look-luxe .s-name { font-family: var(--serif); font-weight: 400; text-transform: uppercase; letter-spacing: .16em; font-size: calc(var(--fs) * .62 * var(--k, 1)); text-align: center; }
.look-luxe .l-luxe { display: inline; } .look-luxe .s-line { font-family: var(--serif); font-style: italic; color: #f2efe8b0; }
.look-luxe .s-nav { font-family: var(--serif); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; justify-content: center; }
.look-luxe .s-mark { display: none; }
.look-luxe .s-btn { align-self: center; border: 1px solid var(--lime); color: var(--lime); letter-spacing: .18em; text-transform: uppercase; font: 400 13px var(--body); }
.look-luxe .d1 { left: 50%; top: 58px; width: 1px; height: 40px; background: var(--lime); }
.look-luxe .d2 { inset: 12px; border: 1px solid #f2efe833; border-radius: 10px; }

/* fog wipe (image only exists once modules/fog.js sets --fog) */
.fog { position: absolute; z-index: 5; inset: -6% auto -6% 0; width: 220%; pointer-events: none; transform: translateX(-100%); visibility: hidden;
  background: var(--fog, none) center / cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.site.fading { animation: blink .5s ease; }
@keyframes blink { 50% { opacity: .15; } }

/* controls */
.controls { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.switch { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; padding: 3px; gap: 3px; background: #fff; }
.switch button, .replay { font: 700 15px var(--display); border: 0; background: none; color: var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.replay { border: 2px solid var(--ink); }
.no-js .controls { display: none; }

/* ending */
.end { border-top: 3px solid var(--ink); padding-top: 22px; }
.end[hidden] { display: none; }
.end-line { margin: 0; font: 800 clamp(30px, 5vw, 64px)/1.05 var(--display); letter-spacing: -.03em; max-width: 20ch; }
.end.show { animation: rise .6s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* reduced motion: the three finished looks side by side */
.rm .looks { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .rm .looks { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rm .site { --fs: clamp(30px, 3.6vw, 52px); min-height: 380px; } .rm .site .d1, .rm .site .d2 { display: none; } }
.rm .controls .switch, .rm .fog { display: none; }
.rm .site.clone .s-name { border-bottom-color: transparent; overflow-wrap: anywhere; }
.rm .replay { display: none; }

/* --- real YAVI sections --- */
section.yhero, section.work, section.services, section.process, section.faq, section.contact { padding: clamp(56px, 9vw, 120px) var(--pad); }
.big { font-size: clamp(54px, 12vw, 150px); font-weight: 800; max-width: 11ch; }
.lede { max-width: 38ch; font-size: clamp(17px, 2vw, 21px); margin: 20px 0 0; }
.head { display: grid; gap: 8px; margin-bottom: 32px; } .head h2 { font-size: clamp(40px, 8vw, 96px); } .head p { margin: 0; color: var(--mute); }
.projects, .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 760px) { .steps, .svc { grid-template-columns: repeat(3, 1fr); } .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .projects { grid-template-columns: repeat(4, 1fr); } }
.project img { width: 100%; border-radius: 14px; aspect-ratio: 3 / 2; object-fit: cover; background: #e4e0d6; border: 3px solid var(--ink); }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 12px; }
.idx { font: 700 13px var(--display); color: var(--coral-text); }
.meta h3 { font-size: 24px; } .meta p, .meta a { grid-column: 2; margin: 0; } .meta a { font-weight: 700; }
.status { grid-column: 2; justify-self: start; font: 700 11px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px; border: 1.5px solid currentColor; border-radius: 999px; color: var(--mute); }
.steps h3 { font-size: 32px; margin: 6px 0; } .steps p { margin: 0; }
/* services (live copy) */
.services { background: var(--ink); color: var(--paper); } .services .head p { color: #f2efe8b8; }
.svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.svc b { display: block; font: 700 13px var(--display); color: var(--lime); } .svc strong { display: block; font: 800 32px/1.05 var(--display); letter-spacing: -.03em; margin: 6px 0; }
/* FAQ (live copy; mirrors the FAQPage JSON-LD) */
.faq-list { margin: 0; display: grid; gap: 22px; max-width: 60rem; }
.faq-list > div { border-top: 2px solid var(--ink); padding-top: 14px; }
.faq-list dt { font: 800 clamp(20px, 2.4vw, 28px)/1.15 var(--display); letter-spacing: -.02em; } .faq-list dd { margin: 8px 0 0; max-width: 60ch; }
.faq-list dd a { font-weight: 700; text-underline-offset: 4px; }
.contact { background: var(--lime); } .contact h2 { font-size: clamp(48px, 11vw, 140px); }
.foot { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 24px var(--pad); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
/* reduced-motion labels (copy keys ui.rm_h2 / ui.look_n) */
.rm-h2, .s-n { display: none; }
.rm .rm-h2 { display: block; font-size: clamp(26px, 3.4vw, 40px); margin: 6px 0 0; }
.rm .s-n { display: inline-block; font: 700 12px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
.look-luxe.long .s-name { letter-spacing: .08em; }
.rm .site.clone .s-name { white-space: normal; }
