/* Krome — monochrome editorial portfolio. Single light theme by design;
   the page keeps its pale ground whatever the browser prefers.
   Layout: one column of hairline-ruled "sheets" on a grainy grey ground,
   a floating black pill nav, sparse metadata in the margins. */

/* Fonts are served from this site (latin subset, SIL Open Font Licence), so no visitor
   request goes to Google and the first paint doesn't wait on another host. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 300 600; font-stretch: 87.5% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  --bg: #eeeef0;
  --bg-deep: #dedfe2;
  --sheet: rgba(255, 255, 255, 0.82);
  --white: #ffffff;
  --fg: #101113;
  --fg-mute: #5c5e63;
  --fg-faint: #8b8d93;
  --line: rgba(16, 17, 19, 0.28);
  --line-soft: rgba(16, 17, 19, 0.12);
  --ink: #101113;
  --ink-fg: #e8e8ea;
  --blur-a: rgba(60, 61, 66, 0.42);
  --blur-b: rgba(150, 151, 156, 0.38);
  --shadow: 0 18px 50px rgba(20, 21, 24, 0.10), 0 1px 0 rgba(255,255,255,0.9) inset;

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --measure: 62ch;
  color-scheme: only light;
}


* { box-sizing: border-box; }
html, body { forced-color-adjust: none; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}
.pillnav a:focus-visible { outline-color: var(--ink-fg); outline-offset: 1px; }

/* skip link: hidden until a keyboard user tabs to it */
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 30;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--ink-fg);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }
.skip:focus-visible { outline-color: var(--ink); }
main:focus { outline: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0; }

/* ---------- ground: blurred gradient + grain ---------- */
.ground {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50% 40% at 18% 18%, var(--blur-b) 0%, transparent 70%),
    radial-gradient(40% 45% at 88% 78%, var(--blur-b) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  filter: blur(40px) saturate(0);
  transform: scale(1.1);
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.35'/></svg>");
  mix-blend-mode: multiply;
}

/* ---------- utility type ---------- */
.meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-variant-numeric: tabular-nums;
}
.meta strong { color: var(--fg); font-weight: 500; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- page frame ---------- */
.frame {
  padding-inline: var(--gutter);
  padding-block: 0 96px;
  max-width: 1280px;
  margin-inline: auto;
}

/* top bar, like the date strip in the reference */
.topbar {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
  padding-block: 22px 18px;
  border-bottom: 1px solid var(--line);
}
.topbar .wordmark {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
}
.topbar .dash { display: inline-block; width: 22px; border-top: 1px solid var(--fg); vertical-align: middle; margin-inline: 12px; }

/* floating black pill nav */
.pillnav {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 2px; padding: 4px;
  background: var(--ink); color: var(--ink-fg);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  max-width: calc(100vw - 32px);
}
.pillnav a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 999px; white-space: nowrap;
  opacity: 0.6; transition: opacity 160ms ease, background 160ms ease;
}
.pillnav a:hover { opacity: 1; }
.pillnav a[aria-current="true"] { opacity: 1; background: var(--ink-fg); color: var(--ink); }
@media (max-width: 480px) {
  .pillnav a { padding: 8px 10px; font-size: 10px; letter-spacing: 0.04em; }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  padding-block: 56px 48px;
  border-bottom: 1px solid var(--line);
  align-items: end;
}
.hero-title {
  font-size: clamp(56px, 11vw, 148px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  font-weight: 500;
  font-stretch: 92%;
}
.hero-title .thin { font-weight: 300; color: var(--fg-mute); }
.hero-sub { margin-top: 24px; max-width: 42ch; color: var(--fg-mute); font-size: 15px; }
.hero-side { display: grid; gap: 10px; justify-items: end; text-align: right; }
.hero-side .cube { width: min(100%, 300px); aspect-ratio: 1; max-width: 100%; }
.hero-side .cube canvas { width: 100%; height: 100%; display: block; }
.hero-side .readout { display: grid; gap: 2px; }
.hero-side .readout .big { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 36px 32px; }
  .hero-side { justify-items: start; text-align: left; }
  .hero-side .cube { width: 200px; }
}

/* ---------- sections ---------- */
.section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  padding-block: 44px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.section-head { display: grid; gap: 6px; align-content: start; }
.section-head h2 {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
}
.section-body { display: grid; gap: 24px; min-width: 0; }
@media (max-width: 760px) {
  .section { grid-template-columns: 1fr; gap: 18px; padding-block: 32px; }
}

/* sheet: translucent panel with hairline, like the paper/glass panels in the moodboard */
.sheet {
  background: var(--sheet);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 24px;
  min-width: 0;
}

