/* DJV Creations: "the dark room". One charcoal field, lit exhibits, Work Sans, one sage action. */
:root {
  --bg: #1c1c1c;
  --surface: #262626;
  --ink: #f1f1ef;
  --muted: #b4b5b0;
  --accent: #8fa68e;
  --accent-ink: #1c1c1c;
  --field-1: #c8c5ba;
  --field-1-ink: #1c1c1c;
  --paper: #f1f1ef;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-hero: clamp(2.5rem, 1.4rem + 4.2vw, 5.25rem);

  --margin: clamp(20px, 3.4vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; left: var(--margin); top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 10; }
.skip-link:focus { top: 12px; }

[hidden] { display: none !important; }

.btn {
  font: inherit; font-size: var(--step-body); border: 0; cursor: pointer;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px;
  background: var(--accent); color: var(--accent-ink); border-radius: var(--radius);
  font-weight: 500; text-decoration: none; letter-spacing: 0.01em;
  transition: background-color 200ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: #a3b8a2; }
.btn:active { transform: scale(0.97); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.hero__words { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--margin); padding-top: 120px; }
.hero__mark { position: absolute; top: var(--margin); left: var(--margin); font-weight: 500; font-size: var(--step-body); letter-spacing: -0.01em; text-decoration: none; }
.hero__link { position: absolute; top: var(--margin); right: var(--margin); font-size: var(--step-body); color: var(--muted); }
.hero__link:hover { color: var(--ink); }
.hero__copy { display: grid; gap: 22px; justify-items: start; max-width: 40rem; }
.hero h1 { font-size: var(--step-hero); font-weight: 300; line-height: 1.02; letter-spacing: -0.035em; }
.hero__lead { max-width: 44ch; color: var(--muted); font-size: var(--step-body); }

.mask__line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.mask__line > span { display: block; }
.js .mask__line > span { transform: translateY(105%); }
.js.ready .mask__line > span { transform: none; transition: transform 900ms var(--ease); }
.js.ready .mask__line:nth-child(2) > span { transition-delay: 110ms; }
.js .fade-up { opacity: 0; transform: translateY(12px); }
.js.ready .fade-up { opacity: 1; transform: none; transition: opacity 700ms var(--ease) 650ms, transform 700ms var(--ease) 650ms; }

.hero__stage { background: var(--surface); display: grid; align-content: center; justify-items: center; gap: 18px; padding: 96px var(--margin) var(--margin); }

/* the builder: a lit page inside a dark browser frame */
.build { margin: 0; width: min(100%, 560px); background: #121212; border-radius: 10px; overflow: hidden; }
.build__bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #121212; }
.build__bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; }
.build__url { margin-left: 10px; font-size: 0.8125rem; color: var(--muted); min-height: 1em; }
.build__url::after { content: ""; display: inline-block; width: 1px; height: 0.95em; margin-left: 2px; vertical-align: -0.12em; background: var(--muted); }
.build__page { position: relative; aspect-ratio: 16 / 11; background: var(--paper); color: var(--bg); overflow: hidden; }
.build__grid { position: absolute; inset: 0 4%; display: grid; grid-template-columns: repeat(12, 1fr); gap: 2%; }
.build__grid i { background: rgba(28, 28, 28, 0.06); transform-origin: top; transform: scaleY(var(--g, 0)); }
.build__nav { position: absolute; left: 4%; right: 4%; top: 5%; display: flex; align-items: center; gap: 4%; }
.build__nav b { font-weight: 500; font-size: clamp(0.6875rem, 1.6vw, 0.875rem); margin-right: auto; white-space: nowrap; }
.build__nav span { width: 8%; height: 5px; border-radius: 3px; background: rgba(28, 28, 28, 0.22); }
.build__head { position: absolute; left: 4%; top: 15%; width: 50%; font-weight: 300; font-size: clamp(1.25rem, 3.6vw, 2.25rem); line-height: 1.02; letter-spacing: -0.035em; overflow: hidden; }
.build__head .w { display: inline-block; white-space: nowrap; }
.build__head .w span { display: inline-block; will-change: transform; }
.build__sub { position: absolute; left: 4%; top: 52%; width: 40%; display: grid; gap: 7px; }
.build__sub i { height: 5px; border-radius: 3px; background: rgba(28, 28, 28, 0.2); transform-origin: left; transform: scaleX(var(--w, 0)); }
.build__sub i + i { width: 70%; }
.build__photo { position: absolute; right: 4%; top: 15%; width: 40%; height: 46%; overflow: hidden; border-radius: 2px; background: #d9d7d0; }
.build__photo img { width: 100%; height: 100%; object-fit: cover; }
.build__rows { position: absolute; left: 4%; right: 4%; bottom: 7%; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2%; }
.build__rows li { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid rgba(28, 28, 28, 0.18); /* taste-skill-ignore: inside the data-ui page fragment */ font-size: clamp(0.6875rem, 1.3vw, 0.8125rem); line-height: 1.2; }
.build__rows i { width: 40%; height: 5px; border-radius: 3px; background: rgba(28, 28, 28, 0.2); }
.build__btn { position: absolute; left: 4%; top: 64%; padding: 0.55em 1.1em; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); font-size: clamp(0.6875rem, 1.3vw, 0.8125rem); font-weight: 500; white-space: nowrap; transform-origin: left center; }
.build__cursor { position: absolute; left: 14%; top: 68%; width: 22px; height: 22px; }
.build__sheen { position: absolute; inset: -20% auto -20% 0; width: 35%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: translateX(-120%); pointer-events: none; } /* taste-skill-ignore: the light sweep inside the data-ui fragment */
.build__film { display: block; width: 100%; }

.build__readout { display: flex; align-items: center; gap: 12px; width: min(100%, 560px); font-size: var(--step-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.meter { flex: 0 0 120px; height: 2px; background: #3a3a3a; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }

.try { width: min(100%, 560px); display: grid; gap: 8px; }
.try label { font-size: var(--step-body); }
.try__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.try input, .try select {
  font: inherit; font-size: var(--step-body); color: var(--ink); background: var(--bg); border: 1px solid #444; border-radius: var(--radius);
  min-height: 48px; padding: 0 14px; min-width: 0;
}
.try input::placeholder { color: #8c8d88; }
.try input:focus-visible, .try select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) .js-only { display: none; }

/* ---------- visibility check: a chat on the pale field ---------- */
.check { background: var(--field-1); color: var(--field-1-ink); padding: clamp(80px, 14vh, 160px) var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; }
.check__intro { grid-column: 1 / 6; display: grid; gap: 20px; align-content: start; justify-items: start; }
.check__intro h2 { font-size: var(--step-head); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.check__intro p { max-width: 42ch; }
.check__intro a { color: inherit; }
.check__intro .check__fine { font-size: var(--step-small); color: #3d3d3a; }
.chat { grid-column: 7 / 13; display: grid; gap: 16px; align-content: start; }
.chat__log { display: grid; gap: 10px; }
.msg { max-width: 44ch; padding: 12px 16px; border-radius: 14px; line-height: 1.45; }
.msg--q { background: var(--bg); color: var(--ink); justify-self: start; border-bottom-left-radius: 4px; }
.msg--a { background: var(--paper); color: var(--field-1-ink); justify-self: end; border-bottom-right-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: var(--step-body); min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--field-1-ink); border: 1px solid rgba(28, 28, 28, 0.35);
  transition: background-color 160ms var(--ease), transform 140ms var(--ease);
}
.chip:hover { background: rgba(28, 28, 28, 0.08); }
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.chat__go, .report__acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.chat__form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.chat__form input { font: inherit; font-size: var(--step-body); min-height: 48px; padding: 0 14px; border-radius: var(--radius); border: 1px solid rgba(28, 28, 28, 0.35); background: var(--paper); color: var(--field-1-ink); min-width: 0; }
.chat__form--area { grid-template-columns: 1fr; }
.chat__form--area button { justify-self: start; }
.chat__form textarea { font: inherit; font-size: var(--step-body); padding: 12px 14px; border-radius: var(--radius); border: 1px solid rgba(28, 28, 28, 0.35); background: var(--paper); color: var(--field-1-ink); resize: vertical; }
.chat__form .chip { justify-self: start; }
.report__checks h3 { font-size: var(--step-lead); font-weight: 400; margin-bottom: 12px; }
.report__checks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 8px 32px; }
.report__checks li.is-ok span[aria-hidden] { color: #3c5a3b; }
.report__checks li.is-miss span[aria-hidden] { color: #8a2f2a; }
.check .btn { background: var(--bg); color: var(--ink); }
.check .btn:hover { background: #333; }

.report { grid-column: 1 / 13; display: grid; gap: 40px; padding-top: 32px; }
.report__kicker { color: #4a4a47; }
.report__nums { display: flex; flex-wrap: wrap; gap: 24px 64px; margin-top: 12px; }
.report__nums div { display: grid; }
.report__nums b { font-size: var(--step-head); font-weight: 300; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.report__nums span { color: #4a4a47; }
.report__gain b { color: #3c5a3b; }
.report__bars { display: grid; gap: 14px; max-width: 900px; }
.bar { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr) 6rem; gap: 16px; align-items: center; }
.bar__track { position: relative; height: 14px; background: rgba(28, 28, 28, 0.1); border-radius: 7px; overflow: hidden; }
.bar__track i { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: #7d7c76; border-radius: 7px; }
.bar__track i.bar__to { background: var(--paper); }
.bar__track i:first-child { z-index: 1; }
.bar__n { font-variant-numeric: tabular-nums; text-align: right; }
.report__legend, .report__note { color: #3d3d3a; max-width: 75ch; }
.report__note a { color: inherit; }
.report__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.report__cols h3 { font-size: var(--step-lead); font-weight: 400; margin-bottom: 12px; }
.report__cols ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }

/* ---------- concepts: loose scatter ---------- */
.work { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: clamp(96px, 16vh, 180px) var(--margin) clamp(80px, 14vh, 160px); }
.work__title { grid-column: 1 / 7; font-size: var(--step-head); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.work__note { grid-column: 1 / 7; margin-top: 18px; max-width: 46ch; color: var(--muted); }
.piece { margin: 0; display: grid; gap: 12px; }
.piece--a { grid-column: 1 / 7; margin-top: 22vh; }
.piece--b { grid-column: 9 / 13; margin-top: -10vh; }
.piece--c { grid-column: 3 / 10; margin-top: 24vh; }
.piece img { width: 100%; filter: brightness(0.92) contrast(1.04); }
.piece__name { order: -1; font-size: var(--step-small); color: var(--muted); }
.piece__desc { font-size: var(--step-body); max-width: 48ch; }
.work__remark { grid-column: 2 / 7; align-self: center; margin-top: 8vh; font-size: var(--step-lead); font-weight: 300; line-height: 1.3; max-width: 22ch; }

[data-enter] { transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.js [data-enter]:not(.in) { opacity: 0; transform: translateY(28px); }

/* ---------- verbs ---------- */
.verb { position: relative; height: 100svh; overflow: clip; background: #111; }
.verb__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.3) saturate(0.35) blur(4px); transform: scale(1.04); }
.verb__word { position: absolute; inset: 0; display: grid; place-items: center; }
.verb__word span {
  display: block; text-align: center; padding-block: 0.08em;
  font-size: clamp(96px, 17vw, 300px); font-weight: 500; line-height: 1; letter-spacing: -0.045em; color: var(--ink);
}
.verb__text { position: absolute; left: var(--margin); bottom: var(--margin); max-width: 34ch; font-size: var(--step-body); padding: 16px 18px; background: rgba(18, 18, 18, 0.82); border-radius: var(--radius); }

/* ---------- price: like a menu ---------- */
.price { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: clamp(96px, 16vh, 180px) var(--margin); }
.price__side { grid-column: 1 / 4; display: grid; gap: 40px; align-content: start; }
.price__side h2 { font-size: var(--step-head); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.price__side img { width: 100%; max-width: 280px; filter: brightness(0.92); }
.price__list { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; align-items: start; }
.group h3 { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 26px; }
.item { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 22px; }
.item p { display: grid; gap: 4px; }
.item p b, .item .amt { font-size: var(--step-body); font-weight: 500; }
.item p span { font-size: var(--step-body); color: var(--muted); max-width: 36ch; }
.item .amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.group:first-child .item:first-of-type .amt { font-size: var(--step-lead); }

/* ---------- questions ---------- */
.faq { padding: clamp(80px, 14vh, 160px) var(--margin); display: grid; gap: clamp(56px, 8vh, 88px); }
.qa { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: baseline; }
.qa__q { grid-column: 1 / 7; font-size: var(--step-lead); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.qa__q--head { color: var(--muted); font-weight: 400; }
.qa__a { grid-column: 8 / 13; max-width: 40ch; font-size: var(--step-body); line-height: 1.55; }

/* ---------- contact: inverse ---------- */
.contact { position: relative; min-height: 100svh; background: var(--field-1); color: var(--field-1-ink); padding: var(--margin); display: grid; grid-template-rows: auto 1fr auto; gap: 40px; }
.contact__ask { max-width: 26ch; font-size: var(--step-lead); font-weight: 400; line-height: 1.35; }
.contact__mail { align-self: end; display: block; font-size: clamp(2.5rem, 7.4vw, 9rem); font-weight: 300; letter-spacing: -0.04em; line-height: 0.98; text-decoration: none; transition: color 220ms var(--ease); }
.contact__mail span { display: inline-block; }
.contact__mail:hover { color: #4f6a4e; }
.contact__foot { display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-body); }
.contact__foot p:last-child { text-align: right; }

/* ---------- footer ---------- */
.footer { min-height: 70svh; display: grid; grid-template-rows: auto 1fr auto auto; padding: var(--margin); background: #141414; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: var(--step-body); }
.footer__cols div { display: grid; gap: 6px; align-content: start; color: var(--muted); }
.footer__cols p { color: var(--ink); }
.footer__cols a { text-decoration: none; }
.footer__cols a:hover { color: var(--ink); text-decoration: underline; }
.footer__mark { grid-row: 3; width: 100%; height: auto; margin-top: 64px; fill: var(--ink); font-family: var(--font); font-weight: 300; font-size: 150px; letter-spacing: -0.04em; }
.footer__legal { grid-row: 4; margin-top: 16px; font-size: var(--step-small); color: var(--muted); }

/* ---------- phone ---------- */
@media (max-width: 899px) {
  .hero { position: relative; grid-template-columns: 1fr; }
  .hero__stage { order: -1; padding: 76px 16px 28px; }
  .hero__words { position: static; padding: 40px 20px 48px; }
  .hero__mark { top: 22px; left: 20px; }
  .hero__link { top: 24px; right: 20px; }
  .hero h1 { font-size: clamp(2.25rem, 9.6vw, 3.25rem); }

  .work, .price { grid-template-columns: 1fr; }
  .work__title, .work__note, .work__remark, .price__side, .price__list { grid-column: 1; }
  .piece--a { grid-column: 1; margin-top: 72px; }
  .piece--b { grid-column: 1; width: 68%; justify-self: end; margin-top: 72px; }
  .piece--c { grid-column: 1; width: 82%; margin-top: 72px; }
  .work__remark { margin-top: 72px; }

  .check { grid-template-columns: 1fr; padding: 72px 20px; }
  .check__intro, .chat, .report { grid-column: 1; }
  .bar { grid-template-columns: 1fr auto; }
  .bar span[role="rowheader"] { grid-column: 1 / -1; }
  .report__cols { grid-template-columns: 1fr; gap: 32px; }

  .verb__word span { font-size: 24vw; }
  .verb__text { left: 16px; right: 16px; bottom: 16px; }

  .price__side img { width: 60%; }
  .price__list { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }

  .qa { grid-template-columns: 1fr; gap: 12px; }
  .qa__q, .qa__a { grid-column: 1; }

  .contact { min-height: 86svh; padding: 28px 20px; }
  .contact__mail { font-size: 11.5vw; }
  .contact__mail span { display: block; }
  .contact__foot { flex-direction: column; }
  .contact__foot p:last-child { text-align: left; }

  .footer { padding: 32px 20px; }
  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .mask__line > span, .js .fade-up, .js [data-enter]:not(.in) { transform: none; opacity: 1; }
}
