/* Hallmark · v2.0.0 · theme: custom dark (by request) · genre: atmospheric · shape: network index · hero: live topology · nav: edge-aligned · footer: mast · job: hire · posture: drenched */
/* Hallmark · pre-emit critique: P5 H4 E4 S4 R4 V4 · weakest: E, dark surfaces flatten the hierarchy; used three near-black surfaces and one cyan signal */
/* Hallmark · waive 39b · project index rows are case-study rows, not CTA buttons · the network index uses 101px as a reading target, not a button */
/* Hallmark · waive 79 · full-bleed network hero, the lower field is the topology video · the space is the network visual, not loose copy */
:root {
  --bg: #0a0d0c;
  --surface: #111614;
  --surface-2: #151c19;
  --paper: #f1eee5;
  --ink: #f0eee7;
  --muted: #9da59e;
  --line: #2d3531;
  --accent: #68d8e5;
  --dark: #050a09;
  --on-accent: #06100f;
  --thumb-bg: #0c1413;
  --preview-bg: #0b1412;
  --shade-54: rgba(3, 9, 8, .62);
  --shade-08: rgba(3, 9, 8, .18);
  --shade-24: rgba(3, 9, 8, .30);
  --shade-80: rgba(3, 9, 8, .88);
  --paper-24: rgba(241, 238, 229, .24);
  --paper-40: rgba(241, 238, 229, .40);
  --paper-42: rgba(241, 238, 229, .42);
  --paper-45: rgba(241, 238, 229, .45);
  --paper-50: rgba(241, 238, 229, .50);
  --paper-52: rgba(241, 238, 229, .52);
  --paper-58: rgba(241, 238, 229, .58);
  --paper-62: rgba(241, 238, 229, .62);
  --paper-65: rgba(241, 238, 229, .65);
  --paper-70: rgba(241, 238, 229, .70);
  --paper-72: rgba(241, 238, 229, .72);
  --paper-76: rgba(241, 238, 229, .76);
  --paper-80: rgba(241, 238, 229, .80);
  --row-hover: rgba(104, 216, 229, .07);
  --dialog-backdrop: rgba(2, 7, 6, .88);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --gutter: clamp(1rem, 3.5vw, 3.5rem);
  --max: 1600px;
  --column-gap: clamp(1rem, 2.5vw, 2rem);
}

* { box-sizing: border-box; }
html { font-size: clamp(16px, 1vw, 17px); overflow-x: clip; scroll-behavior: smooth; color-scheme: dark; scrollbar-color: var(--line) var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--column-gap);
  padding: 1.25rem var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand { display: grid; gap: .25rem; }