/* corner registration marks */
.marks { position: relative; }
.marks::before, .marks::after {
  content: "+"; position: absolute; font-family: var(--font-mono); font-size: 12px; color: var(--fg-faint); line-height: 1;
}
.marks::before { top: 8px; left: 10px; }
.marks::after { bottom: 8px; right: 10px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
.about .lede { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 400; max-width: 26ch; }
.about .body { margin-top: 18px; color: var(--fg-mute); max-width: var(--measure); display: grid; gap: 12px; }
.about .portrait {
  aspect-ratio: 3 / 4; max-width: 100%;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(55% 45% at 50% 40%, var(--blur-a) 0%, transparent 72%),
    radial-gradient(40% 40% at 50% 78%, var(--blur-b) 0%, transparent 70%),
    var(--white);
  border-radius: 18px;
  position: relative; overflow: hidden;
}
.about .portrait::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.about .portrait .tag { position: absolute; left: 12px; bottom: 10px; z-index: 1; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-top: 28px; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line-soft); display: grid; gap: 2px; }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts .v { font-size: 14px; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about .portrait { max-width: 240px; }
}

/* ---------- links ---------- */
.links { display: grid; gap: 0; padding: 10px 14px; }
.links a {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 16px 10px; border-bottom: 1px solid var(--line-soft);
  transition: padding-left 160ms ease;
}
.links a:hover { padding-left: 16px; }
.links a:hover .arrow { transform: translate(2px, -2px); }
.links .glyph {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0;
}
.links .name { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; }
.links .handle { display: block; }
.links .arrow { font-family: var(--font-mono); transition: transform 160ms ease; }
.links a.primary .glyph { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.copyrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copyrow code { font-family: var(--font-mono); font-size: 12px; user-select: all; }
.btn {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--fg);
  transition: background 160ms ease, color 160ms ease;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.btn.solid:hover { opacity: 0.85; }

/* ---------- portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-soft); background: transparent; color: var(--fg-mute);
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.work {
  display: grid; gap: 10px; cursor: pointer;
  background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit;
}
.work[hidden] { display: none; }
.work .img {
  aspect-ratio: 4 / 5; max-width: 100%; position: relative; overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--white);
}
.work .img .blob {
  position: absolute; inset: -20%;
  background: radial-gradient(closest-side, var(--blur-a), transparent);
  filter: blur(18px);
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
.work:hover .img .blob { transform: scale(1.08) rotate(6deg); }
.work .img .idx { position: absolute; top: 10px; left: 12px; }
.work .img .dim { position: absolute; bottom: 10px; right: 12px; }
.work .cap { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.work .cap .t { font-family: var(--font-display); font-size: 15px; }
.work.wide { grid-column: span 2; }
.work.wide .img { aspect-ratio: 8 / 5; }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .work.wide { grid-column: span 2; }
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(16,17,19,0.86);
  display: grid; place-items: center; padding: 24px;
}
.lightbox .panel {
  width: min(92vw, 720px); max-height: 86vh;
  background: var(--white); color: var(--fg);
  border: 1px solid var(--line-soft); border-radius: 22px;
  padding: 18px; display: grid; gap: 14px; grid-template-rows: auto minmax(0,1fr) auto;
}
.lightbox .panel .img { aspect-ratio: 4/3; max-width: 100%; position: relative; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--white); }
.lightbox .panel .img .blob { position: absolute; inset: -20%; background: radial-gradient(closest-side, var(--blur-a), transparent); filter: blur(30px); }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lightbox .x { background: none; border: 0; color: inherit; font-family: var(--font-mono); font-size: 16px; cursor: pointer; padding: 4px 8px; }

/* ---------- commissions ---------- */
.status { display: inline-flex; align-items: center; gap: 8px; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.25 } }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tier { display: grid; gap: 14px; align-content: start; }
.tier h3 { font-size: 20px; letter-spacing: -0.02em; }
.tier .price { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tier .price small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-mute); margin-left: 6px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--fg-mute); font-size: 14px; }
.tier ul li { padding-left: 14px; position: relative; }
.tier ul li::before { content: "—"; position: absolute; left: 0; color: var(--fg-faint); }
.tier .swatch { height: 90px; border: 1px solid var(--line-soft); border-radius: 12px; position: relative; overflow: hidden; background: var(--white); }
.tier .swatch::before { content: ""; position: absolute; inset: -30%; filter: blur(14px); }
.tier.t1 .swatch::before { background: radial-gradient(closest-side at 30% 50%, var(--blur-b), transparent); }
.tier.t2 .swatch::before { background: radial-gradient(closest-side at 50% 50%, var(--blur-a), transparent); }
.tier.t3 .swatch::before { background: radial-gradient(closest-side at 70% 40%, var(--blur-a), transparent), radial-gradient(closest-side at 25% 70%, var(--blur-b), transparent); }
.tier.featured { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); box-shadow: 0 24px 60px rgba(16,17,19,0.35); }
.tier.featured .price small, .tier.featured ul, .tier.featured .meta { color: var(--ink-fg); opacity: 0.7; }
.tier.featured .swatch { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); }
.tier.featured .swatch::before { background: radial-gradient(closest-side at 50% 50%, rgba(255,255,255,0.5), transparent); }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }

