/* Chris Fortunato Design — site styles
   Colours, type and widths are tokens at the top. Change them here. */

:root {
  --bg: #0f0f0f;          /* page background (same as the old site) */
  --bg-2: #181818;        /* cards, panels */
  --ink: #f4f4f2;         /* main text */
  --muted: #9a9a96;       /* secondary text */
  --rule: #2a2a2a;        /* dividers */
  --accent: #ff7a3d;      /* the orange from the logo */
  --trace: #5fe08a;       /* the green circuit traces from the logo */

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
p + p { margin-top: 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.02; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; color: var(--muted); font-size: 0.875rem; letter-spacing: 0.06em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }

/* --- header ------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(15,15,15,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { text-decoration: none; text-transform: uppercase; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a { text-decoration: none; text-transform: uppercase; color: var(--muted); font-size: 0.95rem; transition: color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* --- hero -------------------------------------------------------------- */
.hero { padding: clamp(48px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(3.25rem, 11vw, 9rem); }
.hero h1 span { color: var(--accent); }
.hero .tag { font-size: clamp(1.125rem, 2vw, 1.375rem); margin-top: 18px; }
.intro { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px; padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.intro p { font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.4; max-width: 34ch; }
.traces { position: absolute; right: -40px; top: 0; width: min(560px, 60vw); opacity: 0.22; pointer-events: none; }

/* --- section headings ----------------------------------------------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-title { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: clamp(28px, 4vw, 48px); }

/* --- project grid ------------------------------------------------------ */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.card a { display: block; text-decoration: none; }
.card .thumb { aspect-ratio: 4 / 3; background: var(--bg-2); overflow: hidden; border-radius: 4px; position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card a:hover .thumb img { transform: scale(1.035); }
.card .view { position: absolute; left: 14px; bottom: 14px; background: var(--ink); color: var(--bg); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; padding: 6px 10px; border-radius: 3px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.card a:hover .view, .card a:focus-visible .view { opacity: 1; transform: none; }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.card h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
.card .client { color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
.card .new { color: var(--accent); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-left: 8px; vertical-align: middle; }

/* --- about ------------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about img { border-radius: 4px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about .bio p { font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.55; max-width: 40ch; }
.about .bio a { text-decoration-color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: clamp(36px, 5vw, 56px); }
.columns h3 { font-size: 0.95rem; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 14px; }
.columns ul { list-style: none; margin: 0; padding: 0; }
.columns li { padding: 9px 0; border-top: 1px solid var(--rule); }
.job { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; }
.job .co { color: var(--muted); font-size: 0.95rem; grid-column: 1; }
.job .yr { color: var(--muted); font-size: 0.95rem; grid-column: 2; grid-row: 1; font-variant-numeric: tabular-nums; }

/* --- contact + footer ------------------------------------------------ */
.contact { border-top: 1px solid var(--rule); }
.contact .lead { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.contact .lead p { color: var(--muted); max-width: 46ch; }
.contact .lead p + p { margin-top: 0; }
.email { display: inline-block; margin-top: clamp(32px, 5vw, 56px); font-size: clamp(1.25rem, 4.6vw, 3.5rem); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; text-decoration: none; line-height: 1.1; border-bottom: 3px solid var(--accent); padding-bottom: 6px; }
.email:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { text-decoration: none; text-transform: uppercase; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .llc { text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.site-footer .llc img { width: 34px; height: 34px; border-radius: 3px; }

/* --- project page ------------------------------------------------------ */
.project-head { padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); }
.project-head .back { display: inline-block; margin-bottom: 24px; text-decoration: none; color: var(--muted); text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.04em; }
.project-head .back:hover { color: var(--ink); }
.project-head h1 { font-size: clamp(2.5rem, 8vw, 6.5rem); }
.project-body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px clamp(32px, 6vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.project-body .desc p { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 62ch; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; align-self: start; }
.facts dt, .facts dd { margin: 0; padding: 10px 0; border-top: 1px solid var(--rule); }
.facts dt { color: var(--muted); padding-right: 24px; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; padding-top: 12px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); padding: clamp(40px, 6vw, 72px) 0; }
.gallery figure { margin: 0; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 32px 0 clamp(56px, 8vw, 96px); }
.pager a { text-decoration: none; display: block; padding: 20px 0; border-top: 1px solid var(--rule); }
.pager a:hover h2 { color: var(--accent); }
.pager .next { text-align: right; }
.pager h2 { font-size: clamp(1.25rem, 3vw, 2rem); margin-top: 6px; transition: color .15s; }

/* --- printer about page ---------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.feature-grid > div { border-top: 1px solid var(--rule); padding: 22px 0 28px; }
.feature-grid h3 { font-size: 1.125rem; margin-bottom: 10px; }
.feature-grid p { color: var(--muted); max-width: 48ch; }
.fits { list-style: none; margin: 0; padding: 0; }
.fits li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 32px; padding: 18px 0; border-top: 1px solid var(--rule); }
.fits strong { text-transform: uppercase; font-size: 1rem; }
.fits span { color: var(--muted); }
.specs { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(24px, 4vw, 56px); }
.specs li { break-inside: avoid; padding: 12px 0; border-top: 1px solid var(--rule); color: var(--muted); }
.specs b { color: var(--ink); font-weight: 600; }
.pitch { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 6vw, 96px); }
.pitch .big { font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.4; }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 4px; font-weight: 600; text-decoration: none; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.04em; border: 1px solid var(--ink); transition: background .15s, color .15s; }
.button.primary { background: var(--accent); border-color: var(--accent); color: #111; }
.button.primary:hover { background: #ff925f; }
.button.ghost:hover { background: var(--ink); color: var(--bg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.printer-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 6vw, 80px); align-items: end; padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.printer-hero h1 { font-size: clamp(2.5rem, 7vw, 5.75rem); }
.printer-hero .sub { font-size: clamp(1.125rem, 2vw, 1.5rem); margin-top: 18px; color: var(--muted); }
.printer-hero figure { margin: 0; }
.printer-hero figcaption { color: var(--muted); font-size: 0.875rem; margin-top: 10px; font-style: italic; }
.printer-hero img { border-radius: 4px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* --- responsive ------------------------------------------------------- */
@media (max-width: 820px) {
  .grid, .gallery, .feature-grid { grid-template-columns: 1fr; }
  .gallery figure.wide { grid-column: auto; }
  .about, .project-body, .intro, .contact .lead, .pitch, .printer-hero { grid-template-columns: 1fr; }
  .about img { max-width: 420px; }
  .fits li { grid-template-columns: 1fr; }
  .specs { columns: 1; }
}
@media (max-width: 520px) {
  .columns { grid-template-columns: 1fr; }
  .nav { gap: 4px 16px; }
  .nav a { font-size: 0.85rem; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card .thumb img, .card .view { transition: none; }
}
@media (max-width: 520px) { .site-header { position: static; } }
