/* nonened.io landing. Tokens and fonts come from /assets/tokens.css. */

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    var(--grain),
    linear-gradient(168deg, #f6f0e6 0%, var(--paper) 38%, var(--paper) 70%, #ebe2d0 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--wrap-w); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-soft); }
img { max-width: 100%; display: block; }

.skip { position: absolute; left: -999px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: var(--r-s); z-index: 20; }
.skip:focus { left: 12px; }

/* the one arrow of the system: up-right, round caps */
.arr { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; align-self: center; transition: transform .25s cubic-bezier(.2,.7,.3,1.2); }
a:hover .arr { transform: translate(2px, -2px); }

/* ── top ── */
.top { padding-top: 26px; position: relative; z-index: 5; }
.top-row { display: flex; align-items: baseline; gap: 28px; }
.brand { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 19px; text-decoration: none; white-space: nowrap; }
.brand-dot { color: var(--accent); }
.top-nav { display: flex; gap: 22px; margin-left: 12px; }
.top-nav a, .top-cta, .foot-nav a { font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color .2s ease; }
.top-nav a:hover, .top-cta:hover, .foot-nav a:hover { color: var(--ink); }
.top-cta { margin-left: auto; display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.lang { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-3); text-decoration: none; padding: 2px 0; margin-left: 4px; }
.lang:hover { color: var(--ink); }

/* ── hero ── */
.hero { min-height: 100svh; display: flex; flex-direction: column; padding-top: clamp(52px, 9vh, 92px); }
h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.04; letter-spacing: -0.015em;
  max-width: 26ch; text-wrap: balance;
}
h1 em { font-style: italic; color: var(--accent-strong); }
.hero-side { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 52ch) auto; gap: 22px 48px; align-items: end; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  color: var(--paper); background: var(--ink);
  padding: 14px 22px; border-radius: var(--r);
  transition: background .25s ease;
}
.btn:hover { background: #2c2520; }
.btn-quiet { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-quiet:hover { background: var(--surface-2); }
.cta-alt { font-size: 15px; color: var(--ink-2); }
.cta-alt a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ── the map ── */
.map { margin: clamp(40px, 7vh, 80px) 0 0; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.map-wrap { width: 100%; }
.map-svg { display: block; width: 100%; height: auto; }
.map-narrow { display: none; max-width: 420px; margin: 0 auto; }
.map .n rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; }
.map .n.mem rect { fill: var(--accent-soft); stroke: var(--accent); }
.map .t { font-family: var(--font-display); font-weight: 600; font-size: 16px; fill: var(--ink); }
.map .s { font-family: var(--font-body); font-size: 12.5px; fill: var(--ink-2); }
.map .e { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; }
.map .e.m { stroke: var(--ink-3); stroke-dasharray: 3 5; }
.map .p { fill: none; stroke: var(--accent-strong); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 10 300; stroke-dashoffset: 310; animation: pulse 5.2s linear infinite; }
.map .p:nth-child(2) { animation-delay: -1.1s; }
.map .p:nth-child(3) { animation-delay: -2.3s; }
.map .p:nth-child(4) { animation-delay: -3.4s; }
.map .p:nth-child(5) { animation-delay: -0.6s; }
.map .p:nth-child(6) { animation-delay: -1.8s; }
.map .p:nth-child(7) { animation-delay: -2.9s; }
@keyframes pulse { to { stroke-dashoffset: 0; } }
.map .ground path { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-linejoin: round; }
.map .g { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; fill: var(--ink-3); }
.map-cap { margin-top: 18px; font-size: 15.5px; color: var(--ink-2); max-width: 64ch; }

/* ── sections ── */
.sec { padding-top: clamp(96px, 14vh, 150px); }
.h {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3.8vw, 46px); line-height: 1.12; letter-spacing: -0.01em;
  max-width: 24ch; text-wrap: balance;
}

/* projects: a ledger, rows aligned by role */
.proj { list-style: none; padding: 0; margin: 44px 0 0; }
.proj-row {
  display: grid; grid-template-columns: 300px minmax(0, 1fr) auto;
  gap: 18px 40px; align-items: start;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.proj-row:last-child { border-bottom: 1px solid var(--line); }
.proj-shot { aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.proj-shot img { width: 100%; height: 100%; object-fit: cover; }
.proj-shot-phone { background: #d5cab8; }
.proj-shot-phone img { object-fit: contain; }
.proj-shot-text { padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; }
.proj-shot-text span { font-size: 13px; line-height: 1.3; color: var(--ink-2); padding: 5px 0; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-shot-text span:last-child { border-bottom: 0; }
.proj-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; }
.proj-body h3 a { text-decoration: none; transition: color .2s ease; }
.proj-body h3 a:hover { color: var(--accent-strong); }
.proj-body p { margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 56ch; }
.proj-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.02em; }
.proj-go { font-size: 15px; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: baseline; gap: 7px; white-space: nowrap; margin-top: 6px; transition: color .2s ease; }
.proj-go:hover { color: var(--ink); }
.proj-go-none { color: var(--ink-3); }
.proj-row-quiet .proj-body h3 { color: var(--ink-2); }

/* services: index list */
.svc { margin-top: 44px; }
.svc-row { display: grid; grid-template-columns: minmax(220px, 5fr) 7fr; gap: 12px 48px; padding: 28px 0; border-top: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-row h3 { font-family: var(--font-display); font-weight: 600; font-size: 25px; line-height: 1.2; }
.svc-row p { color: var(--ink-2); font-size: 16px; max-width: 58ch; }
.svc-row .note { margin-top: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); }
.vow { margin-top: 40px; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 22px; line-height: 1.4; max-width: 34ch; }
.vow em { color: var(--accent-strong); }

/* process: four short columns, no rail */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

/* about */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.about .h { max-width: 14ch; }
.about-text p { color: var(--ink-2); max-width: 60ch; }
.about-text p + p { margin-top: 16px; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; }
.facts li { position: relative; padding: 12px 0 12px 24px; border-top: 1px solid var(--line); color: var(--ink); font-size: 16px; max-width: 60ch; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts li::before { content: ''; position: absolute; left: 2px; top: 21px; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }

/* course: one inset island in the middle of the page */
.course {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 28px 40px; align-items: end;
  background: var(--paper-2); border-radius: var(--r-l);
  padding: clamp(28px, 4vw, 44px);
}
.course h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.course-text p { margin-top: 10px; color: var(--ink-2); font-size: 16px; max-width: 48ch; }
.course-nums { display: flex; gap: 28px; margin: 0; }
.course-nums div { display: flex; flex-direction: column-reverse; }
.course-nums dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.course-nums dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1; white-space: nowrap; }

/* contact */
.contact-lead { margin-top: 18px; color: var(--ink-2); max-width: 56ch; }
#contact .cta-row { margin-top: 28px; }

/* footer: its own floor */
.foot { margin-top: clamp(90px, 14vh, 150px); background: var(--paper-2); padding: 34px 0 40px; }
.foot-row { display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 22px; }
.foot-cr { margin-left: auto; color: var(--ink-3); font-size: 14px; }

/* ── responsive ── */
@media (max-width: 900px) {
  .hero-side { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .svc-row { grid-template-columns: 1fr; gap: 8px; }
  .course { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 860px) {
  .proj-row { grid-template-columns: 1fr; gap: 14px; }
  .proj-shot { max-width: 420px; }
}
@media (max-width: 720px) {
  .map-wide { display: none; }
  .map-narrow { display: block; }
  .top-nav { display: none; }
  .lang { margin-left: auto; }
  .top-cta { margin-left: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  h1 { font-size: clamp(34px, 10vw, 44px); }
  .foot-cr { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .map .p { animation: none; stroke-dashoffset: 0; opacity: 0; }
  .arr { transition: none; }
}
