:root {
  --bg: #ffffff;
  --bg-alt: #f7f6ff;
  --card: rgba(255, 255, 255, .75);
  --text: #12101f;
  --muted: #5d5a73;
  --line: #e6e3f5;
  --accent: #ff6200;
  --accent-2: #ff6200;
  --glow: 0 10px 40px rgba(255, 98, 0, .18), 0 2px 10px rgba(56, 189, 248, .12);
  --grad: linear-gradient(135deg, #ff6200 0%, #ff7a1f 60%, #ff9a40 100%);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  position: relative;
}
/* soft colorful glows floating behind the whole page */
body::before {
  content: ""; position: fixed; inset: -20vh -20vw; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 85% 15%, rgba(56, 189, 248, .22), transparent 60%),
    radial-gradient(35vw 35vw at 10% 30%, rgba(255, 98, 0, .22), transparent 60%),
    radial-gradient(40vw 40vw at 60% 95%, rgba(244, 114, 182, .18), transparent 60%);
  filter: blur(30px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(3vw, -2vh) scale(1.05); } }
/* Display font: League Gothic, a free extra-condensed gothic in the spirit of Phenix American */
h1, h2, h3, .logo { font-family: "League Gothic", "Arial Narrow", sans-serif; font-weight: 400; line-height: 1; letter-spacing: .5px; }
.logo { font-size: 1.9rem !important; letter-spacing: 1px !important; }
h2 { font-size: clamp(2.6rem, 5.6vw, 4.2rem) !important; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 92%); margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.hidden { display: none; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .2s, box-shadow .2s;
}
.btn { box-shadow: 0 8px 28px rgba(255, 98, 0, .35); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 98, 0, .5), 0 0 24px rgba(255, 98, 0, .35); }
.btn-small { padding: 9px 20px; font-size: .9rem; }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--text); border: 1px solid var(--line); box-shadow: var(--glow); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-light { background: #fff; color: #111; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -.5px; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; align-items: center; gap: 32px; }
.links a:not(.btn) { color: var(--muted); font-weight: 500; transition: color .2s; }
.links a:not(.btn):hover { color: var(--text); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-btn span { width: 24px; height: 2px; background: var(--text); display: block; }

/* Hero */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: visible; /* no hard cut at the bottom: it blends into the next section */
}
html, body { overflow-x: clip; } /* the brain area may extend past the right edge; never show a sideways scrollbar */
.section, .band, .footer { position: relative; z-index: 2; } /* page content sits above the floating dots */
.eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: .78rem;
  font-weight: 600; color: var(--accent-2); margin-bottom: 14px;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 900px; margin-bottom: 24px; }
.grad { padding-right: .08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

/* Hero with particle brain */
.hero {
  background: transparent;
  min-height: calc(100vh - 70px);
  display: flex; align-items: center;
}
#brain {
  /* pinned full-screen behind the page: the brain, the dot cloud and the eye all live here */
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 {
  font-family: "League Gothic", "Arial Narrow", sans-serif; font-weight: 400;
  font-size: clamp(4.2rem, 9.5vw, 8.6rem); letter-spacing: 1px; line-height: .92;
  max-width: 640px; margin-bottom: 28px;
}
.hero h1 .grad { padding-right: .03em; margin-right: -.02em; }
.hero .eyebrow { font-size: .72rem; color: var(--muted); letter-spacing: 2px; }
.hero .lead { font-size: 1.05rem; max-width: 460px; }
.hero .btn { background: #ff6200; }
.hero .btn:hover { background: #ff7a26; }
.hero .btn-ghost { background: rgba(255,255,255,.7); }
/* glowing aura behind the brain */
.hero::before {
  content: ""; position: absolute; right: 2%; top: 18%; width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(56, 189, 248, .35) 0%, rgba(255, 98, 0, .25) 35%, rgba(244, 114, 182, .12) 55%, transparent 70%);
  filter: blur(20px);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.08); opacity: .8; } }
