/* dev.armid.in — "Type and nothing else", mapped to slate + cobalt */

/* ---------- tokens ---------- */
:root {
  --bg: #0d1013;
  --surface: #161a1f;
  --surface-2: #1d2228;
  --ink: #e8ebee;
  --muted: #a2aab4;
  --accent: #2f5bff;
  --accent-ink: #ffffff;
  --accent-text: #8ea8ff;
  --inv-bg: #e8ebee;
  --inv-ink: #0d1013;
  --inv-muted: #4b535d;
  --field: #2f5bff;
  --field-ink: #ffffff;

  --font-display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --font-text: "Red Hat Text", "Segoe UI", system-ui, sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, Consolas, monospace; /* taste-skill-ignore: real code block only */

  /* five steps */
  --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(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(4rem, 13.2vw, 15rem);

  --margin: clamp(1rem, 1.7vw, 1.5rem);
  --gutter: clamp(1rem, 1.7vw, 1.5rem);
  --section: clamp(7.5rem, 13vw, 13rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eceef1;
  --surface: #e0e3e8;
  --surface-2: #d5d9df;
  --ink: #0d1013;
  --muted: #474f59;
  --accent: #1d45e6;
  --accent-text: #1d45e6;
  --inv-bg: #0d1013;
  --inv-ink: #e8ebee;
  --inv-muted: #a2aab4;
  --field: #1d45e6;
  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
h1, h2, h3, p, figure, ul, ol, table { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--surface); }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
.display, .head, h1 { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; }
.display { font-size: var(--step-display); line-height: 0.88; }
.head { font-size: var(--step-head); line-height: 0.92; }
.lead { font-size: var(--step-lead); line-height: 1.3; }
.small { font-size: var(--step-small); line-height: 1.45; }
p { max-width: 62ch; text-wrap: pretty; }
.nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { padding-inline: max(var(--margin), env(safe-area-inset-left, 0px)); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0 2rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); text-decoration: none; font-weight: 500; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:hover { background: var(--ink); color: var(--bg); }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, opacity var(--t-hover) ease; }
.link:hover, .link:focus-visible { text-decoration-color: currentColor; }
.link-plain { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-underline-offset var(--t-hover) var(--ease-out); }
.link-plain:hover { text-underline-offset: 0.32em; }

/* ---------- header ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1.5rem; font-size: var(--step-small); }
.wordmark { font-weight: 500; text-decoration-color: transparent; }
.top nav { display: flex; gap: clamp(1rem, 2.4vw, 2rem); }
.theme { font-size: inherit; }

/* ---------- hero ---------- */
.hero { min-height: min(100svh, calc(60vw + 18rem)); display: grid; grid-template-rows: 1fr auto; padding-top: 15svh; padding-bottom: 1.75rem; }
.hero h1 { font-size: var(--step-display); line-height: 0.86; letter-spacing: -0.05em; align-self: start; }
.hero .l2 { text-align: right; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.hero-foot p { max-width: 44ch; }

/* ---------- focus (inverted field) ---------- */
.focus { background: var(--inv-bg); color: var(--inv-ink); padding-block: var(--section); row-gap: 0; }
.focus .grid { row-gap: clamp(4rem, 8vw, 8rem); align-items: start; }
.focus-h { grid-column: 1 / 8; }
.focus-statement { grid-column: 8 / 13; align-self: end; max-width: 30ch; }
.domain h3 { margin-bottom: 0.75rem; }
.domain p { max-width: 46ch; }
.domain-mobile { grid-column: 1 / 6; }
.cap-wrap { grid-column: 1 / -1; }
.cap { display: grid; gap: 0.04em; }
.cap li:nth-child(even) { text-align: right; }
.code { grid-column: 7 / 13; min-width: 0; }
.code pre { margin: 0; padding: 1.5rem; background: var(--bg); color: var(--ink); overflow-x: auto; font-family: var(--font-code); font-size: 0.8125rem; line-height: 1.7; tab-size: 4; }
.code figcaption { margin-top: 0.75rem; color: var(--inv-muted); }
.code .k { color: var(--accent-text); }
.code .t { color: var(--ink); font-weight: 400; }
.code .s { color: #f2c46d; }
.code .c { color: var(--muted); }
:root[data-theme="light"] .code .s { color: #f2c46d; }
.domain-tools { grid-column: 1 / 6; }
.tools-list { grid-column: 7 / 13; }
.cap-sm { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; }

/* ---------- work: ledger + pane ---------- */
.work { padding-block: var(--section) calc(var(--section) * 0.6); }
.ledger { grid-column: 2 / 7; }
.work-h { margin-bottom: 2rem; }
.rows { display: none; }
.js .rows { display: block; }
.row { width: 100%; min-height: 3.5rem; display: grid; grid-template-columns: 1.15fr 1fr auto; align-items: center; gap: 1rem; color: var(--ink); transition: color var(--t-hover) ease, transform var(--t-hover) var(--ease-out); }
.r-name { font-size: var(--step-lead); font-weight: 500; }
.r-kind { font-size: var(--step-small); color: var(--muted); }
.r-year { font-size: var(--step-small); text-align: right; }
.js .rows:has(.row:hover) .row:not(:hover), .js .rows .row:not(.is-on) { color: var(--muted); }
.js .rows .row:hover, .js .rows .row.is-on { color: var(--ink); }
.row:hover { transform: translateX(6px); }
.row.is-on .r-name { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }

.pane { grid-column: 8 / 13; display: grid; gap: 5rem; }
.js .pane { gap: 0; }
.js .panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s linear 320ms; }
.js .panel.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.panel h3 { margin-top: 1.5rem; }
.panel p { margin-top: 0.5rem; }
.links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 1rem !important; font-weight: 500; }
.private { color: var(--muted); font-weight: 400; }

.stage { position: relative; aspect-ratio: 1 / 1; background: var(--surface); overflow: clip; display: grid; place-items: center; }
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 1200ms var(--ease-soft); }
.panel.is-on .stage > img { transform: scale(1.04); }
.has-photo .device { position: relative; }
.full-photo > img { position: static; }

/* the device frame */
.device { width: 46%; aspect-ratio: 9 / 19; background: #050607; border-radius: 2.25rem; padding: 0.55rem; }
.scr { height: 100%; border-radius: 1.75rem; background: #f5f6f8; color: #111418; overflow: hidden; display: flex; flex-direction: column; font-size: 0.8125rem; line-height: 1.3; }
.ui-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; white-space: nowrap; padding: 1.6rem 0.9rem 0.75rem; font-weight: 500; font-size: 1rem; }
.ui-bar span:last-child { font-size: 0.8125rem; color: #5a626c; }
.ui-list { flex: 1; padding: 0 0.6rem; display: grid; align-content: start; gap: 0.35rem; }
.ui-list li { display: flex; align-items: center; gap: 0.5rem; background: #ffffff; padding: 0.6rem 0.65rem; border-radius: 0.6rem; }
.ui-list li > span { flex: 1; min-width: 0; }
.ui-score b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.ui-score i { font-style: normal; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; border-radius: 50%; background: #e7e9ed; font-weight: 500; }
.ui-score i.on { background: #2f5bff; color: #fff; }
.ui-times li, .ui-jobs li { align-items: flex-start; }
.ui-times b, .ui-jobs b { color: #2f5bff; font-weight: 500; }
.ui-cta { margin: 0.6rem; padding: 0.8rem; border-radius: 0.7rem; background: #2f5bff; color: #fff; text-align: center; font-weight: 500; }
.ui-plan { flex: 1; width: 100%; padding: 0 0.6rem; }
.ui-auth .ui-label { padding: 0.9rem 1rem 0.35rem; color: #5a626c; }
.ui-field { margin: 0 0.6rem; padding: 0.7rem; background: #fff; border-radius: 0.6rem; }
.ui-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.3rem; margin: 0 0.6rem; flex: 1; align-content: start; }
.ui-otp span { aspect-ratio: 3 / 4; display: grid; place-items: center; background: #fff; border-radius: 0.5rem; font-size: 1rem; font-weight: 500; }
.ui-otp span:empty { background: #e7e9ed; }
.ui-meter { margin: 0 1rem 0.75rem; height: 0.4rem; background: #e2e5ea; border-radius: 1rem; overflow: hidden; }
.ui-meter span { display: block; height: 100%; background: #2f5bff; }
.ui-guests b { font-weight: 500; color: #5a626c; }

/* ---------- record: a headline you can type ---------- */
.record { padding-block: calc(var(--section) * 0.6) clamp(4.5rem, 8vw, 8rem); }
.record h2 label { cursor: text; }
.q-line { margin-top: 1.5rem; display: flex; align-items: center; position: relative; }
.q-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.5rem; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
.q-line:focus-within::after { transform: scaleX(1); }
.q { width: 100%; background: none; border: 0; padding: 0 0 0.08em; letter-spacing: -0.03em; text-transform: none; caret-color: var(--accent-text); caret-shape: block; }
.q:focus { outline: none; }
.record-body { margin-top: 3rem; align-items: start; }
.answer { grid-column: 1 / 7; max-width: 600px; }
.answer-note { color: var(--muted); margin-bottom: 1rem; }
.results { display: grid; gap: 0.5rem; }
.results li { display: grid; gap: 0.2rem; padding: 1rem 1.25rem; background: var(--surface); animation: res-in 360ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 70ms); }
.results b { font-weight: 500; font-size: var(--step-lead); line-height: 1.25; }
.results small { font-size: var(--step-small); color: var(--muted); }
.results a { font-weight: 500; }
@keyframes res-in { from { opacity: 0; transform: translateY(10px); } }
.examples { grid-column: 8 / 13; display: grid; justify-items: start; gap: 0.6rem; }
.examples p { color: var(--muted); }
.ex { font-size: 1.0625rem; text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.22em; transition: transform var(--t-hover) var(--ease-out), color var(--t-hover) ease; }
.ex:hover { transform: translateX(6px); color: var(--accent-text); }
.ex:active { transform: translateX(6px) scale(0.98); }

/* ---------- full-bleed picture ---------- */
.bleed-photo { position: relative; margin-bottom: var(--section); }
.bleed-frame { overflow: clip; }
.bleed-photo img { width: 100%; height: min(82svh, 56vw); object-fit: cover; object-position: 50% 45%; filter: grayscale(1) contrast(1.05); }
@media (prefers-reduced-motion: no-preference) {
  .bleed-photo img { animation: drift 24s var(--ease-soft) infinite alternate; }
}
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-2%, -1.5%); } }
.bleed-photo figcaption { padding-top: 0.75rem; color: var(--muted); }

/* ---------- contact rows ---------- */
.contact { margin-top: 0; }
.c-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; min-height: 9.5rem; padding: 0 max(var(--margin), 1.25rem) 1.25rem; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: var(--step-head); line-height: 1; max-width: none; }
.c-row:nth-child(odd) { background: var(--bg); }
.c-row:nth-child(even) { background: var(--surface-2); }
.c-row a { text-decoration-color: transparent; }
.c-row a:hover { text-decoration-color: currentColor; }
.hello { display: inline-flex; align-items: center; gap: 0.3em; text-decoration: none; white-space: nowrap; }
.round { width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; transition: transform var(--t-hover) var(--ease-out); }
.round svg { width: 50%; height: 50%; }
.hello:hover .round { transform: translateX(0.12em) rotate(-8deg); }
.hello:active .round { transform: scale(0.94); }
.c-row > .c-photo { width: clamp(5rem, 9vw, 8.5rem); aspect-ratio: 1; border-radius: 50%; object-fit: cover; align-self: center; filter: grayscale(1) contrast(1.05); }

/* ---------- footer (accent field) ---------- */
.foot { background: var(--field); color: var(--field-ink); }
.foot-in { min-height: 90svh; display: flex; flex-direction: column; padding-top: 2.5rem; padding-bottom: 1.5rem; }
.foot-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 1.5rem; }
.foot-mail { margin-top: auto; font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.04em; max-width: none; text-transform: none; }
.foot-mail a { text-decoration: none; display: inline-block; transition: transform var(--t-ui) var(--ease-out); }
.foot-mail a:hover { transform: translateX(0.04em); }
.foot-mail .at { display: block; }
.copy { margin-top: 1.25rem; font-size: inherit; }
.foot-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: 2.5rem; }
.credits { max-width: 90ch; }
.foot-right { white-space: nowrap; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
  .js .c-row > * { transform: translateY(0.3em); transition: transform 900ms var(--ease-out); }
  .js .c-row.is-in > * { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; transition-duration: 1ms !important; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .ledger { grid-column: 1 / 7; }
  .pane { grid-column: 7 / 13; }
  .focus-h { grid-column: 1 / -1; }
  .focus-statement { grid-column: 6 / 13; }
  .domain-mobile { grid-column: 1 / 13; }
  .code { grid-column: 1 / 13; }
  .domain-tools { grid-column: 1 / 7; }
  .tools-list { grid-column: 7 / 13; }
  .cap-sm { grid-template-columns: 1fr; }
}

/* ---------- tablet and phone: two-line ledger rows ---------- */
@media (max-width: 1024px) {
  .row { grid-template-columns: 1fr auto; row-gap: 0.1rem; padding-block: 0.6rem; }
  .r-kind { grid-row: 2; grid-column: 1; }
  .r-year { grid-row: 1; grid-column: 2; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .top nav { gap: 0.9rem; }
  .top nav a:not(:last-of-type) { display: none; }
  .hero { padding-top: 14svh; }
  .hero h1 { font-size: 15vw; line-height: 0.9; }
  .hero .l2 { text-align: left; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .button { width: 100%; }

  .focus-h, .focus-statement, .domain-mobile, .code, .domain-tools, .tools-list { grid-column: 1 / -1; }
  .focus .grid { row-gap: 3rem; }
  .cap { font-size: 9vw; }
  .cap li:nth-child(even) { text-align: left; padding-left: 8vw; }
  .cap-sm { grid-template-columns: 1fr; }

  .ledger, .pane { grid-column: 1 / -1; }
  .js .rows { display: none; }
  .js .pane { gap: 4rem; }
  .js .panel { grid-area: auto; opacity: 1; visibility: visible; transform: none; }
  .stage { aspect-ratio: 4 / 5; }
  .device { width: 58%; }

  .q { font-size: 11vw; }
  .answer, .examples { grid-column: 1 / -1; }
  .answer { max-width: none; }
  .examples { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .examples p { width: 100%; }
  .ex { min-height: 2.75rem; padding: 0 1rem; background: var(--surface); text-decoration: none; }


  .c-row { min-height: 5.25rem; font-size: 9.6vw; padding-inline: 1rem; padding-bottom: 0.9rem; }
  .c-hello { background: var(--accent) !important; color: var(--accent-ink); }
  .c-hello .hello { width: 100%; justify-content: space-between; }
  .c-hello .round { background: var(--accent-ink); color: var(--accent); width: 3.5rem; height: 3.5rem; }
  .c-row > .c-photo { width: 4rem; }

  .foot-top { grid-template-columns: 1fr; gap: 1rem; }
  .foot-mail { font-size: 15vw; margin-top: 6rem; }
  .foot-meta { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
