/* Condren Digital — product showcase 2026 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #050607;
  --ink-2: #0c0e11;
  --panel: #12151a;
  --line: rgba(255, 245, 230, 0.12);
  --paper: #f4efe6;
  --muted: #9a9388;
  --gold: #e8c27a;
  --gold-hot: #f0d59a;
  --live: #7dffa3;
  --display: "Source Sans 3", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --frame: min(1120px, calc(100% - 40px));
}

html { scroll-behavior: smooth; }
body {
  color: var(--paper);
  background: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.frame { width: var(--frame); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 14px; background: var(--gold); color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 80;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
  background: rgba(5, 6, 7, 0.82);
  backdrop-filter: blur(16px);
  border-color: var(--line);
}
.topbar-inner {
  min-height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.03em; }
.logo-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--gold); color: var(--ink);
  font-family: var(--display); font-size: 13px; font-weight: 800;
  border-radius: 9px;
}
.logo-word { font-size: 15px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; font-weight: 600; color: rgba(244,239,230,.78); }
.nav a:hover { color: var(--paper); }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; z-index: 2; }
.menu-btn span:not(.sr-only) {
  display: block; height: 2px; margin: 7px 0; background: var(--paper);
  transition: transform .25s, opacity .25s;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: visible;
}
.hero-media {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  transform: scale(1.06);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,6,7,.35) 0%, rgba(5,6,7,.15) 35%, rgba(5,6,7,.88) 78%, var(--ink) 100%),
    linear-gradient(90deg, rgba(5,6,7,.75) 0%, rgba(5,6,7,.25) 55%, rgba(5,6,7,.45) 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: .18; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-copy {
  position: relative; z-index: 2;
  padding: 0 0 clamp(72px, 12vh, 120px);
  max-width: 920px;
}
.hero-kicker {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 12px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
}
.hero-brand {
  font-family: var(--display);
  font-size: clamp(56px, 10vw, 104px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  padding-bottom: 0.08em;
  overflow: visible;
  text-wrap: balance;
}
.hero-line {
  max-width: 28ch;
  margin: 28px 0 36px;
  color: rgba(244,239,230,.78);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.4;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 22px;
  border: 1px solid rgba(244,239,230,.35);
  border-radius: 999px;
  font-size: 14px; font-weight: 700;
  transition: background .2s, border-color .2s, transform .2s;
}
.hero-cta:hover {
  background: var(--gold); color: var(--ink); border-color: var(--gold);
  transform: translateY(-2px);
}
.hero-scroll {
  position: absolute; right: clamp(20px, 4vw, 48px); bottom: 40px; z-index: 2;
  writing-mode: vertical-rl; transform: rotate(180deg);
  color: var(--muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0,0,0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  padding: 18px 0;
}
.marquee-track {
  display: flex; gap: 48px; width: max-content;
  animation: marquee 42s linear infinite;
  font-family: var(--display);
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: rgba(244,239,230,.45);
}
.marquee-track span::after {
  content: "·";
  margin-left: 48px;
  color: var(--gold);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Work */
.work { padding: clamp(72px, 12vw, 120px) 0 40px; }
.work-head { margin-bottom: clamp(40px, 7vw, 72px); }
.section-kicker {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
}
.work-head h2,
.about h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.03em;
  padding-bottom: 0.06em;
  overflow: visible;
}
.work-head h2 em,
.about h2 em { color: var(--gold); font-style: normal; }

.work-list { display: grid; gap: 0; }
.work-item {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  width: var(--frame);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) 0;
  border-top: 1px solid var(--line);
}
.work-item:last-child { border-bottom: 1px solid var(--line); }

.work-visual {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  background: var(--panel);
  isolation: isolate;
}
.work-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .7s ease;
}
.work-visual:hover img,
.work-visual:focus-visible img { transform: scale(1.04); }
.work-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,6,7,.55));
  pointer-events: none;
}
.work-open {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  padding: 8px 12px;
  background: rgba(5,6,7,.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.work-visual.is-locked { cursor: default; }
.work-visual.is-locked:hover img { transform: none; }

.work-status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.work-status.live { color: var(--live); }
.work-status.live::before,
.work-status.pilot::before,
.work-status.hardware::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}
.work-status.pilot { color: var(--gold); }
.work-status.hardware { color: #8eb7ff; }
.work-text h3 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  padding-bottom: 0.12em;
  overflow: visible;
}
.work-text p:not(.work-status) {
  max-width: 34ch;
  color: var(--muted);
  font-size: 16px;
}

/* About */
.about {
  padding: clamp(80px, 12vw, 130px) 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(232,194,122,.1), transparent 35%),
    var(--ink-2);
  border-top: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 8vw, 100px);
  align-items: end;
}
.about-grid > div:last-child p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}
.text-link {
  color: var(--gold);
  font-weight: 700;
  border-bottom: 1px solid transparent;
}
.text-link:hover { border-color: var(--gold); }

/* Footer */
.site-foot {
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: #030405;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.foot-grid > div:first-child p {
  margin-top: 14px;
  max-width: 28ch;
  color: var(--muted);
  font-size: 14px;
}
.foot-label {
  margin-bottom: 14px;
  color: #6d675e;
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.foot-grid a {
  display: block;
  margin: 8px 0;
  color: rgba(244,239,230,.78);
  font-size: 14px;
}
.foot-grid a:hover { color: var(--gold); }
.foot-base {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #5c574f;
  font-size: 12px;
}

/* Reveal — visible by default; JS adds .reveal-ready then animates in */
[data-reveal] {
  opacity: 1;
  transform: none;
}
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .work-item { grid-template-columns: 1fr; gap: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --frame: min(1120px, calc(100% - 28px)); }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0;
    z-index: 90;
    display: flex; flex-direction: column; justify-content: center; gap: 28px;
    padding: 80px 32px;
    background: #050607;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s, visibility .28s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { font-size: 28px; font-family: var(--display); font-weight: 700; line-height: 1.25; }
  .menu-btn { z-index: 95; }
  .menu-btn.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-btn.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
  .hero-brand { font-size: clamp(48px, 14vw, 72px); }
  .hero-scroll { display: none; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img, .marquee-track { animation: none !important; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  [data-reveal],
  html.js [data-reveal] { opacity: 1; transform: none; }
}
