/* ============================================================
   EMBLEM WEB · Design system v4 "Exploration"
   Near-black, acid lime, particle wordmark hero,
   sideways deck, dense spacing.
   ============================================================ */

:root {
  --bg: #070806;
  --surface: #0E100A;
  --card: #12150C;
  --ink: #EFF5E2;
  --ink-dim: rgba(239, 245, 226, 0.62);
  --ink-faint: rgba(239, 245, 226, 0.38);
  --line: rgba(239, 245, 226, 0.14);
  --line-soft: rgba(239, 245, 226, 0.08);
  --accent: #C8F04B;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.1rem, 3.5vw, 3rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Fixed nebula background ---------- */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* still galaxy image, no motion */
.site-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

/* ---------- Distortion orb cursor ---------- */

@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

.cursor-dot {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  will-change: transform;
}

.cursor-ring {
  position: fixed;
  z-index: 998;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(239, 245, 226, 0.35);
  pointer-events: none;
  transition: width 0.28s var(--ease-out), height 0.28s var(--ease-out),
              border-color 0.28s var(--ease-out), opacity 0.28s var(--ease-out);
  will-change: transform;
}

.cursor-ring.on-link {
  width: 54px;
  height: 54px;
  border-color: rgba(200, 240, 75, 0.85);
}

.cursor-dot.is-hidden, .cursor-ring.is-hidden { opacity: 0; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Wordmark ---------- */

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.wordmark-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
}

.wordmark-caps {
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.35s var(--ease-out);
}

.wordmark:hover .wordmark-caps { color: var(--accent); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}

.nav.is-scrolled {
  background: rgba(7, 8, 6, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.nav-links { display: flex; gap: 2rem; margin-left: auto; }

.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out), background 0.35s var(--ease-out);
  will-change: transform;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -12px rgba(200, 240, 75, 0.5);
}

.btn-ghost {
  background: rgba(7, 8, 6, 0.5);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

.nav-cta { padding: 0.6rem 1.3rem; font-size: 0.85rem; }

/* ---------- Type ---------- */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
}

h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h2 em, h3 em { font-style: italic; color: var(--accent); }

/* ---------- Hero: particle wordmark ---------- */

.hero-zone {
  height: 175vh;
  position: relative;
  z-index: 1;
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

#emblem-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-eyebrow {
  position: absolute;
  top: 5.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

/* ---------- The over-layer that slides above the hero ---------- */

/* translucent so the galaxy shows through (the deck sits directly on it) */
.over {
  position: relative;
  z-index: 2;
  background: rgba(10, 12, 8, 0.55);
  border-top: 1px solid var(--line);
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, 0.8);
}

/* ---------- The deck (pinned horizontal scroll) ---------- */

.deck {
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.2rem, 4vw, 3.2rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 3vw, 2.4rem);
}

.deck-head {
  padding: 0 var(--pad);
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.deck-head .eyebrow { margin-bottom: 0; }

/* Even grid: the four cards fill the full width of the page */
.deck-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
  padding: 0.5rem var(--pad) 0.5rem;
}

/* ---------- Cards ---------- */

/* see-through cards, galaxy behind; each card links to its service page */
.card {
  position: relative;
  width: auto;
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: rgba(18, 21, 12, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}

.card:hover {
  border-color: rgba(200, 240, 75, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9), 0 0 40px -20px rgba(200, 240, 75, 0.35);
}

.card-body {
  padding: clamp(1.5rem, 2.4vw, 2.2rem) clamp(1.3rem, 2vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
  min-height: clamp(240px, 34vh, 340px);
}

/* per-letter cursor warp on card titles */
.warp-ch {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
  will-change: transform;
}

.card-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
}

.card h3 {
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  line-height: 1.02;
}

.card-copy {
  color: var(--ink-dim);
  font-size: 0.92rem;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.chips li {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.card:hover .chips li { border-color: rgba(200, 240, 75, 0.4); color: var(--ink); }

/* ---------- Demo page (the last thing you see) ---------- */

.demo-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  flex-wrap: wrap;
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad);
  border-top: 1px solid var(--line-soft);
}

.demo-copy {
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}

.demo-lede { color: var(--ink-dim); font-size: 1.02rem; }

.demo-cta { margin-top: 0.8rem; }

/* ---------- Native iMessage demo (ported from the standalone demo,
   page chrome rebranded; everything inside the screen stays iOS) ---------- */

.im-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  flex-shrink: 0;
}

.im-demo .phone {
  position: relative;
  width: min(370px, 88vw);
  height: min(760px, 78vh);
  background: #000;
  border-radius: 52px;
  padding: 13px;
  box-shadow:
    0 0 0 2px #3a3a3d,
    0 0 0 12px #0e0e0f,
    0 0 0 13px #2a2a2c,
    0 45px 90px -30px rgba(0, 0, 0, 0.9);
}

