@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-5.3.0-latin-wght.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/instrument-sans-5.3.0-latin-wght.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/dm-mono-5.3.0-latin-400.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/dm-mono-5.3.0-latin-500.woff2") format("woff2"); }
/* Layout: one left-aligned column. Hero = headline beside a grid of identical squares with one odd square. Work = two ruled rows that open an overview with screens. Quiet footer. */
:root {
  --bg: #eceff2;
  --surface: #e1e5ea;
  --fg: #12161c;
  --muted: #566070;
  --line: #c3cad3;
  --accent: #e4452b;
  --on-accent: #ffffff;
  --card: #f6f8fa;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101317;
    --surface: #1a1f26;
    --fg: #e9ecf0;
    --muted: #93a0b0;
    --line: #2a313b;
    --accent: #ff6a4d;
    --on-accent: #101317;
    --card: #1a1f26;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101317;
  --surface: #1a1f26;
  --fg: #e9ecf0;
  --muted: #93a0b0;
  --line: #2a313b;
  --accent: #ff6a4d;
  --on-accent: #101317;
  --card: #1a1f26;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html.lock { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  padding-block: 28px 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 1040px; margin-inline: auto; display: flex; flex-direction: column; gap: 72px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }

/* top bar */
.bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.mark { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.mark svg { width: 34px; height: 34px; display: block; flex: none; }
.bar .mono { color: var(--muted); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(54px, 9.5vw, 112px); line-height: 0.92; letter-spacing: -0.04em; margin: 0 0 24px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lede { max-width: 34ch; font-size: 19px; margin: 0; }
.field-wrap { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; width: 100%; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.field span { aspect-ratio: 1; background: var(--surface); border: 1px solid var(--line); display: block; }
.field span.odd {
  background: linear-gradient(45deg, #D9381E, #F07A2A 55%, #F7B733);
  border-color: transparent; border-radius: 12%;
  transform: rotate(-16deg) scale(0.86);
  transition: transform 0.35s cubic-bezier(.3,1.5,.5,1);
}
.field-wrap .mono { color: var(--muted); }

/* work */
.section-label { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.section-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.work { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.work li { border-bottom: 1px solid var(--line); }
.row {
  appearance: none; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
  width: 100%; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px 32px; align-items: baseline;
  padding: 30px 0; transition: background 0.15s;
}
.row:hover h2 span.arrow { transform: translateX(6px); }
.row h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 52px); line-height: 1; letter-spacing: -0.03em; margin: 0; }
.row h2 small { font-weight: 500; font-size: 0.5em; letter-spacing: -0.01em; color: var(--muted); display: block; margin-top: 8px; }
.row h2 .arrow { display: inline-block; color: var(--accent); margin-left: 10px; transition: transform 0.2s; }
.row p { margin: 0; color: var(--muted); max-width: 40ch; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--fg); border-radius: 999px; white-space: nowrap; }
.status.live { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.status.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--on-accent); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px 40px; }
.about h3 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.05; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.about p { margin: 0 0 14px; max-width: 54ch; }
.about p:last-child { margin: 0; color: var(--muted); }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* project overview dialog */
dialog.proj {
  width: min(980px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 1px solid var(--line);
  background: var(--bg); color: var(--fg); border-radius: 6px; overflow: auto; overscroll-behavior: contain;
}
dialog.proj::backdrop { background: rgba(8, 10, 14, 0.66); }
.proj-in { padding: 28px max(20px, 4vw) 36px; display: flex; flex-direction: column; gap: 32px; }
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.proj-top h2 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 6vw, 64px); line-height: 0.95; letter-spacing: -0.035em; margin: 8px 0 0; }
.close { appearance: none; border: 1px solid var(--fg); background: none; color: var(--fg); font: inherit; border-radius: 999px; padding: 8px 16px; cursor: pointer; flex: none; }
.close:hover { background: var(--fg); color: var(--bg); }
.proj .lead { font-size: 20px; max-width: 52ch; margin: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 48px; }
.cols h3, .shots-h { font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.cols ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cols li { padding-left: 20px; position: relative; }
.cols li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
.cols li b { font-weight: 600; }
.facts { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
.note { color: var(--muted); font-size: 14px; margin: 0; }
.visit { display: inline-block; margin-top: 14px; }

.shots { display: flex; gap: 20px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x proximity; align-items: flex-start; }
.shot { margin: 0; flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.shot figcaption { font-size: 14px; color: var(--muted); max-width: 34ch; }
.shot figcaption b { color: var(--fg); font-weight: 600; display: block; }

/* real screens */
.shot img { display: block; align-self: flex-start; border: 1px solid var(--line); border-radius: 10px; background: #fff; max-width: none; }
.shot.ph img { height: 440px; width: auto; }
.shot.wd img { height: 340px; width: auto; }
.shot.wd, .shot.ph { max-width: none; }
.shot.wd figcaption { max-width: 48ch; }
.shot img[src] { box-shadow: 0 8px 24px rgba(0,0,0,0.14); }

@media (max-width: 760px) {
  .wrap { gap: 56px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .status { justify-self: start; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .field span.odd, .row h2 .arrow { transition: none; }
}

/* theme + accessibility controls */
.tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool { appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--fg); border-radius: 999px; background: transparent; color: var(--fg); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; position: relative; }
.tool:hover { background: var(--fg); color: var(--bg); }
.tool svg { width: 20px; height: 20px; flex: none; }
.tool[data-tip]::after { content: attr(data-tip); display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 6; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); font-size: 14px; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
  .tool { width: 44px; padding: 0; justify-content: center; }
  .tool .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tool[data-tip]:focus-visible::after { display: block; }
  .tools.tips-off .tool[data-tip]::after { display: none !important; }
}
@media (max-width: 640px) and (hover: hover) { .tool[data-tip]:hover::after { display: block; } .tools.tips-off .tool[data-tip]::after { display: none !important; } }
.a11y-dialog { border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(480px, calc((100vw - 24px) / var(--zoom, 1))); max-height: calc((100dvh - 32px) / var(--zoom, 1)); overflow: auto; overscroll-behavior: contain; background: var(--card); color: var(--fg); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.a11y-dialog::backdrop { background: rgba(8,10,14,0.6); }
.a11y-form { padding: 16px 24px; display: grid; gap: 16px; font-size: 16px; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: -16px; z-index: 1; margin: -16px -24px 0; padding: 16px 24px 8px; background: var(--card); }
.a11y-head h2 { font-family: var(--display); font-size: 24px; margin: 0; letter-spacing: -0.02em; }
.a11y-x { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--fg); font: inherit; font-size: 24px; line-height: 1; cursor: pointer; }
.a11y-help { margin: 0; color: var(--muted); font-size: 15px; }
.a11y-group { border: 0; padding: 0; margin: 0; }
.a11y-group legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.a11y-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.a11y-choices label { flex: 1; min-width: 96px; position: relative; }
.a11y-choices input { position: absolute; opacity: 0; pointer-events: none; }
.a11y-choices span { display: block; text-align: center; padding: 12px 8px; border: 1.5px solid var(--muted); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 15px; }
.a11y-choices input:checked + span { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.a11y-choices input:checked + span::before { content: "\2713  "; }
.a11y-choices input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.a11y-option { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.a11y-option input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--fg); }
.a11y-option b { display: block; }
.a11y-option span span { color: var(--muted); font-size: 15px; }
.a11y-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.a11y-actions button { min-height: 44px; padding: 0 20px; border: 1.5px solid var(--fg); border-radius: 999px; font: inherit; font-weight: 650; cursor: pointer; }
.a11y-reset { background: transparent; color: var(--fg); }
.a11y-done { background: var(--fg); color: var(--bg); }
:root[data-a11y-text="large"] { zoom: 1.15; --zoom: 1.15; }
:root[data-a11y-text="larger"] { zoom: 1.3; --zoom: 1.3; }
:root[data-a11y-contrast="high"] { --muted: var(--fg); --line: var(--fg); }
:root[data-a11y-contrast="high"] :focus-visible { outline-width: 4px; }
:root[data-a11y-motion="reduce"] *, :root[data-a11y-motion="reduce"] *::before, :root[data-a11y-motion="reduce"] *::after { transition: none !important; animation: none !important; }
:root[data-a11y-reading="easy"] body, :root[data-a11y-reading="easy"] body * { font-family: Verdana, Tahoma, "Segoe UI", system-ui, sans-serif !important; }
:root[data-a11y-reading="easy"] body { letter-spacing: 0.03em; word-spacing: 0.12em; line-height: 1.7; }
:root[data-a11y-reading="easy"] h1 { letter-spacing: 0; line-height: 1.25; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 40px; }
.contact h3 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 12px; text-wrap: balance; }
.contact p { margin: 0 0 12px; max-width: 40ch; color: var(--muted); }
.cform { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cform .full { grid-column: 1 / -1; }
.cform label { display: block; font-weight: 600; margin-bottom: 6px; }
.cform .opt { font-weight: 400; color: var(--muted); }
.cform input, .cform textarea { width: 100%; font: inherit; color: var(--fg); background: var(--card); border: 1.5px solid var(--muted); border-radius: 8px; padding: 11px 12px; min-height: 44px; }
.cform textarea { min-height: 140px; resize: vertical; }
.cform input[aria-invalid="true"], .cform textarea[aria-invalid="true"] { border-color: var(--accent); }
.cform .err { color: var(--accent); font-size: 15px; margin: 6px 0 0; min-height: 0; }
:root:not([data-theme="dark"]) .cform .err { color: #b3260f; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { appearance: none; border: 0; background: var(--fg); color: var(--bg); font: inherit; font-weight: 700; padding: 0 28px; min-height: 48px; border-radius: 999px; cursor: pointer; justify-self: start; }
.send:disabled { opacity: 0.6; cursor: default; }
.result { grid-column: 1 / -1; padding: 12px 14px; border: 1.5px solid var(--fg); border-radius: 8px; }
.result:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.privnote { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 760px) { .contact { grid-template-columns: minmax(0, 1fr); } .cform { grid-template-columns: minmax(0, 1fr); } }

.proj-top h2 .by { color: var(--muted); font-weight: 500; }
.facts.flat { margin: 0; }
.note.gap { margin-top: 14px; }
[hidden] { display: none !important; }