.brand__name { font-size: 1.25rem; line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.brand__meta { color: var(--muted); font-family: var(--sans); font-size: .44rem; letter-spacing: 0; }
.menu { display: flex; gap: 1.4rem; padding-top: .22rem; }
.menu a { color: var(--muted); font-size: .7rem; line-height: 1.4; }
.menu a:hover { color: var(--ink); }
.header-note { color: var(--muted); font-family: var(--sans); font-size: .44rem; line-height: 1.5; letter-spacing: 0; text-align: right; white-space: nowrap; }

.hero-track { height: 190svh; }
.hero {
  color: var(--paper);
  position: sticky;
  top: 0;
  height: 76svh;
  margin-top: 24vh;
  overflow: clip;
  background: var(--dark);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; transition: transform .12s linear; }
.hero-interaction {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--shade-54) 0%, var(--shade-08) 34%, var(--shade-24) 66%, var(--shade-80) 100%);
}
.hero-meta {
  position: absolute;
  z-index: 2;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 5.8rem;
  color: var(--paper-58);
  font-family: var(--sans);
  font-size: .43rem;
  line-height: 1.6;
  letter-spacing: 0;
}
.hero-meta span:last-child { text-align: right; }
.hero-title { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); top: 29vh; color: var(--paper); }
.hero h1 { max-width: 15ch; font-size: clamp(2.7rem, 5.3vw, 6.3rem); line-height: .94; font-weight: 500; letter-spacing: -.06em; text-wrap: balance; }
.hero .italic { color: var(--paper-62); font-family: var(--serif); font-style: italic; font-weight: 400; }
.hero-footer { position: absolute; z-index: 3; right: var(--gutter); bottom: 2rem; display: flex; justify-content: flex-end; }
.cta { display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; max-width: 20rem; text-align: right; }
.cta-copy { color: var(--paper-72); font-family: var(--sans); font-size: .48rem; line-height: 1.55; letter-spacing: 0; }
.view-work {
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1.6rem;
  border: 1px solid var(--paper-76);
  border-radius: 999px;
  color: var(--paper);
  font-size: .56rem;
  letter-spacing: 0;
  transition: background-color .18s ease, color .18s ease;
}
.view-work:hover { background: var(--paper); color: var(--bg); }
.feature {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  bottom: 2rem;
  display: flex;
  align-items: flex-end;
  gap: .8rem;
  color: var(--paper);
  opacity: 0;
  pointer-events: none;
}
.feature-thumb { width: 6rem; height: 6rem; flex: 0 0 auto; overflow: clip; background: var(--thumb-bg); }
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feature-info { max-width: 18rem; }
.feature-info h2 { margin-bottom: .4rem; font-size: 1.05rem; line-height: 1.15; font-weight: 500; }
.feature-info p { margin-bottom: .6rem; color: var(--paper-65); font-family: var(--sans); font-size: .42rem; line-height: 1.5; }
.feature-info span { color: var(--paper-80); font-family: var(--sans); font-size: .44rem; letter-spacing: 0; }
.add-btn {
  position: absolute;
  z-index: 4;
  bottom: 2rem;
  left: var(--gutter);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--bg);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: transform .15s ease;
}
.add-btn span { font-size: 1.35rem; line-height: 1; }
.add-btn:hover { transform: rotate(90deg); }
.add-btn:active { transform: scale(.95); }

.section { padding: clamp(4rem, 8vw, 8rem) var(--gutter); border-top: 1px solid var(--line); scroll-margin-top: 4.5rem; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .5fr); gap: 2rem; align-items: end; margin-bottom: clamp(2.2rem, 5vw, 4rem); }
.section h2 { max-width: 14ch; font-size: clamp(2.5rem, 5vw, 5.5rem); line-height: .94; font-weight: 500; letter-spacing: -.06em; text-wrap: balance; }
.section-head p { max-width: 32ch; color: var(--muted); font-size: .76rem; line-height: 1.8; }

.project-index { position: relative; border-top: 1px solid var(--ink); }
.project-row {
  white-space: nowrap;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto 2rem;
  gap: 1rem;
  align-items: baseline;
  width: 100%;
  padding: 1.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s ease;
}
.project-row:hover, .project-row:focus-visible { background: var(--row-hover);  }
.project-no { color: var(--muted); font-family: var(--sans); font-size: .48rem; }
.project-title { font-size: clamp(2rem, 4vw, 4.4rem); line-height: .9; font-weight: 500; letter-spacing: -.055em; }
.project-meta { color: var(--muted); font-family: var(--sans); font-size: .48rem; letter-spacing: 0; text-align: right; }
.project-arrow { color: var(--accent); font-size: 1.1rem; justify-self: end; transform: translateY(-.15rem); transition: transform .2s ease; }
.project-row:hover .project-arrow { transform: translate(.2rem, -.35rem); }
.project-row:hover .project-title { color: var(--accent); }
.project-preview {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 21rem;
  height: 13.5rem;
  overflow: clip;
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0) rotate(-2deg);
  background: var(--preview-bg);
}

.project-preview img { width: 100%; height: 100%; object-fit: cover; }
.project-preview span { position: absolute; right: .5rem; bottom: .5rem; padding: .25rem .35rem; background: var(--paper); color: var(--bg); font-family: var(--sans); font-size: .65rem; letter-spacing: 0; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .42fr); gap: var(--column-gap); align-items: end; }
.about-copy h2 { max-width: 12ch; font-size: clamp(2.8rem, 5.4vw, 6rem); line-height: .92; font-weight: 500; letter-spacing: -.06em; }
.about-copy .italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.about-copy > p { max-width: 42ch; margin-top: 1.2rem; color: var(--muted); font-size: .8rem; line-height: 1.9; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.facts span { padding: .32rem .5rem; border: 1px solid var(--line); color: var(--muted); font-family: var(--sans); font-size: .42rem; letter-spacing: 0; }
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; }
.portrait figcaption { padding-top: .55rem; color: var(--muted); font-family: var(--sans); font-size: .4rem; letter-spacing: 0; }

