/* NEVO Designs, portfolio rev 2.1. Monochrome technical drafting.
   No colour anywhere. Hierarchy comes from type scale, weight, rule
   thickness, and space. Sections alternate dark and light down the page. */

:root {
  /* surfaces */
  --black: #000000;
  --panel-dark: #0A0A0A;
  --paper: #FFFFFF;
  --paper-warm: #F2F0EC;

  /* grey ramp, used deliberately */
  --g900: #111111;
  --g700: #444444;
  --g500: #777777;
  --g300: #AAAAAA;
  --g100: #DDDDDD;

  /* on-dark equivalents */
  --d-ink: #FFFFFF;
  --d-body: #EEEEEE;
  --d-label: #999999;
  --d-dim: #555555;
  --d-rule: #333333;

  --mono: "JetBrains Mono", ui-monospace, "Courier New", monospace;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --pad: clamp(20px, 5vw, 76px);
  --measure: 62ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }

body {
  background: var(--black);
  color: var(--d-ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--d-ink); color: var(--black); }

img, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

a:focus-visible, button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ---------- type scale ---------- */

h1, h2, h3 { font-family: var(--display); font-weight: 700; }

/* every label, number, tag, date, caption */
.eyebrow, .section-label, .sheet-tag, .sheet-tags, .comp-title, .status-line,
.tl-tag, .lg-label, .lg-value, .mono-cell, .cta-note, .footnote, .copyright,
.title-block, .brand, .btn, .services th, .dimline i, .sheet-links {
  font-family: var(--mono);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--paper);
  color: var(--black);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  padding: 12px 18px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- inverted bands ---------- */
/* Alternation is the device that stops monochrome reading flat:
   hero dark, about light, projects dark, studio light, timeline dark,
   contact light, title block dark. Hero and projects both land on true
   black, separated by a light band, so each hits fresh. */

section { padding: clamp(64px, 10vw, 132px) var(--pad); position: relative; }
.section-inner { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }

/* dark bands */
.hero, #projects, #timeline {
  background: var(--black);
  color: var(--d-ink);
  border-top: 2px solid var(--d-rule);
}
#timeline { background: var(--panel-dark); }
.hero { border-top: none; }

/* light bands */
#about, #contact {
  background: var(--paper-warm);
  color: var(--g900);
  border-top: 2px solid var(--g100);
}
#studio {
  background: var(--paper);
  color: var(--g900);
  border-top: 2px solid var(--g100);
}

/* fine drafting grid, quiet on light, denser in projects */
.hero::before, #projects::before, #timeline::before,
#about::before, #studio::before, #contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(currentColor 0.5px, transparent 0.5px),
    linear-gradient(90deg, currentColor 0.5px, transparent 0.5px);
  background-size: 64px 64px;
  opacity: 0.07;
}
#projects::before { background-size: 32px 32px; opacity: 0.09; }
#about::before, #studio::before, #contact::before { opacity: 0.05; }

/* body copy colour per band */
.hero .support, #projects .section-intro, #timeline p { color: var(--d-body); }
#about .about-body p, #studio .section-intro, #contact .section-intro { color: var(--g700); }

/* ---------- rule weight as hierarchy ---------- */
/* 0.5px quiet divider, 1px standard, 2px section break. */

.section-label {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--g500);
  margin-bottom: 34px;
}
.hero .eyebrow, #projects .section-label, #timeline .section-label { color: var(--d-label); }
.section-label::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  background: currentColor;
  margin-top: 12px;
}

/* ---------- dimension lines, exactly three on the page ---------- */
/* 1. hero, under the headline   2. projects header   3. studio schedule */

.dimline {
  position: relative;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  margin: 30px 0 26px;
}
.dimline::before, .dimline::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 1px;
  height: 11px;
  background: currentColor;
}
.dimline::before { left: 0; }
.dimline::after { right: 0; }
.dimline i {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  padding: 0 12px;
  white-space: nowrap;
}
.hero .dimline i { background: var(--black); color: var(--d-label); }
#projects .dimline i { background: var(--black); color: var(--d-label); }
#studio .dimline i { background: var(--paper); color: var(--g500); }
.hero .dimline { max-width: 760px; }
#studio .dimline { margin-bottom: 30px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 15px var(--pad);
  background: var(--black);
  border-bottom: 1px solid var(--d-rule);
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 12px; letter-spacing: 0.2em; color: var(--d-ink); }
.brand img { filter: grayscale(100%) brightness(2); }
.brand:hover { text-decoration: none; }
.topbar nav { display: flex; flex-wrap: wrap; gap: clamp(10px, 2.2vw, 30px); }
.topbar nav a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--d-label); }
.topbar nav a:hover { color: var(--d-ink); text-decoration: none; }

