/* ============================================
   Novell
   ============================================ */

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

:root {
  --ground: #F5F3EF;
  --ink: #1C1B19;
  --mid: #6B6660;
  --muted: #A09A93;
  --rule: #E2DED7;
  --surface: #EDEAE4;
  --dark: #0F0E0C;
  --score: #C4963C;
  --pass: #3D7A4A;
  --fail: #B5453A;

  --font: 'Fraunces', Georgia, serif;
  --mono: 'DM Mono', 'Courier New', monospace;
  --page: 1120px;
  --gutter: clamp(24px, 6vw, 140px);
}

html { background: var(--dark); }
body { font-family: var(--font); font-variation-settings: 'WONK' 0, 'opsz' 14; color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.7; font-size: 17px; }
a { color: inherit; text-decoration: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 500; font-variation-settings: 'WONK' 1, 'opsz' 48; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em; }
.wrap { max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--mid { max-width: 760px; }

:focus-visible { outline: 2px solid var(--score); outline-offset: 3px; }

/* Reveals */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal[data-d="1"] { transition-delay: 0.15s; }
.js .reveal[data-d="2"] { transition-delay: 0.3s; }
.js .reveal[data-d="3"] { transition-delay: 0.45s; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal { opacity: 1; transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; font-family: var(--font); font-size: 16px; font-weight: 500; border-radius: 2px; transition: all 0.2s; font-variation-settings: 'WONK' 0, 'opsz' 14; }
.btn--light { background: var(--ground); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--dim { color: rgba(245,243,239,0.5); padding: 0; min-height: auto; }
.btn--dim:hover { color: rgba(245,243,239,0.8); }
.btn--dark { background: var(--ink); color: var(--ground); }
.btn--dark:hover { background: var(--mid); }

/* ============================================
   Nav
   ============================================ */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(15,14,12,0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background 0.3s; }
.nav.scrolled { background: rgba(15,14,12,0.96); }
.nav-inner { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: center; height: 60px; }
.nav-brand { font-size: 22px; font-weight: 600; font-variation-settings: 'WONK' 1, 'opsz' 22; color: var(--ground); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 400; color: rgba(245,243,239,0.5); transition: color 0.15s; }
.nav-links a:hover { color: var(--ground); }
.nav-cta { font-weight: 500 !important; color: var(--ink) !important; background: var(--ground); padding: 8px 16px; border-radius: 2px; }
.nav-cta:hover { background: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ground); margin: 5px auto; transition: 0.2s; }
.menu-overlay { display: none; position: fixed; inset: 0; z-index: 99; background: var(--dark); padding: 100px var(--gutter) 40px; }
.menu-overlay.open { display: flex; align-items: center; }
.menu-nav { display: flex; flex-direction: column; gap: 24px; }
.menu-nav a { font-size: 36px; font-weight: 500; font-variation-settings: 'WONK' 1, 'opsz' 36; color: var(--ground); }

@media (max-width: 768px) { .nav-links { display: none; } .nav-toggle { display: block; } }

/* ============================================
   HERO — dark, atmospheric
   ============================================ */
.hero {
  position: relative;
  background: var(--dark);
  background-image:
    radial-gradient(ellipse 900px 700px at 65% 45%, rgba(196,150,60,0.06), transparent 70%),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(180,69,58,0.04), transparent 60%);
  color: var(--ground);
  padding: clamp(60px, 12vw, 160px) 0 clamp(48px, 8vw, 100px);
}
.hero-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.hero-title {
  font-size: clamp(44px, 8.5vw, 108px);
  font-weight: 500;
  font-variation-settings: 'WONK' 1, 'opsz' 96;
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.hero-aside { align-self: end; padding-bottom: 6px; }
.hero-sub { font-size: 17px; line-height: 1.65; color: rgba(245,243,239,0.55); margin-bottom: 20px; max-width: 32ch; }
.hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-eval { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-title { font-size: clamp(40px, 10vw, 80px); }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   Eval card — glows on dark
   ============================================ */
.eval-card {
  max-width: 480px;
  background: rgba(245,243,239,0.04);
  border: 1px solid rgba(245,243,239,0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 100px rgba(196,150,60,0.07), 0 40px 80px -30px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.eval-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(245,243,239,0.06); }
.eval-title { color: rgba(245,243,239,0.6); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.eval-tag { color: rgba(245,243,239,0.3); font-size: 10px; border: 1px solid rgba(245,243,239,0.1); border-radius: 2px; padding: 2px 6px; }
.eval-url { display: flex; justify-content: space-between; gap: 12px; padding: 9px 16px; border-bottom: 1px solid rgba(245,243,239,0.06); }
.eval-url .mono { color: rgba(245,243,239,0.4); font-size: 12px; }
.eval-status { color: var(--pass) !important; }
.eval-status::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin-right: 6px; }
.eval-card.is-running .eval-status { color: var(--score) !important; }
.eval-card.is-running .eval-status::before { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.eval-body { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 16px; align-items: start; }
.eval-dial { position: relative; }
.eval-num { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; line-height: 1; font-variation-settings: 'WONK' 1, 'opsz' 36; color: var(--ground); }
.eval-num span { font-size: 34px; font-weight: 500; }
.eval-num small { font-size: 11px; margin-left: 2px; color: rgba(245,243,239,0.35); }
.eval-checks { padding: 0; }
.eval-checks li { display: flex; gap: 8px; align-items: center; padding: 5px 0; font-size: 13px; color: rgba(245,243,239,0.6); line-height: 1.35; transition: opacity .35s, transform .35s; }
.eval-ic { flex: none; width: 15px; height: 15px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 9px; color: #fff; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.is-pass .eval-ic { background: var(--pass); }
.is-fail .eval-ic { background: var(--fail); }
.eval-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 10px 16px; font-size: 13px; color: rgba(245,243,239,0.35); border-top: 1px solid rgba(245,243,239,0.06); transition: opacity .4s; }
.eval-foot-count { color: var(--score); }
.eval-card.is-armed .eval-checks li { opacity: 0; transform: translateY(4px); }
.eval-card.is-armed .eval-checks li .eval-ic { transform: scale(0); }
.eval-card.is-armed .eval-checks li.is-shown { opacity: 1; transform: none; }
.eval-card.is-armed .eval-checks li.is-shown .eval-ic { transform: scale(1); }
.eval-card.is-armed .eval-foot { opacity: 0; }
.eval-card.is-armed.is-done .eval-foot { opacity: 1; }

@media (max-width: 480px) { .eval-body { grid-template-columns: 100px 1fr; } .eval-num span { font-size: 26px; } }

/* ============================================
   AUDIENCE
   ============================================ */
.audience { background: var(--ground); padding: clamp(48px, 8vw, 96px) 0; }
.audience-line { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.6; color: var(--mid); }
.audience-line strong { color: var(--ink); font-weight: 600; }

/* ============================================
   WORK
   ============================================ */
.work { background: var(--ground); padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 5vw, 64px); }
.work-heading { font-size: clamp(24px, 3vw, 36px); font-variation-settings: 'WONK' 1, 'opsz' 36; margin-bottom: clamp(24px, 4vw, 40px); }

/* Featured project — full-bleed band */
.feature { position: relative; overflow: hidden; margin-bottom: 0; }
.feature-link { display: block; position: relative; }
.feature-link img { width: 100%; max-height: 72vh; object-fit: cover; object-position: top; transition: opacity 0.5s; }
.feature-link:hover img { opacity: 0.88; }
.feature-caption { position: relative; margin-top: -100px; z-index: 1; padding-bottom: clamp(36px, 5vw, 56px); }
.feature-caption h3 { font-size: clamp(28px, 4vw, 44px); font-variation-settings: 'WONK' 1, 'opsz' 40; margin-bottom: 6px; }
.feature-caption p { font-size: 16px; line-height: 1.65; max-width: 58ch; margin-bottom: 10px; }
.feature-url { font-size: 14px; transition: opacity 0.15s; }
.feature-url:hover { opacity: 0.7; }

/* Brand glow — the brand's color bleeds outward */
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Grain texture on dark features */
.feature--dark::after,
.feature--cosmic::after,
.hero::after,
.close::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ScHott Sauce — dark, warm amber glow */
.feature--dark {
  background: #0e0c0a;
  color: #f4eee5;
}
.feature--dark::before {
  background:
    radial-gradient(ellipse 60% 50% at 75% 30%, rgba(224,80,60,0.08), transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(224,165,79,0.06), transparent 50%);
}
.feature--dark .feature-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(transparent, #0e0c0a);
  pointer-events: none;
}
.feature--dark .feature-caption p { color: rgba(244,238,229,0.55); }
.feature--dark .feature-url { color: rgba(244,238,229,0.35); }

/* NVIV — warm cream, teal glow */
.feature--warm {
  background: #FAF7F2;
  color: #1a1a1a;
}
.feature--warm::before {
  background:
    radial-gradient(ellipse 50% 50% at 70% 40%, rgba(42,140,122,0.07), transparent 55%),
    radial-gradient(ellipse 40% 40% at 15% 60%, rgba(92,180,180,0.05), transparent 50%);
}
.feature--warm .feature-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(transparent, #FAF7F2);
  pointer-events: none;
}
.feature--warm .feature-caption p { color: rgba(26,26,26,0.55); }
.feature--warm .feature-url { color: rgba(26,26,26,0.4); }
.feature-caption--dark-text { color: #1a1a1a; }

/* KPTD — cosmic, violet glow */
.feature--cosmic {
  background: #08070e;
  color: #e8e4f0;
}
.feature--cosmic::before {
  background:
    radial-gradient(ellipse 50% 50% at 60% 35%, rgba(100,60,180,0.1), transparent 55%),
    radial-gradient(ellipse 40% 50% at 25% 65%, rgba(60,100,200,0.06), transparent 50%);
}
.feature--cosmic .feature-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(transparent, #08070e);
  pointer-events: none;
}
.feature--cosmic .feature-caption p { color: rgba(232,228,240,0.5); }
.feature--cosmic .feature-url { color: rgba(232,228,240,0.35); }

.badge--inline { position: static; display: inline-block; margin-bottom: 8px; background: rgba(0,0,0,0.06); backdrop-filter: none; color: var(--muted); }

/* Badge */
.badge { position: absolute; top: 8px; right: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; background: rgba(245,243,239,0.82); backdrop-filter: blur(4px); border-radius: 2px; color: var(--muted); z-index: 2; }

/* Work more */
.work-more { padding-top: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.work-more-item { display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: start; font-size: 15px; line-height: 1.6; color: var(--mid); }
.work-more-item strong { color: var(--ink); }
.work-more-thumb { position: relative; overflow: hidden; border-radius: 3px; background: var(--surface); }
.work-more-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

@media (max-width: 768px) {
  .work-pair { grid-template-columns: 1fr; }
  .work-more-item { grid-template-columns: 120px 1fr; gap: 10px; }
  .feature-caption { margin-top: -40px; }
}
@media (max-width: 480px) { .work-more-item { grid-template-columns: 1fr; } }

/* ============================================
   SERVICE SECTIONS
   ============================================ */
.svc { background: var(--ground); padding: clamp(48px, 7vw, 80px) 0; border-top: 1px solid var(--rule); }
.svc-title { font-size: clamp(36px, 5vw, 56px); font-variation-settings: 'WONK' 1, 'opsz' 56; letter-spacing: -0.025em; line-height: 1.0; margin-bottom: 12px; }
.svc-hook { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; margin-bottom: 10px; font-weight: 400; font-variation-settings: 'WONK' 1, 'opsz' 22; }
.svc-body { font-size: 17px; line-height: 1.7; color: var(--mid); max-width: 52ch; }
.svc-items { border-top: 1px solid var(--ink); margin-top: 20px; }
.svc-items p { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }

/* Browser frame */
.browser-frame { border: 1px solid var(--rule); background: var(--surface); border-radius: 6px; overflow: hidden; box-shadow: 0 16px 40px -20px rgba(28,27,25,0.18); margin-top: 24px; }
.browser-frame--diagram { padding: 18px 16px 14px; margin-top: 0; box-shadow: none; }
.frame-chrome { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--rule); background: var(--surface); }
.frame-dots { display: flex; gap: 6px; }
.frame-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.frame-url { flex: 1; font-size: 12px; color: var(--muted); background: var(--ground); border: 1px solid var(--rule); border-radius: 3px; padding: 3px 10px; }
.frame-body { padding: 28px 30px; display: flex; flex-direction: column; gap: 12px; min-height: 180px; justify-content: center; }
.frame-body--dark { background: radial-gradient(ellipse 260px 220px at 78% 60%, rgba(201,90,40,0.35), transparent 70%), #0e0c0a; color: #f4eee5; }
.frame-label { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #e0a54f; }
.frame-headline { font-size: clamp(18px, 2.6vw, 32px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; font-variation-settings: 'WONK' 1, 'opsz' 28; }
.frame-btns { display: flex; gap: 8px; }
.frame-btns span { font-size: 12px; font-weight: 500; padding: 7px 12px; border-radius: 2px; }
.frame-btn--fill { background: #e0503c; color: #fff; }
.frame-btn--out { border: 1px solid #5a524a; }
.diagram-note { font-size: 12px; color: var(--muted); margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }

/* Run — side-by-side */
.run-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 1024px) { .run-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ============================================
   PRICING
   ============================================ */
.pricing { background: var(--ground); padding: clamp(48px, 7vw, 72px) 0; border-top: 1px solid var(--rule); }
.pricing-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-bottom: 16px; }
.pricing-col { border-top: 2px solid var(--ink); padding-top: 12px; }
.pricing-col h3 { font-size: 22px; font-variation-settings: 'WONK' 1, 'opsz' 22; margin-bottom: 6px; }
.pricing-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.pricing-row .mono { font-size: 13px; white-space: nowrap; }
.pricing-note { font-size: 15px; color: var(--muted); }

@media (max-width: 768px) { .pricing-table { grid-template-columns: 1fr; gap: 20px; } }

/* ============================================
   CLOSE — dark
   ============================================ */
.close { position: relative; background: var(--dark); color: var(--ground); padding: clamp(64px, 10vw, 120px) 0; }
.close-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(48px, 7vw, 96px); align-items: start; }
.close-title { font-size: clamp(32px, 5vw, 56px); font-variation-settings: 'WONK' 1, 'opsz' 52; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 14px; }
.close-body { font-size: 17px; line-height: 1.65; color: rgba(245,243,239,0.5); margin-bottom: 24px; max-width: 36ch; }
.close-email { color: rgba(245,243,239,0.3); margin-top: 14px; font-size: 14px; }
.faq-item { padding: 12px 0; border-bottom: 1px solid rgba(245,243,239,0.08); display: flex; flex-direction: column; gap: 3px; }
.faq-item:first-child { border-top: 1px solid rgba(245,243,239,0.08); }
.faq-item strong { font-size: 16px; font-weight: 500; font-variation-settings: 'WONK' 1, 'opsz' 16; }
.faq-item span { font-size: 15px; color: rgba(245,243,239,0.4); }

@media (max-width: 768px) { .close-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================
   Colophon
   ============================================ */
.colophon { background: var(--dark); padding: 20px 0; border-top: 1px solid rgba(245,243,239,0.06); }
.colophon .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; color: rgba(245,243,239,0.25); }
.colophon-brand { font-size: 16px; font-weight: 600; font-variation-settings: 'WONK' 1, 'opsz' 16; color: rgba(245,243,239,0.4); }
.colophon a { color: rgba(245,243,239,0.25); transition: color 0.15s; }
.colophon a:hover { color: rgba(245,243,239,0.5); }

/* ============================================
   Scroll-driven diagrams
   ============================================ */
.scrolly-progress { height: 2px; background: var(--rule); margin: -18px -16px 16px; }
.scrolly-progress span { display: block; height: 100%; background: var(--ink); transform-origin: left; }

.grow-stage .g-bg { fill: #fff; stroke: var(--ink); stroke-width: 1.2; transition: fill .35s; }
.grow-stage .g-k { fill: var(--muted); transition: fill .35s; }
.grow-stage .g-t { fill: var(--ink); transition: fill .35s; }
.grow-stage .g-card.is-active .g-bg { fill: var(--ink); }
.grow-stage .g-card.is-active .g-k { fill: var(--muted); }
.grow-stage .g-card.is-active .g-t { fill: var(--ground); }
.grow-stage .g-card, .grow-stage .g-cp, .grow-stage .g-pill { transition: opacity .35s; }
.grow-stage .g-card.is-pending { opacity: .28; }
.grow-stage .g-cp.is-pending { opacity: 0; }
.grow-stage .g-pill { opacity: .22; }
.grow-stage .g-pill.is-lit { opacity: 1; }
.grow-stage .g-diamond { transform-box: fill-box; transform-origin: center; transition: transform .35s; }
.grow-stage .g-cp.is-checking .g-diamond { transform: rotate(90deg); }

@media (min-width: 1025px) and (min-height: 700px) {
  .is-live.scrolly { height: 230vh; padding-block: 0; }
  .is-live.scrolly .scrolly-pin { position: sticky; top: 60px; height: calc(100vh - 60px); display: flex; align-items: center; }
  .is-live.scrolly .scrolly-pin > .wrap { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .scrolly-progress { display: none; }
  .js .reveal { transition: none; opacity: 1; transform: none; }
}

@media print {
  .nav, .menu-overlay, .btn, .close-email { display: none; }
  .hero, .close, .colophon, .feature--dark { background: #fff !important; color: #000 !important; }
}