.experience-list { border-top: 1px solid var(--ink); }
.experience-row { display: grid; grid-template-columns: 8rem minmax(0, .7fr) minmax(0, .6fr) minmax(0, .9fr); gap: var(--column-gap); align-items: baseline; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.experience-row > span { color: var(--muted); font-family: var(--sans); font-size: .46rem; }
.experience-row h3 { font-size: clamp(1.15rem, 2vw, 1.7rem); font-weight: 500; letter-spacing: -.03em; }
.experience-row p { color: var(--muted); font-size: .72rem; }
.experience-row em { color: var(--muted); font-size: .7rem; font-style: normal; }

.service-list { border-top: 1px solid var(--ink); }
.service-row { display: grid; grid-template-columns: 3rem minmax(0, .65fr) minmax(0, 1fr); gap: var(--column-gap); align-items: baseline; padding: 1.45rem 0; border-bottom: 1px solid var(--line); }
.service-row > span { color: var(--muted); font-family: var(--sans); font-size: .48rem; }
.service-row h3 { font-size: clamp(1.3rem, 2.4vw, 2.1rem); font-weight: 500; letter-spacing: -.04em; }
.service-row p { max-width: 40ch; color: var(--muted); font-size: .74rem; line-height: 1.75; }

.contact { padding: clamp(4rem, 9vw, 8rem) var(--gutter) clamp(4rem, 8vw, 7.5rem); background: var(--dark); color: var(--paper); scroll-margin-top: 0; }
.contact-note { color: var(--paper-52); font-family: var(--sans); font-size: .46rem; letter-spacing: 0; }
.contact h2 { margin-top: 1.3rem; font-family: var(--serif); font-size: clamp(3rem, 8vw, 9rem); line-height: .86; font-weight: 500; letter-spacing: -.07em; }
.contact .italic { color: var(--paper-45); font-family: var(--serif); font-style: italic; font-weight: 400; }
.contact-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-top: clamp(2.5rem, 6vw, 5rem); padding-top: 1.2rem; border-top: 1px solid var(--paper-24); }
.contact-row > a { font-size: clamp(1.2rem, 2.7vw, 2.4rem); border-bottom: 1px solid var(--paper-40); padding-bottom: .2rem; }
.contact-row > div { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--paper-50); font-family: var(--sans); font-size: .42rem; letter-spacing: 0; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding: 1.1rem var(--gutter) 1.6rem; background: var(--dark); color: var(--paper-42); font-family: var(--sans); font-size: .4rem; letter-spacing: 0; }