/* ---------- hero ---------- */
.hero { min-height: calc(100svh - 56px); display: flex; align-items: center; }
.eyebrow { font-size: 11.5px; letter-spacing: 0.22em; margin-bottom: 30px; }
.hero h1 {
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  max-width: 15ch;
}
.subline { font-family: var(--display); font-weight: 500; font-size: clamp(19px, 2.6vw, 30px); letter-spacing: -0.01em; max-width: 30ch; margin-bottom: 18px; }
.support { max-width: var(--measure); margin-bottom: 40px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn { font-size: 12px; letter-spacing: 0.16em; padding: 15px 30px; border: 1px solid currentColor; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--d-ink); color: var(--black); }
.btn-primary:hover { background: var(--g100); }
.btn-ghost { color: var(--d-ink); }
.btn-ghost:hover { background: var(--d-rule); }
.cta-note { font-size: 11px; letter-spacing: 0.14em; color: var(--d-label); }

/* ---------- about ---------- */
.pull-quote { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 3.8vw, 44px); line-height: 1.12; letter-spacing: -0.02em; max-width: 24ch; margin-bottom: 44px; }
.about-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: clamp(24px,4vw,58px); align-items: start; margin-bottom: 42px; }
.about-body p { margin-bottom: 18px; max-width: var(--measure); }
.about-photo { border: 1px solid var(--g900); padding: 9px; background: var(--paper); }
.about-photo img { filter: grayscale(100%) contrast(1.18); }
.comp-block { border: 1px solid var(--g900); background: var(--paper); padding: 28px 32px; margin-bottom: 32px; }
.comp-title { font-size: 11px; letter-spacing: 0.22em; color: var(--g500); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--g100); }
.comp-block ul { list-style: none; }
.comp-block li { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--g700); padding: 12px 0 12px 24px; position: relative; border-bottom: 0.5px solid var(--g100); }
.comp-block li:last-child { border-bottom: none; }
.comp-block li::before { content: "+"; position: absolute; left: 0; color: var(--g300); }
.comp-block a { text-decoration: underline; text-underline-offset: 3px; }
.status-line { font-size: 11.5px; letter-spacing: 0.14em; color: var(--g500); }