.im-demo .screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.im-demo .island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 33px;
  background: #000;
  border-radius: 20px;
  z-index: 40;
}

.im-demo .statusbar {
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 28px 8px;
  font-size: 15px;
  font-weight: 600;
  color: #000;
  z-index: 30;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.im-demo .statusbar .icons { display: flex; align-items: center; gap: 7px; }
.im-demo .statusbar svg { display: block; }

.im-demo .imhead {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px 12px 12px;
  background: rgba(249, 249, 249, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 20;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.im-demo .imhead .back {
  position: absolute;
  left: 16px;
  top: 8px;
  color: #0B84FF;
  font-size: 26px;
  line-height: 1;
}

.im-demo .imhead .facetime {
  position: absolute;
  right: 16px;
  top: 12px;
  color: #0B84FF;
}

.im-demo .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(150deg, #3b82f6, #1e3a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.im-demo .imhead .name {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  display: flex;
  align-items: center;
  gap: 5px;
}

.im-demo .imhead .name svg { opacity: 0.35; }
.im-demo .imhead .sub { font-size: 11.5px; color: #8a8a8e; }
.im-demo .imhead .sub b { color: #34c759; font-weight: 600; }

.im-demo .thread {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.im-demo .thread::-webkit-scrollbar { width: 0; }

.im-demo .timesep {
  text-align: center;
  font-size: 11px;
  color: #8a8a8e;
  margin: 14px 0 8px;
}

.im-demo .timesep b { color: #3c3c43; font-weight: 600; }

.im-demo .row { display: flex; margin-top: 2px; }
.im-demo .row.out { justify-content: flex-end; }
.im-demo .row.in { justify-content: flex-start; }

.im-demo .bubble {
  max-width: 75%;
  padding: 8px 13px;
  font-size: 15.5px;
  line-height: 1.32;
  border-radius: 19px;
  position: relative;
  word-wrap: break-word;
  animation: im-pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes im-pop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.im-demo .row.out .bubble {
  background: #0B84FF;
  color: #fff;
  border-bottom-right-radius: 5px;
}

.im-demo .row.in .bubble {
  background: #E9E9EB;
  color: #000;
  border-bottom-left-radius: 5px;
}

.im-demo .receipt {
  text-align: right;
  font-size: 11px;
  color: #8a8a8e;
  padding: 2px 4px 0;
  margin-top: 1px;
}

.im-demo .typing .bubble {
  background: #E9E9EB;
  padding: 13px 15px;
  border-bottom-left-radius: 5px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.im-demo .typing .d {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9a9a9f;
  animation: im-blink 1.3s infinite;
}

.im-demo .typing .d:nth-child(2) { animation-delay: 0.18s; }
.im-demo .typing .d:nth-child(3) { animation-delay: 0.36s; }

@keyframes im-blink {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.im-demo .composer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 24px;
  background: rgba(249, 249, 249, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 0.5px solid rgba(0, 0, 0, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.im-demo .plus {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #e5e5ea;
  color: #8a8a8e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.im-demo .inputwrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  border: 1px solid #d1d1d6;
  border-radius: 19px;
  background: #fff;
  padding: 6px 8px 6px 14px;
  min-height: 36px;
}

.im-demo .inputwrap input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: #000;
  font-family: inherit;
}

.im-demo .inputwrap input::placeholder { color: #b0b0b5; }

.im-demo .send {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: none;
  border-radius: 50%;
  background: #0B84FF;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s, opacity 0.12s;
}

.im-demo .send:disabled { opacity: 0.35; cursor: default; }
.im-demo .send:not(:disabled):active { transform: scale(0.9); }

/* page-level controls, branded to this site */
.im-controls { display: flex; align-items: center; gap: 14px; }

.im-demo .restart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), transform 0.1s;
}

.im-demo .restart:hover {
  border-color: var(--accent);
  background: rgba(200, 240, 75, 0.08);
}

.im-demo .restart:active { transform: translateY(1px); }

.im-demo .numtag {
  font-size: 12px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.im-demo .numtag b { color: var(--ink-dim); }

/* ---------- Standalone pages: shared header ---------- */

.page-head {
  padding: clamp(8rem, 14vh, 11rem) var(--pad) clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  z-index: 2;
}

.page-head .eyebrow { margin-bottom: 1.1rem; }

.page-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  font-size: clamp(2.8rem, 6.5vw, 5rem);
}

.page-head h1 em { font-style: italic; color: var(--accent); }

.page-head .page-lede {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--ink-dim);
}

/* ---------- Work page: interactive site cards ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
  padding: 1rem var(--pad) clamp(4rem, 8vw, 6rem);
  position: relative;
  z-index: 2;
}

.wcard {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: rgba(18, 21, 12, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
  will-change: transform;
}

.wcard:hover {
  border-color: rgba(200, 240, 75, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9), 0 0 40px -20px rgba(200, 240, 75, 0.35);
}

.wcard-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0b09;
}

.wcard-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.wcard-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
  background: transparent;
}

.wcard-body { padding: 1.1rem 1.2rem 1.25rem; }

.wcard-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.wcard-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  transition: color 0.3s var(--ease-out);
}

.wcard:hover .wcard-name { color: var(--accent); }

.wcard-cat {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.wcard-desc { color: var(--ink-dim); font-size: 0.88rem; }

@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .work-grid { grid-template-columns: 1fr; } }

/* ---------- Contact page form ---------- */

.cform-wrap {
  padding: 1rem var(--pad) clamp(4rem, 8vw, 6rem);
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.cform-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}

.cform { display: flex; flex-direction: column; gap: 1.3rem; }

.cform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}

@media (max-width: 640px) { .cform-row { grid-template-columns: 1fr; } }

.cform label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.5rem;
}

.cform .opt { color: var(--ink-faint); letter-spacing: 0.06em; text-transform: none; }

.cform input,
.cform select,
.cform textarea {
  width: 100%;
  background: rgba(18, 21, 12, 0.55);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.3s var(--ease-out);
  resize: vertical;
}

.cform select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23EFF5E2' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.cform select option { background: #12150C; color: var(--ink); }

.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.cform .btn-submit {
  border: none;
  align-self: flex-start;
  margin-top: 0.3rem;
}

.hp-field { display: none; }

/* ---------- Service detail pages ---------- */

.svc {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(7rem, 12vw, 10rem) var(--pad) clamp(4rem, 8vw, 6rem);
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.svc .eyebrow { margin-bottom: 1.2rem; }

.svc h1 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.svc h1 em { font-style: italic; color: var(--accent); }

.svc-lede {
  margin-top: 1.6rem;
  max-width: 36rem;
  font-size: 1.1rem;
  color: var(--ink-dim);
}

.svc .stack { margin-top: clamp(2rem, 4vw, 3rem); }

.svc-ctas {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.svc-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s var(--ease-out);
}

.svc-back:hover { color: var(--accent); }

/* ---------- Work hover preview ---------- */

#work-preview {
  position: fixed;
  z-index: 40;
  width: clamp(320px, 32vw, 500px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.94) rotate(-1.5deg);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
  background: var(--card);
}

/* screenshot behind as instant fallback while the live site loads */
#work-preview .wp-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* live sites render in full 1280x800 viewports, scaled down to fit */
#work-preview .wp-frames iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
  background: transparent;
}

#work-preview .wp-frames iframe.wp-hidden { visibility: hidden; }

#work-preview.is-visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

@media (hover: none), (max-width: 900px) {
  #work-preview { display: none; }
}

/* ---------- Work ---------- */

.work {
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad);
  border-top: 1px solid var(--line-soft);
}

.work-head {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}

.work-list { list-style: none; border-top: 1px solid var(--line-soft); }

.work-list a {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto auto;
  align-items: baseline;
  gap: 1.4rem;
  padding: 1.05rem 0.4rem;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.35s var(--ease-out), padding-left 0.35s var(--ease-out);
}

.work-list a:hover {
  background: rgba(200, 240, 75, 0.05);
  padding-left: 1rem;
}

.work-list em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  transition: color 0.3s var(--ease-out);
}

.work-list a:hover em { color: var(--accent); }

.w-desc {
  color: var(--ink-dim);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w-cat {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.w-arrow {
  color: var(--ink-faint);
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.work-list a:hover .w-arrow { color: var(--accent); transform: translateX(4px); }

/* ---------- Contact (no form) ---------- */

.contact {
  padding: clamp(4rem, 8vw, 6.5rem) var(--pad);
  text-align: center;
  border-top: 1px solid var(--line-soft);
}

.contact .eyebrow { margin-bottom: 1.1rem; }

.contact h2 { max-width: 14em; margin: 0 auto; }

.contact-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ---------- Footer ---------- */

.footer {
  padding: 2.2rem var(--pad) 2rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; }

.footer-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s var(--ease-out);
}

.footer-links a:hover { color: var(--accent); }

.footer-legal { color: var(--ink-faint); font-size: 0.78rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .deck-track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .deck-track { grid-template-columns: 1fr; }
  .card-body { min-height: 0; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .demo-page { flex-direction: column; }
  .work-list a { grid-template-columns: 1fr auto; }
  .w-desc { display: none; }
  .hero-zone { height: 150vh; }
}