.hero .stats { max-width: 560px; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 800px; }
.stats li { border-left: 2px solid var(--accent); padding-left: 16px; }
.stats strong { display: block; font-size: 1.05rem; }
.stats span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: 100px 0; }
.section.alt { background: rgba(247, 246, 255, .6); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 18px; }

/* Services orbiting the eye (eye drawn by brain.js, orbit moved by script.js) */
.eye-section { padding: 60px 0 90px; text-align: center; }
.orbit { position: relative; height: 640px; margin-top: 10px; touch-action: pan-y; cursor: grab; user-select: none; }
.orbit.dragging { cursor: grabbing; }
.eye-spot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(380px, 62vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 98, 0, .16) 0%, rgba(56, 189, 248, .08) 45%, transparent 70%);
}
.orbit-ring { position: absolute; inset: 0; }
.orbit-card {
  position: absolute; left: 50%; top: 50%; width: 230px; padding: 20px 22px 22px; text-align: left;
  border-radius: 18px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -18px rgba(255, 98, 0, .35);
  will-change: transform, opacity; transition: box-shadow .3s;
}
.orbit-card:hover { box-shadow: 0 1px 0 #fff inset, 0 24px 50px -16px rgba(255, 98, 0, .45); }
.oc-num { font-family: "JetBrains Mono", monospace; font-size: .7rem; letter-spacing: 1.5px; color: var(--accent); }
.orbit-card h3 { font-size: 1.7rem; margin: 8px 0 6px; }
.orbit-card p { font-size: .84rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 700px) {
  .orbit { height: 520px; }
  .eye-spot { width: 52vw; }
  .orbit-card { width: 122px; padding: 10px 12px; border-radius: 14px; }
  .orbit-card h3 { font-size: 1.12rem; line-height: 1.05; margin: 5px 0 0; }
  .orbit-card p { display: none; }
}
.eye-line {
  margin-top: 28px; font-family: "League Gothic", "Arial Narrow", sans-serif; font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 4.2rem); letter-spacing: 1px; line-height: 1;
}

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .25s, border-color .25s, box-shadow .25s;
  backdrop-filter: blur(10px); box-shadow: var(--glow);
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 16px 50px rgba(255, 98, 0, .28), 0 0 30px rgba(56, 189, 248, .2); }
.icon { color: #fff; box-shadow: 0 6px 20px rgba(255, 98, 0, .35); }
.checks li::before { color: #fff; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--grad);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 20px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }

/* Gallery */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 32px 0 40px; }
.filter {
  background: var(--card); color: var(--muted); border: 1px solid var(--line);
  padding: 8px 20px; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 500;
}
.filter.active, .filter:hover { color: var(--accent); border-color: var(--accent); background: rgba(255,98,0,.08); box-shadow: 0 0 18px rgba(255,98,0,.25); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.item { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: transform .25s, box-shadow .25s; box-shadow: var(--glow); }
.item:hover { transform: translateY(-6px); box-shadow: 0 16px 50px rgba(255, 98, 0, .28), 0 0 30px rgba(56, 189, 248, .2); }
.item.hide { display: none; }
.item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.item figcaption { padding: 16px 20px; display: flex; flex-direction: column; }
.item figcaption span { color: var(--muted); font-size: .9rem; }

/* Mock website thumbnails (placeholders until you add real screenshots) */
.mock {
  aspect-ratio: 4/3; position: relative; display: grid; place-items: center;
  font-family: "Space Grotesk"; font-weight: 700; font-size: 1.6rem; color: #fff;
}
.mock::before { /* browser bar */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 26px;
  background: rgba(0,0,0,.25);
  background-image: radial-gradient(circle at 14px 13px, #ff5f57 4px, transparent 5px),
                    radial-gradient(circle at 28px 13px, #febc2e 4px, transparent 5px),
                    radial-gradient(circle at 42px 13px, #28c840 4px, transparent 5px);
}
.mock::after { /* fake content lines */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 14%; height: 34px;
  background: linear-gradient(rgba(255,255,255,.35) 0 6px, transparent 6px 14px, rgba(255,255,255,.2) 14px 20px, transparent 20px 28px, rgba(255,255,255,.2) 28px 34px);
  border-radius: 3px;
}
.mock span { transform: translateY(-14px); text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.m1 { background: linear-gradient(135deg, #f472b6, #ff6200); }
.m2 { background: linear-gradient(135deg, #111827, #374151); }
.m3 { background: linear-gradient(135deg, #22c55e, #0ea5e9); }
.m4 { background: linear-gradient(135deg, #1e3a8a, #0ea5e9); }
.m5 { background: linear-gradient(135deg, #fbbf24, #f97316); }
.m6 { background: linear-gradient(135deg, #ff6200, #ec4899); }

/* CTA band */
.band { background: var(--grad); padding: 64px 0; color: #fff; box-shadow: 0 0 80px rgba(255, 98, 0, .35); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { margin: 0; max-width: 640px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; margin-top: 32px; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.contact-list span { color: var(--muted); font-size: .85rem; }
.contact-list a { font-weight: 600; font-size: 1.1rem; }
.contact-list a:hover { color: var(--accent-2); }
.form {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  backdrop-filter: blur(10px); box-shadow: var(--glow);
}
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font: inherit; font-size: 1rem;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 98, 0, .12), 0 0 20px rgba(255, 98, 0, .2); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer p { color: var(--muted); font-size: .9rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 100;
  display: none; place-items: center; padding: 24px;
}
.lightbox.open { display: grid; }
.lb-content { width: min(900px, 100%); border-radius: var(--radius); overflow: hidden; }
.lb-content .mock { font-size: 3rem; }
.lb-content img { width: 100%; display: block; }
.lb-close { position: absolute; top: 20px; right: 28px; font-size: 2.5rem; color: #fff; background: none; border: none; cursor: pointer; }

/* ===== Styles showcase (expanding panels) — premium, editorial ===== */
.showcase { display: flex; gap: 10px; height: 560px; margin-top: 44px; }
.panel {
  position: relative; flex: 1; min-width: 0; overflow: hidden; cursor: pointer;
  border-radius: 18px; outline: none; isolation: isolate;
  transition: flex-grow .9s cubic-bezier(.77, 0, .18, 1), box-shadow .5s;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 40px -18px rgba(18, 16, 31, .35);
}
.panel.is-open { flex-grow: 7; cursor: default; box-shadow: 0 30px 70px -25px rgba(18, 16, 31, .45); }
.panel:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
/* fine film grain on every panel */
.panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5; opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* collapsed strip: index number + vertical name */
.panel-strip {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; padding: 26px 0; transition: opacity .3s;
}
.strip-num { font-family: "JetBrains Mono", monospace; font-size: .72rem; letter-spacing: 1px; opacity: .7; }
.strip-name { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.35rem; letter-spacing: .5px; }
.panel.is-open .panel-strip { opacity: 0; pointer-events: none; }

/* the mini website inside each panel */
.panel-site {
  position: absolute; inset: 0; width: max(100%, 700px); padding: 28px 40px 24px;
  display: flex; flex-direction: column; opacity: 0; transition: opacity .35s;
}
.panel.is-open .panel-site { opacity: 1; transition: opacity .6s .45s; }
.mini-nav {
  display: flex; align-items: center; gap: 28px; font-size: .74rem; letter-spacing: .4px;
  padding-bottom: 16px; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); position: relative; z-index: 2;
}
.mini-nav b { margin-right: auto; font-weight: 500; font-size: .95rem; letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.mini-nav span { opacity: .7; }
.mini-nav i { font-style: normal; opacity: .9; }
.site-body { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; min-height: 0; }
.site-copy { max-width: 360px; }
.kicker { font-family: "JetBrains Mono", monospace; font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; opacity: .65; margin-bottom: 22px; }
.panel-site h3 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1.02; font-weight: 400; margin-bottom: 18px; }
.panel-site h3 em { font-style: italic; }
.lede { font-size: .95rem; line-height: 1.6; opacity: .72; margin-bottom: 28px; max-width: 300px; }
.cta { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.cta::after { content: "→"; letter-spacing: 0; transition: transform .3s; }
.panel:hover .cta::after { transform: translateX(4px); }
.site-photo { margin: 0; position: relative; height: 100%; max-height: 380px; }
.site-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-foot {
  display: flex; justify-content: space-between; font-family: "JetBrains Mono", monospace; font-size: .64rem;
  text-transform: uppercase; letter-spacing: 1.5px; opacity: .55; padding-top: 14px; position: relative; z-index: 2;
  border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent);
}
/* gentle slow zoom on photos while a panel is open */
.panel.is-open .site-photo img { animation: slowzoom 12s ease-out both; }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* 01 · Mich Sparkling Water (real project) — the live site's screenshot fills the panel */
.p-mich { background: #03182b; color: #eaf5fd; }
.p-mich .strip-name { font-family: "League Gothic", sans-serif; font-size: 1.7rem; letter-spacing: 1px; }
.p-mich .strip-num { color: #ff6b73; opacity: 1; }
.p-mich .site-photo, .p-marylyn .site-photo { position: absolute; inset: 0; max-height: none; z-index: 0; }
/* image only: the landing page screenshot fills the panel edge to edge, no text on top */
.p-mich .panel-site, .p-marylyn .panel-site { padding: 0; width: 100%; }
.p-mich .site-photo img, .p-marylyn .site-photo img { object-fit: cover; object-position: center; animation: none !important; } /* screenshot is taken at the panel's 5:4 shape, so it fills edge to edge (no zoom, so nothing is trimmed) */
/* live preview: the real site at desktop size (1400×1120), scaled down by script.js to fill the panel */
.p-mich .site-photo, .p-marylyn .site-photo { overflow: hidden; }
.live {
  position: absolute; left: 0; top: 0; width: 1400px; height: 1120px; border: 0;
  transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .8s; background: #03182b;
}
.live.ready { opacity: 1; }
/* opens the live site: pointer cursor + a small round arrow that appears on hover */
.panel[data-href].is-open { cursor: pointer; }
.visit {
  position: absolute; right: 18px; top: 18px; z-index: 6; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: #03182b; font-size: 1.1rem;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.panel[data-href].is-open:hover .visit, .panel[data-href].is-open:focus-visible .visit { opacity: 1; transform: none; }
.p-mich::after, .p-marylyn::after { display: none; } /* no film grain over a real screenshot */

/* 02 · Marylyn portfolio (real project), shares the Mich layout above */
.p-marylyn { background: #0b0b0d; color: #f4f1ec; }
.p-marylyn .strip-name { font-family: "League Gothic", sans-serif; font-size: 1.7rem; letter-spacing: 1px; }
.p-marylyn .strip-num { color: #ff6200; opacity: 1; }
.p-marylyn .live { background: #0b0b0d; }
.p-marylyn .site-photo img { object-fit: contain; padding: 12% 0 6%; } /* cover until the live site loads: her face, centred on the dark background */

/* Lumière — ivory stone, light serif, arched photo */
.p-lumiere { background: #ece6dc; color: #2a241f; }
.p-lumiere .strip-name, .p-lumiere h3, .p-lumiere .mini-nav b { font-family: "Cormorant Garamond", serif; }
.p-lumiere h3 { font-weight: 300; font-size: clamp(2.8rem, 5vw, 4.4rem); }
.p-lumiere h3 em { color: #8a5a2e; }
.p-lumiere .site-photo { justify-self: end; width: 78%; }
.p-lumiere .site-photo img { border-radius: 999px 999px 4px 4px; }

/* 02 · Ember — near-black oxblood, Bodoni, full-bleed photo */
.p-ember { background: #120b09; color: #ecdcc6; }
.p-ember .strip-name, .p-ember h3, .p-ember .mini-nav b { font-family: "Bodoni Moda", serif; }
.p-ember h3 em { color: #d29a5a; }
.p-ember .site-body { grid-template-columns: 1fr; }
.p-ember .site-photo { position: absolute; inset: 0 0 0 38%; max-height: none; z-index: 1; }
.p-ember .site-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #120b09 0%, rgba(18,11,9,.55) 30%, rgba(18,11,9,0) 65%), linear-gradient(0deg, rgba(18,11,9,.6), transparent 40%), linear-gradient(180deg, rgba(18,11,9,.85) 0%, rgba(18,11,9,0) 22%); }
.p-ember .site-photo img { filter: saturate(.9) contrast(1.05); }
.p-ember .cta { color: #d29a5a; }

/* 03 · Nova — true black, crisp sans, product UI */
.p-nova { background: radial-gradient(120% 90% at 80% 40%, #161a26 0%, #07080b 60%); color: #e8eaf0; }
.p-nova::before { /* faint grid */
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 40px 40px; -webkit-mask-image: radial-gradient(circle at 75% 45%, #000, transparent 70%); mask-image: radial-gradient(circle at 75% 45%, #000, transparent 70%);
}
.p-nova .strip-name { font-family: "Inter", sans-serif; font-weight: 500; letter-spacing: -.3px; }
.p-nova h3 { font-family: "Inter", sans-serif; font-weight: 500; letter-spacing: -1.8px; font-size: clamp(2.2rem, 3.8vw, 3.3rem); }
.p-nova h3 .dim { color: #6b7080; }
.p-nova .mini-nav b { letter-spacing: 0; font-family: "Inter"; font-weight: 600; }
.p-nova .mini-nav i { background: #e8eaf0; color: #07080b; padding: 6px 12px; border-radius: 6px; font-weight: 500; }
.nova-mark { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, #ff8a3d, #ff6200); display: inline-block; }
.p-nova .cta { border: 0; background: #e8eaf0; color: #07080b; padding: 10px 16px; border-radius: 8px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .85rem; }
.p-nova .cta::after { content: none; }
.ui { position: relative; height: 100%; display: grid; place-items: center; }
.ui-card {
  width: 100%; max-width: 330px; padding: 18px; border-radius: 14px; font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.4); backdrop-filter: blur(12px);
}
.ui-top { display: flex; align-items: center; gap: 5px; font-size: .7rem; color: #8a8fa0; margin-bottom: 14px; }
.ui-top i { width: 7px; height: 7px; border-radius: 50%; background: #2a2d38; }
.ui-top span { margin-left: 8px; }
.ui-stat { display: flex; align-items: baseline; gap: 8px; }
.ui-stat b { font-size: 1.7rem; font-weight: 600; letter-spacing: -1px; }
.ui-stat span { font-size: .7rem; color: #8a8fa0; }
.ui-card svg { width: 100%; height: 70px; margin: 10px 0 12px; display: block; }
.ui-card ul { list-style: none; font-size: .74rem; border-top: 1px solid rgba(255,255,255,.07); }
.ui-card li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); color: #c9ccd6; }
.ui-card li span { margin-left: auto; color: #6b7080; font-size: .68rem; }
.ui-card li em, .ui-toast em { width: 7px; height: 7px; border-radius: 50%; background: #3a3e4c; display: inline-block; }
.ui-card li em.ok, .ui-toast em.ok { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.ui-toast {
  position: absolute; right: -6px; bottom: 12%; font: 500 .72rem "Inter", sans-serif; color: #d6d9e2;
  padding: 10px 14px; border-radius: 10px; display: flex; align-items: center; gap: 8px;
  background: rgba(22, 25, 34, .9); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 40px -10px rgba(0,0,0,.8);
}
.panel.is-open .ui-toast { animation: toast 1s .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes toast { from { opacity: 0; transform: translateY(12px); } }

/* 04 · Bloom — sage paper, soft serif, rounded photo + badge */
.p-bloom { background: #e2e5d6; color: #213026; }
.p-bloom .strip-name, .p-bloom h3, .p-bloom .mini-nav b { font-family: "Fraunces", serif; }
.p-bloom h3 { font-weight: 300; letter-spacing: -1px; }
.p-bloom h3 em { color: #b5602f; }
.p-bloom .mini-nav b { letter-spacing: -.3px; font-weight: 500; font-size: 1.1rem; }
.p-bloom .site-photo img { border-radius: 26px; }
.p-bloom .badge {
  position: absolute; left: -26px; bottom: 26px; width: 96px; height: 96px; border-radius: 50%;
  background: #b5602f; color: #fbf3ea; display: grid; place-items: center; text-align: center;
  font: 400 .62rem/1.3 "JetBrains Mono", monospace; letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 14px 30px -10px rgba(120, 50, 20, .5);
}
.p-bloom .badge b { font: 400 1.1rem "Fraunces", serif; letter-spacing: 0; }

@media (max-width: 760px) {
  .showcase { flex-direction: column; height: 760px; }
  .panel-strip { flex-direction: row; padding: 0 22px; }
  .strip-name { writing-mode: horizontal-tb; transform: none; font-size: 1.1rem; }
  .panel-site { width: 100%; padding: 20px; }
  .mini-nav span { display: none; }
  .site-body { grid-template-columns: 1fr; gap: 18px; }
  .site-photo { max-height: 200px; }
  .p-ember .site-photo { inset: 40% 0 0 0; }
  .ui-toast { display: none; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .cards, .gallery { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 680px) {
  .menu-btn { display: flex; }
  .links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 24px;
    display: none;
  }
  .links.open { display: flex; }
  .cards, .gallery, .stats { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .hero { padding: 80px 0 70px; }
  .section { padding: 72px 0; }
}

/* ===== Recent work: 3D cover-flow (positions set by script.js) =====
   A dark stage; the active project's picture, blurred, fills the background.
   Cards fan out to both sides, turned toward the middle; a big title sits over the front card. */
#work { padding-bottom: 0; }
.cf {
  position: relative; margin: 44px 0 0; width: 100%; height: 100vh; min-height: 560px; /* full screen, edge to edge */
  overflow: hidden; background: #0d0b10; color: #fff; isolation: isolate;
}
.cf-bg, .cf-bg i { position: absolute; inset: 0; }
.cf-bg i {
  background: #1a1420 center / cover no-repeat; filter: blur(34px) saturate(1.15) brightness(.42);
  transform: scale(1.2); opacity: 0; transition: opacity 1.1s ease;
}
.cf-bg i.on { opacity: 1; }
.cf-bg::after { /* soft vignette so the edges stay dark */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(8, 6, 10, .75) 100%);
}
.cf-stage { position: absolute; inset: 0; perspective: 1400px; perspective-origin: 50% 42%; z-index: 2; }
.cf-card {
  --w: clamp(170px, min(22vw, 42vh), 360px);
  position: absolute; left: 50%; top: 45%; width: var(--w); aspect-ratio: 3 / 4; margin: calc(var(--w) * -2 / 3) 0 0 calc(var(--w) / -2);
  border-radius: 14px; overflow: hidden; cursor: pointer; outline: none; background: #15121a;
  transform-style: preserve-3d; will-change: transform, opacity, filter;
  transition: transform .9s cubic-bezier(.65, 0, .2, 1), opacity .9s, filter .9s, box-shadow .6s;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8);
}
.cf-card.is-open { cursor: pointer; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .14); }
.cf-card:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--accent); }
.cf-card > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c-marylyn { background: #0b0b0d; }
.c-marylyn > img { object-fit: contain; padding: 18% 6% 26%; }
/* live sites: rendered at desktop size and scaled to cover the card (script.js); only the front card plays */
.cf-card .live {
  position: absolute; left: 0; top: 0; width: 1400px; height: 1120px; border: 0; transform-origin: 0 0;
  pointer-events: none; opacity: 0; transition: opacity .8s; background: #0b0b0d;
}
.cf-card .live.ready { opacity: 1; }
.c-mich .live { background: #03182b; }
/* Nova has no photo: a little dark app screen instead */
.c-nova { background: radial-gradient(120% 80% at 70% 10%, rgba(255, 98, 0, .35), transparent 60%), linear-gradient(160deg, #1b1d2a, #0b0c12); }
.nova-ui {
  position: absolute; left: 10%; right: 10%; top: 18%; padding: 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font-size: .7rem; color: #cfd2e0;
}
.nova-ui .ui-top { display: flex; gap: 5px; align-items: center; margin-bottom: 12px; }
.nova-ui .ui-top i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.nova-ui .ui-top span { margin-left: 6px; opacity: .7; }
.nova-ui b { display: block; font-size: 1.9rem; font-weight: 600; color: #fff; line-height: 1.1; }
.nova-ui svg { width: 100%; height: 70px; margin-top: 10px; display: block; }

/* the big title over the front card */
.cf-caption {
  position: absolute; left: 50%; top: 55%; z-index: 120; transform: translateX(-50%); width: min(92%, 760px);
  text-align: center; pointer-events: none;
}
.cf-title {
  font-family: "League Gothic", "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: .92; letter-spacing: 3px; margin: 0;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .55);
}
.cf-sub { margin: 10px 0 18px; font-size: .95rem; color: rgba(255, 255, 255, .78); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.cf-visit { pointer-events: auto; }
.cf-visit[hidden] { display: none; }
/* text swap: slides up and fades in each time the project changes */
.cf-caption.swap .cf-title, .cf-caption.swap .cf-sub, .cf-caption.swap .cf-visit { animation: cfIn .8s cubic-bezier(.2, .8, .2, 1) both; }
.cf-caption.swap .cf-sub { animation-delay: .08s; }
.cf-caption.swap .cf-visit { animation-delay: .16s; }
@keyframes cfIn { from { opacity: 0; transform: translateY(18px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }

.cf-arrow {
  position: absolute; top: 45%; z-index: 130; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.6rem; line-height: 1;
  cursor: pointer; backdrop-filter: blur(6px); transition: background .3s, border-color .3s;
}
.cf-arrow:hover { background: var(--accent); border-color: var(--accent); }
.cf-arrow.prev { left: clamp(10px, 3vw, 34px); }
.cf-arrow.next { right: clamp(10px, 3vw, 34px); }
.cf-dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 130; display: flex; justify-content: center; gap: 8px; }
.cf-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .4s, background .4s; }
.cf-dots button[aria-selected="true"] { width: 26px; background: var(--accent); }
@media (max-width: 700px) {
  .cf { height: 100svh; }
  .cf-card { --w: 46vw; }
  .cf-caption { top: 60%; }
  .cf-arrow { display: none; }
}

/* ===== Footer links + legal pages (privacy.html, terms.html) ===== */
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: .9rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.form-note { font-size: .8rem; color: var(--muted); line-height: 1.5; margin: 0; }
.form-note a, .legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-back { font-size: .9rem; font-weight: 500; color: var(--muted); }
.legal-back:hover { color: var(--accent); }
.legal { max-width: 780px; padding-top: 64px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(2.8rem, 7vw, 4.4rem); line-height: 1; margin-bottom: 10px; }
.legal-date { color: var(--muted); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 40px 0 12px; }
.legal p, .legal li { color: #3d3a4a; line-height: 1.75; }
.legal p { margin-bottom: 14px; }
.legal ul { padding-left: 1.2em; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--accent); }
.legal-note { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 700px) {
  .legal { padding-top: 40px; padding-bottom: 64px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}