/* ---------- projects, drawing sheets ---------- */
.section-intro { max-width: var(--measure); margin-bottom: 6px; }
.sheet {
  position: relative;
  border: 1px solid var(--d-rule);
  background: var(--panel-dark);
  padding: 32px 36px 30px;
  margin-bottom: 26px;
}
.sheet::before { content: ""; position: absolute; inset: 7px; border: 0.5px solid var(--d-rule); pointer-events: none; }
.sheet > * { position: relative; }
.sheet-head { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.sheet-tag { font-size: 11px; letter-spacing: 0.18em; color: var(--d-ink); border: 1px solid var(--d-rule); padding: 7px 13px; white-space: nowrap; }
/* demoted to a plain hairline so tick terminated lines stay rare */
.sheet-ticks { flex: 1; height: 0.5px; background: var(--d-rule); }
.sheet h3 { font-size: clamp(21px, 2.9vw, 30px); letter-spacing: -0.015em; margin-bottom: 14px; }
.sheet-desc { color: var(--d-body); max-width: 70ch; margin-bottom: 20px; }
.sheet-tags { font-size: 11.5px; letter-spacing: 0.16em; color: var(--d-label); padding-top: 16px; border-top: 0.5px solid var(--d-rule); margin-bottom: 12px; }
.sheet-links { font-size: 12.5px; letter-spacing: 0.06em; }
.sheet-links a { text-decoration: underline; text-underline-offset: 4px; }
/* --d-dim is 2.66:1 on the sheet panel, below WCAG AA. These two carry real
   information (submission status, deployment state), so they use --d-label at
   6.95:1 instead of the decorative dim tone. */
.sheet-links-dim { color: var(--d-label); }
/* deployment stamp, read like a drawing status box: only LIVE is inverted, so a
   verified running deployment is the one thing that draws the eye */
.sheet-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 6px 11px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.sheet-status-live { background: var(--d-ink); color: var(--black); border-color: var(--d-ink); }
.sheet-status-dim { color: var(--d-label); }
.sheet-note { font-size: 11.5px; letter-spacing: 0.06em; color: var(--d-label); margin-top: 9px; }

/* ---------- studio ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--g900); margin-bottom: 36px; }
.services { width: 100%; min-width: 640px; border-collapse: collapse; }
.services th { font-size: 10.5px; font-weight: 400; letter-spacing: 0.2em; color: var(--g500); text-align: left; padding: 16px 22px; border-bottom: 2px solid var(--g900); }
.services td { padding: 20px 22px; border-bottom: 0.5px solid var(--g100); vertical-align: top; }
.services tbody tr:last-child td { border-bottom: none; }
.services td:nth-child(2) { font-family: var(--display); font-weight: 500; white-space: nowrap; }
.services td:nth-child(3) { color: var(--g700); }
.mono-cell { font-size: 12.5px; letter-spacing: 0.08em; color: var(--g900); white-space: nowrap; }
.studio-cta { align-items: center; margin-bottom: 26px; }
#studio .btn-primary { background: var(--g900); color: var(--paper); }
#studio .btn-primary:hover { background: var(--black); }
#studio .btn-ghost { color: var(--g900); }
#studio .btn-ghost:hover { background: var(--paper-warm); }
#studio .cta-note { color: var(--g500); }
.footnote { font-size: 11.5px; letter-spacing: 0.08em; color: var(--g500); }
.footnote a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- timeline ---------- */
.timeline { list-style: none; border-left: 1px solid var(--d-rule); }
.timeline li { position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 0 0 32px 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 8px; width: 7px; height: 7px; background: var(--d-ink); }
.tl-tag { font-size: 11px; letter-spacing: 0.16em; color: var(--d-label); padding-top: 3px; }
.tl-tag em { display: inline-block; font-style: normal; color: var(--d-ink); border: 1px solid var(--d-rule); padding: 2px 8px; margin-left: 8px; font-size: 9.5px; letter-spacing: 0.14em; }
.tl-tag em:only-child { margin-left: 0; }
.timeline p { color: var(--d-body); max-width: var(--measure); }
.timeline strong { color: var(--d-ink); font-weight: 600; }

/* ---------- contact ---------- */
.contact-headline { font-size: clamp(30px, 5.2vw, 60px); letter-spacing: -0.03em; margin-bottom: 18px; }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.link-grid a { display: flex; flex-direction: column; gap: 9px; border: 1px solid var(--g900); background: var(--paper); padding: 22px 24px; transition: background 0.15s ease; }
.link-grid a:hover { text-decoration: none; background: var(--g900); }
.link-grid a:hover .lg-label, .link-grid a:hover .lg-value { color: var(--paper); }
.lg-label { font-size: 10px; letter-spacing: 0.24em; color: var(--g500); }
.lg-value { font-size: 13px; letter-spacing: 0.04em; color: var(--g900); word-break: break-all; }

/* ---------- title block footer ---------- */
footer { background: var(--black); border-top: 2px solid var(--d-rule); padding: 52px var(--pad) 58px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; max-width: 1120px; margin: 0 auto; }
.copyright { font-size: 11px; letter-spacing: 0.14em; color: var(--d-dim); }
.title-block { border-collapse: collapse; border: 1px solid var(--d-ink); margin-left: auto; }
.title-block td { border: 0.5px solid var(--d-rule); font-size: 11px; letter-spacing: 0.1em; color: var(--d-ink); padding: 11px 20px 10px; min-width: 178px; }
.title-block td span { display: block; font-size: 9px; letter-spacing: 0.22em; color: var(--d-label); margin-bottom: 5px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; }
  .link-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .footer-inner { flex-direction: column; align-items: stretch; }
  .title-block { margin-left: 0; width: 100%; }
  .title-block td { min-width: 0; }
  .sheet { padding: 24px 20px; }
  /* the sheet tag and the status stamp are both nowrap, so on a narrow sheet let
     the head wrap rather than let the stamp run past the border */
  .sheet-head { gap: 12px; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .link-grid { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: -0.02em; }
  .dimline i { font-size: 9.5px; letter-spacing: 0.14em; }
}
@media (max-width: 380px) {
  .sheet-head { flex-wrap: wrap; }
  .sheet-ticks { display: none; }
}

/* ---------- reveal, motion respected ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* print: the drawing, on paper */
@media print {
  .hero, #projects, #timeline, footer, .topbar { background: #fff; color: #000; }
  .sheet, .title-block td { border-color: #000; }
  section::before { display: none; }
}
