/*
Theme Name: George Matthew Studio
Theme URI: https://george-matthew.com
Author: George Matthew
Description: A fast, accessible portfolio and lead-generation theme for George Matthew's independent creative studio.
Version: 1.1.5
Text Domain: gm-studio
*/

:root {
  --ink: #13111a;
  --ink-2: #201b2a;
  --paper: #f6f2ec;
  --paper-2: #eee8df;
  --white: #fffdf9;
  --muted: #6f6877;
  --violet: #6f3cff;
  --violet-2: #a987ff;
  --acid: #d7ff64;
  --coral: #ff7b6b;
  --line: rgba(19, 17, 26, .14);
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --shadow: 0 24px 70px rgba(24, 16, 45, .13);
  --max: 1240px;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { color: var(--white); background: var(--violet); }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: .5rem;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }

.wrap { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2.5rem), 820px); margin-inline: auto; }
.section { padding: clamp(5rem, 9vw, 9rem) 0; }
.section-tight { padding: clamp(3.75rem, 7vw, 6rem) 0; }
.surface-dark { color: var(--white); background: var(--ink); }
.surface-white { background: var(--white); }
.surface-violet { color: var(--white); background: var(--violet); }
.rule { height: 1px; background: var(--line); }

.eyebrow {
  display: inline-flex;
  gap: .65rem;
  align-items: center;
  margin: 0 0 1.15rem;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow::before { width: 1.8rem; height: 2px; background: currentColor; content: ""; }
.display, h1, h2, h3 { margin-top: 0; line-height: .98; letter-spacing: -.04em; }
h1, h2, .display { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(3.6rem, 8.4vw, 8.2rem); }
h2 { font-size: clamp(2.8rem, 5.8vw, 5.8rem); }
h3 { font-size: clamp(1.55rem, 2.4vw, 2.35rem); }
p { margin: 0 0 1.25rem; }
.lead { max-width: 46rem; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.55; }
.muted { color: var(--muted); }
.surface-dark .muted { color: #bcb5c7; }
.accent { color: var(--violet); }
.serif { font-family: var(--serif); }

.button {
  display: inline-flex;
  min-height: 3.25rem;
  gap: .65rem;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--violet); box-shadow: 0 12px 30px rgba(111, 60, 255, .25); }
.button-primary:hover { background: #5f2dea; }
.button-light { color: var(--ink); background: var(--acid); }
.button-ghost { border-color: var(--line); background: transparent; }
.surface-dark .button-ghost { border-color: rgba(255,255,255,.28); }
.text-link { display: inline-flex; gap: .5rem; align-items: center; font-weight: 800; }
.text-link::after { content: "\2197"; transition: transform .2s ease; }
.text-link:hover::after { transform: translate(2px, -2px); }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.availability {
  color: #3b7b00;
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.availability::before {
  width: .58rem;
  height: .58rem;
  background: #7cd400;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(124,212,0,.13);
  content: "";
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(246,242,236,.91);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: grid; min-height: 5.25rem; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.brand { display: inline-flex; gap: .8rem; align-items: center; text-decoration: none; }
.brand-mark { width: 2.9rem; height: 2.9rem; flex: 0 0 auto; transform: rotate(-3deg); transition: transform .25s ease; }
.brand:hover .brand-mark { transform: rotate(0deg) scale(1.035); }
.brand-text { font-size: .9rem; font-weight: 850; letter-spacing: -.02em; line-height: 1.1; }
.brand-text small { display: block; color: var(--muted); font-size: .67rem; font-weight: 650; letter-spacing: .05em; margin-top: .18rem; }
.site-nav { justify-self: end; }
.site-nav ul { display: flex; gap: .2rem; align-items: center; padding: 0; margin: 0; list-style: none; }
.site-nav a { display: inline-flex; min-height: 2.75rem; align-items: center; padding: .65rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 750; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(111,60,255,.09); }
.site-nav .nav-cta { color: var(--white); background: var(--ink); padding-inline: 1.1rem; }
.site-nav .nav-cta:hover { background: var(--violet); }
.nav-toggle { display: none; width: 3rem; height: 3rem; padding: 0; border: 1px solid var(--line); background: transparent; border-radius: 50%; place-items: center; }
.nav-toggle svg { width: 1.3rem; }

.hero { position: relative; min-height: calc(100svh - 5.25rem); overflow: hidden; display: grid; align-items: center; padding: clamp(4rem, 8vw, 8rem) 0; }
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 86% 18%, rgba(169,135,255,.34), transparent 28%),
    radial-gradient(circle at 11% 78%, rgba(215,255,100,.26), transparent 24%),
    linear-gradient(115deg, transparent 48%, rgba(255,255,255,.48) 48% 49%, transparent 49%);
  content: "";
}
.hero-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(300px,.72fr); gap: clamp(3rem,7vw,7rem); align-items: center; }
.hero h1 { max-width: 12ch; margin-bottom: 1.5rem; }
.hero-copy .lead { max-width: 40rem; color: #514957; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: 2.25rem; }
.hero-art { position: relative; min-height: 34rem; }
.hero-card { position: absolute; overflow: hidden; border: 8px solid var(--white); border-radius: var(--radius-lg); background: var(--ink); box-shadow: var(--shadow); }
.hero-card picture { display: block; width: 100%; height: 100%; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-main { inset: 4% 0 8% 15%; transform: rotate(3deg); }
.hero-card-small { width: 48%; height: 43%; bottom: 0; left: 0; transform: rotate(-7deg); }
.hero-card-label { position: absolute; right: 1rem; bottom: 1rem; padding: .6rem .8rem; color: var(--ink); background: var(--acid); border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.orbit { position: absolute; width: 8rem; height: 8rem; top: 0; right: -1rem; border: 1px solid var(--violet); border-radius: 50%; }
.orbit::after { position: absolute; width: 1.25rem; height: 1.25rem; top: 10%; left: 5%; background: var(--violet); border-radius: 50%; content: ""; }

.marquee { overflow: hidden; color: var(--white); background: var(--ink); border-block: 1px solid rgba(255,255,255,.14); }
.marquee-track { display: flex; width: max-content; gap: 2.25rem; padding: 1rem 0; animation: marquee 30s linear infinite; }
.marquee-track span { display: inline-flex; gap: 2.25rem; align-items: center; font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.marquee-track span::after { color: var(--acid); content: "\2726"; }
@keyframes marquee { to { transform: translateX(-50%); } }

.intro-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(3rem,8vw,9rem); align-items: start; }
.intro-grid h2 { max-width: 11ch; }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 3rem; }
.stat { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2rem,4vw,3.5rem); font-weight: 500; line-height: 1; }
.stat span { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; margin-top: .5rem; }

.section-head { display: flex; gap: 2rem; align-items: end; justify-content: space-between; margin-bottom: clamp(2.5rem,5vw,5rem); }
.section-head h2 { max-width: 11ch; margin-bottom: 0; }
.section-head p { max-width: 34rem; }
.project-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 1.25rem; }
.project-card { position: relative; min-height: 31rem; overflow: hidden; color: var(--white); background: #27222e; border-radius: var(--radius-lg); text-decoration: none; isolation: isolate; }
.project-card::after { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,8,15,.92)); content: ""; }
.project-visual { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, #5930dc, #9a7aff 62%, #d7ff64); }
.project-visual::before { position: absolute; width: 22rem; height: 22rem; top: -10rem; right: -7rem; border: 1px solid rgba(255,255,255,.58); border-radius: 50%; box-shadow: 0 0 0 4rem rgba(255,255,255,.07), 0 0 0 8rem rgba(255,255,255,.045); content: ""; }
.project-card:nth-child(3n + 2) .project-visual { background: linear-gradient(135deg, #13111a, #433852 62%, #ff7b6b); }
.project-card:nth-child(3n + 3) .project-visual { background: linear-gradient(135deg, #24310d, #78912e 55%, #d7ff64); }
.project-screen { position: absolute; inset: 8% 7% 17%; overflow: hidden; border: 6px solid var(--white); border-radius: 1rem; background: var(--white); box-shadow: 0 24px 55px rgba(10,8,15,.28); transform: rotate(-1.5deg); transition: transform .65s cubic-bezier(.2,.75,.25,1); }
.project-card:nth-child(even) .project-screen { transform: rotate(1.5deg); }
.project-card:hover .project-screen { transform: rotate(0deg) translateY(-.4rem) scale(1.018); }
.project-screen picture { display: block; width: 100%; height: 100%; }
.project-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project-label { position: absolute; z-index: 1; top: 1.3rem; left: 1.4rem; padding: .45rem .7rem; color: var(--ink); background: var(--acid); border-radius: 999px; font-size: .64rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.project-card-feature { grid-column: 1 / -1; min-height: 40rem; }
.project-card-feature .project-screen { inset: 7% 6% 17%; }
.project-card-half { grid-column: span 6; }
.project-info { position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: flex; gap: 1.5rem; align-items: end; justify-content: space-between; padding: clamp(1.5rem,4vw,3rem); }
.project-info h3 { max-width: 15ch; margin-bottom: .4rem; }
.project-info p { color: #d7d0df; margin: 0; }
.project-arrow { display: grid; width: 3.5rem; height: 3.5rem; flex: 0 0 auto; color: var(--ink); background: var(--acid); border-radius: 50%; font-size: 1.35rem; place-items: center; transition: transform .2s ease; }
.project-card:hover .project-arrow { transform: rotate(8deg) scale(1.06); }
.project-kicker { display: inline-block; margin-bottom: .8rem; color: var(--acid); font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }

.service-list { border-top: 1px solid rgba(255,255,255,.2); }
.service-row { display: grid; grid-template-columns: 5rem .9fr 1.1fr; gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.service-number { color: var(--violet-2); font-family: var(--serif); font-size: 1.8rem; }
.service-row h3 { margin: 0; }
.service-row p { color: #c4bdcb; margin: 0; }
.service-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.tag { display: inline-flex; padding: .45rem .7rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-size: .7rem; font-weight: 750; }

.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; counter-reset: process; }
.process-card { min-height: 20rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.35); counter-increment: process; }
.process-card::before { display: block; width: 2.8rem; height: 2.8rem; margin-bottom: 4rem; color: var(--white); background: var(--violet); border-radius: 50%; content: "0" counter(process); display: grid; font-size: .75rem; font-weight: 850; place-items: center; }
.process-card h3 { font-family: var(--sans); font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.2; }
.process-card p { color: var(--muted); font-size: .92rem; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.quote-card { display: flex; min-height: 25rem; flex-direction: column; padding: 2rem; border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 35px rgba(30,20,50,.05); }
.quote-card:nth-child(2) { transform: translateY(2rem); }
.stars { color: var(--violet); letter-spacing: .18em; }
.quote-card blockquote { margin: 2.5rem 0 2rem; font-family: var(--serif); font-size: 1.55rem; line-height: 1.28; }
.quote-card footer { margin-top: auto; color: var(--muted); font-size: .78rem; font-weight: 750; }
.quote-source { display: block; margin-top: .35rem; color: var(--violet); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }

.cta-panel { position: relative; overflow: hidden; padding: clamp(3rem,7vw,7rem); color: var(--white); background: var(--violet); border-radius: var(--radius-lg); }
.cta-panel::after { position: absolute; width: 24rem; height: 24rem; right: -5rem; bottom: -12rem; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; content: ""; box-shadow: 0 0 0 4rem rgba(255,255,255,.05), 0 0 0 8rem rgba(255,255,255,.04); }
.cta-panel h2 { position: relative; z-index: 1; max-width: 12ch; }
.cta-panel .lead, .cta-panel .button-row { position: relative; z-index: 1; }

.page-hero { padding: clamp(5rem,10vw,10rem) 0 clamp(4rem,7vw,7rem); }
.page-hero h1 { max-width: 12ch; margin-bottom: 1.5rem; }
.page-hero .lead { color: var(--muted); }
.breadcrumbs { margin-bottom: 2rem; color: var(--muted); font-size: .76rem; font-weight: 750; }
.breadcrumbs a { text-decoration: none; }

.offer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.offer-card { display: flex; min-height: 31rem; flex-direction: column; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.offer-card.featured { color: var(--white); background: var(--ink); transform: translateY(-1.5rem); }
.offer-card h2 { font-family: var(--sans); font-size: 1.7rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.price { margin: 1rem 0 1.5rem; font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.price small { font-family: var(--sans); font-size: .72rem; font-weight: 700; }
.check-list { padding: 0; margin: 1rem 0 2rem; list-style: none; }
.check-list li { position: relative; padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.featured .check-list li { border-color: rgba(255,255,255,.16); }
.check-list li::before { position: absolute; left: 0; color: var(--violet); font-weight: 900; content: "\2713"; }
.featured .check-list li::before { color: var(--acid); }
.offer-card .button { margin-top: auto; }

.about-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(3rem,8vw,8rem); align-items: start; }
.portrait-frame { position: sticky; top: 8rem; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); }
.portrait-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.principle { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.principle strong { display: block; margin-bottom: .5rem; }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem,8vw,8rem); align-items: start; }
.contact-card { padding: clamp(1.5rem,4vw,3rem); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.contact-details { padding: 0; list-style: none; }
.contact-details li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-details span { display: block; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-details a { font-family: var(--serif); font-size: 1.3rem; }

.frm_forms form { font-family: var(--sans) !important; }
.frm_forms .frm_form_field { margin-bottom: 1.15rem !important; }
.frm_forms label { color: var(--ink) !important; font-size: .78rem !important; font-weight: 800 !important; letter-spacing: .04em !important; }
.frm_forms input[type="text"], .frm_forms input[type="email"], .frm_forms textarea, .frm_forms select {
  width: 100% !important;
  min-height: 3.25rem !important;
  padding: .85rem 1rem !important;
  color: var(--ink) !important;
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
  border-radius: .75rem !important;
  box-shadow: none !important;
}
.frm_forms textarea { min-height: 9rem !important; }
.frm_forms input:focus, .frm_forms textarea:focus, .frm_forms select:focus { border-color: var(--violet) !important; outline: 3px solid rgba(111,60,255,.16) !important; }
.frm_forms .frm_button_submit { min-height: 3.4rem !important; padding: .85rem 1.35rem !important; color: var(--white) !important; background: var(--violet) !important; border: 0 !important; border-radius: 999px !important; box-shadow: none !important; font-weight: 850 !important; letter-spacing: .08em !important; text-transform: uppercase !important; }
.frm_error_style, .frm_error { color: #8d1934 !important; }

.case-hero { padding: 3rem 0 0; }
.case-hero-copy { display: grid; grid-template-columns: 1fr .7fr; gap: 3rem; align-items: end; padding: clamp(3rem,7vw,7rem) 0; }
.case-hero h1 { max-width: 11ch; }
.case-meta { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.case-meta div { padding-top: 1rem; border-top: 1px solid var(--line); }
.case-meta span { display: block; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.case-image { overflow: hidden; border-radius: var(--radius-lg); background: var(--ink); }
.case-image img { width: 100%; max-height: 76rem; object-fit: cover; object-position: top center; }
.case-story { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem,8vw,8rem); }
.case-story h2 { position: sticky; top: 8rem; max-width: 10ch; }
.case-story-copy h3 { margin-top: 3rem; font-family: var(--sans); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.results-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.result { min-height: 15rem; padding: 1.75rem; color: var(--white); background: var(--ink); border-radius: var(--radius); }
.result strong { display: block; margin-bottom: 1.5rem; color: var(--acid); font-family: var(--serif); font-size: 3rem; font-weight: 500; line-height: 1; }

/* NYX Protocol portfolio feature */
.nyx-portfolio-hero { overflow: hidden; padding: 3rem 0 clamp(5rem,9vw,9rem); color: var(--white); background: #070a0c; }
.nyx-portfolio-hero .breadcrumbs, .nyx-portfolio-hero .breadcrumbs a { color: #aebabc; }
.nyx-portfolio-intro { display: grid; grid-template-columns: minmax(18rem,.72fr) minmax(32rem,1.28fr); gap: clamp(2.5rem,6vw,6rem); align-items: center; padding-top: clamp(2rem,5vw,5rem); }
.nyx-portfolio-copy h1 { max-width: 8.5ch; margin-bottom: 1.5rem; font-size: clamp(4rem,8.5vw,8.5rem); }
.nyx-portfolio-copy .lead { color: #c7d1d3; }
.nyx-portfolio-art, .nyx-demo-frame { position: relative; overflow: hidden; margin: 0; background: #020405; border-radius: var(--radius-lg); box-shadow: 0 32px 90px rgba(0,0,0,.45); }
.nyx-portfolio-art::after { position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(126,235,218,.26); border-radius: inherit; content: ""; }
.nyx-portfolio-art img, .nyx-demo-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nyx-portfolio-art figcaption, .nyx-demo-frame figcaption { position: absolute; right: 1rem; bottom: 1rem; padding: .55rem .75rem; color: #ecffff; background: rgba(4,10,12,.78); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; backdrop-filter: blur(10px); font-size: .64rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.nyx-signal-list { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; padding: 0; margin: 2.6rem 0 0; list-style: none; }
.nyx-signal-list li { padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.2); }
.nyx-signal-list strong, .nyx-signal-list span { display: block; }
.nyx-signal-list strong { color: #7eebda; font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }
.nyx-signal-list span { color: #aebabc; font-size: .72rem; line-height: 1.45; margin-top: .35rem; }
.nyx-overview, .nyx-archive-note { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem,8vw,8rem); align-items: start; }
.nyx-overview h2, .nyx-archive-note h2 { max-width: 10ch; }
.nyx-overview-copy .tag { color: var(--ink); border-color: var(--line); }
.nyx-proof-section { background: #dfe9e6; }
.nyx-proof-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem,7vw,7rem); align-items: center; }
.nyx-demo-frame { box-shadow: 0 26px 70px rgba(12,31,32,.18); }
.nyx-proof-copy h2 { max-width: 10ch; }
.nyx-proof-copy .text-link { margin: 1rem 0 0 .5rem; }
.nyx-pillar-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid rgba(255,255,255,.2); }
.nyx-pillar-grid article { min-height: 21rem; padding: 2rem; border-right: 1px solid rgba(255,255,255,.2); }
.nyx-pillar-grid article:last-child { border-right: 0; }
.nyx-pillar-grid span { display: inline-grid; width: 2.7rem; height: 2.7rem; margin-bottom: 5rem; color: var(--ink); background: #7eebda; border-radius: 50%; font-size: .72rem; font-weight: 900; place-items: center; }
.nyx-pillar-grid h3 { font-family: var(--sans); font-size: 1.35rem; font-weight: 850; letter-spacing: -.025em; line-height: 1.15; }
.nyx-pillar-grid p { color: #bdc7ca; }
.nyx-archive-note .button { margin-top: 1rem; }

.insight-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.insight-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.insight-card-link { display: block; height: 100%; text-decoration: none; }
.insight-art { position: relative; min-height: 13rem; overflow: hidden; padding: 1.25rem; color: var(--white); background: linear-gradient(135deg, var(--ink), #42364d); }
.insight-card:nth-child(3n + 2) .insight-art { color: var(--ink); background: linear-gradient(135deg, #a987ff, #d5c7ff); }
.insight-card:nth-child(3n + 3) .insight-art { color: var(--ink); background: linear-gradient(135deg, #b9df48, var(--acid)); }
.insight-art::before, .insight-art::after { position: absolute; border: 1px solid currentColor; border-radius: 50%; opacity: .45; content: ""; }
.insight-art::before { width: 14rem; height: 14rem; right: -4rem; bottom: -7rem; }
.insight-art::after { width: 8rem; height: 8rem; right: -1rem; bottom: -4rem; }
.insight-art span { position: relative; z-index: 1; font-size: .68rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.insight-art i { position: absolute; width: 4.8rem; height: 4.8rem; top: 50%; left: 50%; border: 1.5rem solid var(--violet); border-radius: 1.2rem; transform: translate(-50%,-50%) rotate(14deg); }
.insight-card:nth-child(2) .insight-art i { border-color: var(--ink); border-radius: 50%; }
.insight-card:nth-child(3) .insight-art i { border-color: var(--ink); transform: translate(-50%,-50%) rotate(45deg); }
.insight-card-content { padding: 1.5rem; }
.insight-card-content h3 { margin-bottom: 1rem; font-family: var(--sans); font-size: 1.45rem; font-weight: 850; letter-spacing: -.035em; line-height: 1.12; }
.insight-card-content > p:not(.post-meta) { color: var(--muted); }
.insight-card .text-link { margin-top: .6rem; }
.insight-card:hover .insight-art i { transform: translate(-50%,-50%) rotate(0deg) scale(1.06); transition: transform .4s ease; }

.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card-content { padding: 1.5rem; }
.post-card h2 { font-family: var(--sans); font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.post-meta { color: var(--muted); font-size: .75rem; font-weight: 700; }
.article { padding-bottom: 7rem; }
.article-header { margin-bottom: 3rem; }
.article-content { font-size: 1.08rem; }
.article-content .article-intro { font-family: var(--serif); font-size: clamp(1.35rem,2.4vw,1.8rem); line-height: 1.45; }
.article-content h2 { margin-top: 3.5rem; font-size: clamp(2.2rem,4vw,3.6rem); }
.article-content h3 { margin-top: 2.5rem; font-family: var(--sans); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.article-content img { border-radius: var(--radius); }
.article-content a { color: var(--violet); }
.article-visual { position: relative; min-height: clamp(17rem,34vw,28rem); overflow: hidden; margin-bottom: 4rem; padding: clamp(1.5rem,4vw,3rem); color: var(--white); background: linear-gradient(135deg, var(--ink), #453765 62%, var(--violet)); border-radius: var(--radius-lg); }
.article-visual::before, .article-visual::after { position: absolute; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; content: ""; }
.article-visual::before { width: 30rem; height: 30rem; right: -8rem; bottom: -18rem; box-shadow: 0 0 0 5rem rgba(255,255,255,.04), 0 0 0 10rem rgba(255,255,255,.03); }
.article-visual::after { width: 1rem; height: 1rem; right: 2.5rem; top: 2.5rem; background: var(--acid); border: 0; }
.article-visual span, .article-visual b { position: relative; z-index: 1; display: block; font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.article-visual b { position: absolute; right: clamp(1.5rem,4vw,3rem); bottom: clamp(1.5rem,4vw,3rem); color: var(--acid); }
.article-visual i { position: absolute; width: clamp(5rem,13vw,10rem); height: clamp(5rem,13vw,10rem); top: 50%; left: 50%; border: clamp(1rem,2.6vw,2rem) solid var(--white); border-radius: 1.75rem; transform: translate(-50%,-50%) rotate(14deg); }

.site-footer { padding: 5rem 0 2rem; color: var(--white); background: var(--ink); }
.footer-top { display: grid; grid-template-columns: 1.1fr .45fr .45fr; gap: 3rem; padding-bottom: 4rem; }
.footer-top h2 { max-width: 10ch; font-size: clamp(2.8rem,5vw,5rem); }
.footer-nav { padding: 0; margin: 0; list-style: none; }
.footer-nav li { margin-bottom: .7rem; }
.footer-nav a { color: #cbc5d1; text-decoration: none; }
.footer-nav a:hover { color: var(--acid); }
.footer-label { margin-bottom: 1rem; color: var(--violet-2); font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.footer-bottom { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); color: #a9a1b2; font-size: .75rem; }

@media (max-width: 980px) {
  .admin-bar .site-header { top: 46px; }
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; }
  .nav-toggle { display: grid; }
  .site-nav { position: fixed; inset: 5.25rem 0 auto; display: none; min-height: calc(100dvh - 5.25rem); padding: 2rem 1.25rem; background: var(--paper); }
  .admin-bar .site-nav { top: calc(5.25rem + 46px); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; }
  .site-nav a { min-height: 3.5rem; justify-content: space-between; padding-inline: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
  .site-nav .nav-cta { min-height: 3.5rem; justify-content: center; margin-top: 1rem; border: 0; border-radius: 999px; font-family: var(--sans); font-size: .82rem; font-weight: 850; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 30rem; width: min(100%, 34rem); }
  .intro-grid, .about-grid, .contact-layout, .case-story { grid-template-columns: 1fr; }
  .nyx-portfolio-intro, .nyx-overview, .nyx-proof-grid, .nyx-archive-note { grid-template-columns: 1fr; }
  .nyx-portfolio-art { order: -1; }
  .nyx-pillar-grid { grid-template-columns: 1fr; }
  .nyx-pillar-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .nyx-pillar-grid article:last-child { border-bottom: 0; }
  .nyx-pillar-grid span { margin-bottom: 3rem; }
  .portrait-frame, .case-story h2 { position: relative; top: 0; }
  .service-row { grid-template-columns: 3rem 1fr; }
  .service-row > div:last-child { grid-column: 2; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .offer-card.featured { transform: none; }
  .case-hero-copy { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .wrap, .narrow { width: min(calc(100% - 1.5rem), var(--max)); }
  .section { padding: 4.5rem 0; }
  .section-head { align-items: start; flex-direction: column; }
  .hero { min-height: auto; padding: 4.5rem 0 3.5rem; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5.4rem); }
  .hero-art { min-height: 23rem; }
  .hero-card-main { inset: 2% 0 5% 11%; }
  .hero-card-small { width: 44%; height: 38%; }
  .orbit { width: 5rem; height: 5rem; }
  .stat-row { grid-template-columns: 1fr; }
  .project-card-half { grid-column: 1 / -1; }
  .project-card, .project-card-feature { min-height: 28rem; }
  .project-card-feature { min-height: 28rem; }
  .project-info { align-items: start; flex-direction: column; }
  .project-arrow { position: absolute; right: 1.25rem; top: 1.25rem; }
  .service-row { grid-template-columns: 1fr; gap: .8rem; }
  .service-row > div:last-child { grid-column: 1; }
  .process-grid, .testimonial-grid, .principles, .results-grid, .post-grid, .insight-grid { grid-template-columns: 1fr; }
  .process-card { min-height: auto; }
  .process-card::before { margin-bottom: 3rem; }
  .quote-card:nth-child(2) { transform: none; }
  .case-meta { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top > div:first-child { grid-column: auto; }
  .footer-bottom { align-items: start; flex-direction: column; }
  .brand-text small { display: none; }
  .nyx-portfolio-hero { padding-top: 1.5rem; }
  .nyx-portfolio-intro { padding-top: 1.5rem; }
  .nyx-portfolio-copy h1 { font-size: clamp(3.4rem,16vw,5.6rem); }
  .nyx-signal-list { grid-template-columns: 1fr; }
  .nyx-portfolio-art figcaption, .nyx-demo-frame figcaption { position: static; border: 0; border-radius: 0; background: #0d1315; backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; }
}

@media print {
  .site-header, .site-footer, .button-row, .marquee { display: none !important; }
  body { color: #000; background: #fff; }
}