.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.terms div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--fg-mute); }
.terms div .meta { padding-top: 3px; }
@media (max-width: 760px) { .terms { grid-template-columns: 1fr; } }

form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--fg); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 8px 0; width: 100%; min-width: 0;
}
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-note { color: var(--fg-mute); font-size: 13px; }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; }
.foot .stamp {
  border: 1px solid var(--line); padding: 8px 10px;
  font-family: var(--font-display); font-size: 11px; line-height: 1.15; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  display: inline-block;
}
.links a:last-child { border-bottom: 0; }

/* real artwork, once it replaces the placeholder blobs */
.work .img img, .lightbox .panel .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 404 and 500 pages ---------- */
.error-page { grid-template-columns: 1fr; min-height: 70vh; border-bottom: 0; }
.error-actions { margin-top: 32px; }
.error-actions .btn { display: inline-block; text-decoration: none; }

/* ---------- hover animations ----------
   Only on devices with a real pointer, so taps on phones don't leave things stuck mid-hover.
   The reduced-motion rule near the top switches all of this off for people who ask for less motion. */
.work .img, .work .cap .t, .tier, .links .glyph, .btn, .filters button,
.topbar .wordmark, .lightbox .x, .foot a, .foot .stamp, .copyrow code {
  transition: transform 260ms cubic-bezier(.2,.7,.2,1), box-shadow 260ms ease, background 160ms ease,
              color 160ms ease, border-color 160ms ease, letter-spacing 260ms ease, opacity 160ms ease;
}
.work .cap .t, .foot a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 260ms cubic-bezier(.2,.7,.2,1);
}
.work .img .idx, .work .img .dim { transition: opacity 200ms ease, transform 260ms ease; }

@media (hover: hover) and (pointer: fine) {
  /* artwork: the card lifts, the picture drifts, the title underlines */
  .work:hover .img { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(16, 17, 19, 0.14); border-color: var(--line); }
  .work:hover .img img { transform: scale(1.04); }
  .work .img img { transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
  .work:hover .cap .t { background-size: 100% 1px; }
  .work:hover .img .idx { transform: translateX(3px); }
  .work:hover .img .dim { opacity: 0.4; }

  /* commission tiers rise a little */
  .tier:hover { transform: translateY(-5px); box-shadow: 0 26px 60px rgba(20, 21, 24, 0.16), 0 1px 0 rgba(255,255,255,0.9) inset; }
  .tier.featured:hover { box-shadow: 0 30px 70px rgba(16, 17, 19, 0.42); }

  /* social rows: the badge fills in and turns */
  .links a:hover .glyph { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); transform: rotate(-12deg) scale(1.06); }
  .links a.primary:hover .glyph { background: var(--white); color: var(--ink); }
  .links a:hover .arrow { transform: translate(4px, -4px); }

  /* buttons and chips */
  .btn:hover, .filters button:hover { transform: translateY(-2px); }
  .btn:hover { box-shadow: 0 8px 18px rgba(16, 17, 19, 0.16); }
  .filters button:hover { border-color: var(--line); color: var(--fg); }
  .filters button[aria-pressed="true"]:hover { color: var(--ink-fg); }

  /* small furniture */
  .topbar .wordmark:hover { letter-spacing: 0.3em; }
  .pillnav a:hover:not([aria-current="true"]) { background: rgba(232, 232, 234, 0.12); }
  .lightbox .x:hover { transform: rotate(90deg); }
  .foot a:hover { background-size: 100% 1px; }
  .foot .stamp:hover { transform: rotate(-4deg); }
  .copyrow code:hover { color: var(--fg-mute); }
}
.btn:active, .filters button:active { transform: translateY(0) scale(0.97); transition-duration: 80ms; }
.work:active .img { transform: translateY(-1px) scale(0.99); }