.project-dialog {
  color: var(--ink);
  background: var(--surface);
  width: 100%;
  max-width: 64rem;
  margin: auto;
  max-height: calc(100vh - 2rem);
  padding: 2.2rem;
  border: 1px solid var(--line);
  overflow: auto;
}
.project-dialog::backdrop { background: var(--dialog-backdrop); }
.dialog-close { position: absolute; right: 1.2rem; top: 1rem; border: 0; background: transparent; color: var(--muted); font-family: var(--sans); font-size: .5rem; cursor: pointer; }
.dialog-meta { color: var(--accent); font-family: var(--sans); font-size: .46rem; letter-spacing: 0; }
.project-dialog h2 { margin-top: .7rem; font-size: clamp(2.4rem, 6vw, 5rem); line-height: .92; font-weight: 500; letter-spacing: -.06em; }
.dialog-summary { max-width: 48ch; margin-top: 1rem; color: var(--ink); font-size: .9rem; line-height: 1.7; }
.dialog-detail { max-width: 60ch; margin-top: 1rem; color: var(--muted); font-size: .8rem; line-height: 1.85; }
.dialog-media { margin-top: 1.5rem; overflow: clip; }
.dialog-media > img { width: 100%; max-height: 34rem; object-fit: cover; }
.dialog-gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--column-gap); margin-top: var(--column-gap); }
.dialog-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; cursor: zoom-in; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; gap: .6rem; padding: .9rem 1rem; }
  .menu { grid-column: 2; grid-row: 1; flex-wrap: wrap; justify-content: flex-end; gap: .2rem .7rem; max-width: 11rem; padding-top: 0; }
  .header-note { display: none; }
  .hero { height: 74svh; margin-top: 26vh; }
  .hero-title { top: 28vh; }
  .hero-footer { bottom: 1rem; }
  .feature { left: 1rem; bottom: 1rem; }
  .add-btn { bottom: 1rem; left: 1rem; }
  .section { padding: 3.5rem 1rem; }
  .section-head { grid-template-columns: 1fr; gap: .8rem; }
  .project-row { white-space: normal; grid-template-columns: 1.2rem 1fr auto; gap: .6rem; }
  .project-meta { grid-column: 2; text-align: left; }
  .project-arrow { grid-column: 3; grid-row: 1; }
  .project-preview { display: none; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 17rem; margin-top: 1.5rem; }
  .experience-row { grid-template-columns: 1fr 1fr; gap: .4rem 1rem; }
  .experience-row em { grid-column: 1 / -1; }
  .service-row { grid-template-columns: 2rem 1fr; }
  .service-row p { grid-column: 2; }
  .contact-row { flex-direction: column; align-items: flex-start; }
  .project-dialog { padding: 1.3rem; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 2.6rem; }
  .hero-meta { font-size: .38rem; }
  .cta { max-width: 15rem; }
  .cta-copy { font-size: .4rem; }
  .feature p { display: none; }
  .feature-info { max-width: 9rem; }
  .feature-info h2 { font-size: .9rem; }
  .project-title { font-size: 2rem; }
  .experience-row { grid-template-columns: 1fr; }
  .experience-row em { grid-column: 1; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}


/* The preview image already carries its own OPEN tag; keep the pointer clean. */


.dialog-close:focus:not(:focus-visible) { outline: none; }


@media (hover: none), (pointer: coarse) {
  .hero-interaction { display: none; }
}
/* Hallmark: label voice is body face, sentence case, untracked. */
.brand__meta,
.header-note,
.menu a,
.hero-meta,
.cta-copy,
.feature-info p,
.feature-info span,
.project-no,
.project-meta,
.facts span,
.portrait figcaption,
.experience-row > span,
.service-row > span,
.contact-note,
.contact-row > div,
.dialog-meta,
.dialog-close,
.footer {
  font-family: var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.project-meta,
.feature-info span,
.facts span,
.portrait figcaption,
.contact-note,
.dialog-meta,
.footer { font-size: .72rem; }
.brand__meta,
.header-note,
.menu a,
.hero-meta,
.cta-copy,
.feature-info p,
.project-no,
.experience-row > span,
.service-row > span,
.dialog-close { font-size: .76rem; }
.section-head p,
.work-copy p,
.about-copy > p,
.service-row p,
.experience-row p,
.experience-row em { font-size: 1rem; }
.dialog-summary { font-size: 1rem; }
.dialog-detail { font-size: .95rem; }
button:disabled,
a[aria-disabled="true"] { opacity: .4; pointer-events: none; cursor: not-allowed; }
.site-header, main, .footer { width: 100%; max-width: var(--max); margin-inline: auto; }

/* Hallmark render pass: functional text at readable sizes. */
.cta-copy,
.view-work { font-size: .8rem; }
.feature-info p { font-size: .78rem; }
.feature-info span,
.project-meta,
.project-no,
.hero-meta,
.brand__meta,
.header-note,
.facts span,
.portrait figcaption,
.experience-row > span,
.service-row > span,
.contact-note,
.contact-row > div,
.dialog-meta,
.dialog-close,
.footer { font-size: .72rem; }
.menu a { font-size: .82rem; }
.section-head p,
.work-copy p,
.about-copy > p,
.service-row p,
.experience-row p,
.experience-row em { font-size: 1rem; }
.dialog-summary { font-size: 1rem; }
.dialog-detail { font-size: .95rem; }

.contact-note { font-size: .8rem; }
