/* =========================================================
   Dynamic Tech Designs — styles
   Palette
     Ink        #14131C   (primary text / dark sections)
     Paper      #F6F2EA   (background)
     Tangerine  #FF5A1F   (primary accent)
     Volt Violet#4B3BFF   (secondary accent)
     Lime       #C9F25A   (highlight on dark)
   Fonts: Syne (display), Inter (body)
   ========================================================= */

:root {
  --ink: #14131C;
  --ink-2: #211F2E;
  --paper: #F6F2EA;
  --paper-2: #ECE5D8;
  --line: #D9D1C2;
  --muted: #4A4858;
  --accent: #FF5A1F;
  --accent-dark: #D9420B;
  --violet: #4B3BFF;
  --lime: #C9F25A;
  --white: #FFFFFF;

  --font-display: "Syne", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --header-h: 72px;
  --shadow: 0 1px 0 rgba(20,19,28,.06), 0 18px 40px -18px rgba(20,19,28,.25);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul[role="list"], ol { list-style: none; margin: 0; padding: 0; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .75rem 1rem; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--font-body);
  padding: 1rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(255,90,31,.7); }
.btn-accent:hover { background: #FF6E3A; box-shadow: 0 14px 30px -10px rgba(255,90,31,.75); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--violet); color: var(--white); }
.btn-small { padding: .7rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.eyebrow-light { color: #C9C6D6; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,242,234,.82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -20px rgba(20,19,28,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.wordmark { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.wordmark-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--ink); color: var(--paper);
  font: 800 .7rem/1 var(--font-display); letter-spacing: -.01em; position: relative; flex: none;
}
.wordmark-mark::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--paper); }
.wordmark-text { font: 700 1.12rem/1 var(--font-display); letter-spacing: -.02em; }
.wordmark-text em { font-style: normal; color: var(--accent-dark); }
.wordmark-light .wordmark-mark { background: var(--paper); color: var(--ink); }
.wordmark-light .wordmark-mark::after { border-color: var(--ink); }
.wordmark-light .wordmark-text { color: var(--paper); }
.wordmark-light .wordmark-text em { color: var(--accent); }

.site-nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; padding: .25rem 0; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav a:not(.btn):hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(20,19,28,.10) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .hl { position: relative; white-space: nowrap; z-index: 0; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .06em; height: .36em; z-index: -1;
  background: var(--lime); border-radius: .1em; transform: skewX(-8deg);
}
.hero h1 .dot { color: var(--accent); }
.hero-sub { margin-top: 1.5rem; font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* Hero art composition */
.hero-art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 540px; justify-self: end; }
.art-blob {
  position: absolute; inset: 6% 4% 8% 8%; border-radius: 42% 58% 55% 45% / 48% 40% 60% 52%;
  background: linear-gradient(135deg, var(--violet), #8A7DFF 55%, var(--accent));
  animation: morph 14s ease-in-out infinite alternate;
  opacity: .95;
}
.art-box { position: absolute; left: 14%; top: 24%; width: 38%; height: 48%; transform: rotate(-6deg); animation: float 7s ease-in-out infinite; }
.art-box-front {
  position: absolute; inset: 0; background: var(--paper); border-radius: 12px; box-shadow: 14px 14px 0 rgba(20,19,28,.22), var(--shadow);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12% 12%; overflow: hidden;
}
.art-box-stripe { position: absolute; left: 0; right: 0; top: 18%; height: 22%; background: var(--accent); }
.art-box-title { font: 800 clamp(1.3rem, 2.6vw, 2.2rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.art-box-lines { display: grid; gap: 6px; margin-top: 10px; }
.art-box-lines i { display: block; height: 5px; border-radius: 3px; background: var(--paper-2); }
.art-box-lines i:nth-child(1) { width: 90%; } .art-box-lines i:nth-child(2) { width: 70%; } .art-box-lines i:nth-child(3) { width: 50%; }

.art-label {
  position: absolute; right: 6%; top: 14%; width: 40%; aspect-ratio: 4/5;
  background: var(--ink); color: var(--paper); border-radius: 16px; padding: 9% 9%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  transform: rotate(7deg); box-shadow: var(--shadow); animation: float 8s ease-in-out -2s infinite;
}
.art-label-badge {
  position: absolute; top: 9%; left: 9%;
  font: 700 .7rem/1 var(--font-body); letter-spacing: .12em; padding: .45rem .6rem; border-radius: 999px; background: var(--lime); color: var(--ink);
}
.art-label-name { font: 800 clamp(1rem, 2vw, 1.6rem)/1 var(--font-display); letter-spacing: -.02em; }
.art-label-rule { height: 3px; width: 40%; background: var(--accent); border-radius: 2px; }
.art-label-small { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #BDB9CC; }

.art-logo {
  position: absolute; right: 18%; bottom: 8%; width: 24%; aspect-ratio: 1; border-radius: 50%;
  background: var(--lime); display: grid; place-items: center; box-shadow: var(--shadow);
  animation: spin 22s linear infinite;
}
.art-logo span { width: 46%; aspect-ratio: 1; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.art-swatches { position: absolute; left: 6%; bottom: 10%; display: flex; gap: 8px; padding: 10px; background: var(--white); border-radius: 999px; box-shadow: var(--shadow); animation: float 9s ease-in-out -4s infinite; }
.art-swatches i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.art-swatches i:nth-child(1) { background: var(--ink); }
.art-swatches i:nth-child(2) { background: var(--accent); }
.art-swatches i:nth-child(3) { background: var(--violet); }
.art-swatches i:nth-child(4) { background: var(--lime); }

@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes morph {
  0% { border-radius: 42% 58% 55% 45% / 48% 40% 60% 52%; }
  100% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; }
}

/* Marquee */
.marquee { margin-top: clamp(3rem, 6vw, 5rem); background: var(--ink); color: var(--paper); overflow: hidden; padding: 1.1rem 0; transform: rotate(-1.2deg) scale(1.02); }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: marquee 32s linear infinite; font: 700 clamp(1.1rem, 2vw, 1.5rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee-track span:nth-child(even) { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; }
.section-head-split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section-note { color: var(--muted); max-width: 26rem; font-size: .98rem; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.service-card {
  grid-column: span 2; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 3; }
.service-card::before {
  content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%;
  background: var(--paper-2); transition: transform .5s var(--ease), background-color .35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scale(1.25); background: #FFE3D7; }
.service-icon {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  background: var(--ink); color: var(--lime); margin-bottom: 1.5rem;
}
.service-icon svg { width: 32px; height: 32px; }
.service-card:nth-child(2) .service-icon { background: var(--accent); color: var(--ink); }
.service-card:nth-child(3) .service-icon { background: var(--violet); color: var(--white); }
.service-card:nth-child(4) .service-icon { background: var(--lime); color: var(--ink); }
.service-card h3 { position: relative; font-size: 1.45rem; font-weight: 700; margin-bottom: .6rem; }
.service-card p { position: relative; color: var(--muted); }

/* Portfolio */
.work { background: var(--paper-2); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.work-tile { display: flex; flex-direction: column; gap: 1rem; }
.tile-art {
  position: relative; display: block; width: 100%; padding: 0; border: 0; margin: 0;
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in;
  background: var(--line); color: inherit; font: inherit;
  box-shadow: 0 1px 0 rgba(20,19,28,.05);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-tile:hover .tile-art, .tile-art:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-tile:hover .tile-art img { transform: scale(1.04); }
.tile-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(20,19,28,.06);
}
.tile-art:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
.ph-badge {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font: 600 .72rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  padding: .5rem .7rem; border-radius: 999px; background: rgba(20,19,28,.82); color: var(--paper);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent; color: var(--paper);
  width: min(1100px, 100vw - 2rem, (100vh - 10rem) * 4 / 3); max-width: none; max-height: calc(100vh - 2rem); overflow: visible;
}
.lightbox::backdrop { background: rgba(14,13,20,.86); backdrop-filter: blur(4px); }
.lightbox[open] { animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.lightbox-inner { position: relative; }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; height: auto; display: block; border-radius: 18px; background: var(--ink-2); }
.lightbox figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .8rem; padding: 1rem .25rem 0; font-size: 1rem; }
.lightbox figcaption strong { font-family: var(--font-display); font-size: 1.2rem; }
.lightbox-cat { color: #C9C6D6; font-size: .9rem; margin-left: .4rem; }
.lightbox-desc { width: 100%; color: #E4E1EC; }
.lightbox-badge { font: 600 .7rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; padding: .45rem .6rem; border-radius: 999px; background: var(--lime); color: var(--ink); }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.lightbox-close:hover { background: var(--accent); }
@media (max-width: 600px) { .lightbox-close { top: 8px; right: 8px; } }

.tile-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-inline: .25rem; }
.tile-meta h3 { font-size: 1.15rem; font-weight: 700; }
.tile-meta p { color: var(--muted); font-size: .9rem; white-space: nowrap; }

/* Process */
.process { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.process::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(75,59,255,.55), transparent 65%); pointer-events: none;
}
.process .section-head h2 { color: var(--paper); }
.process-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.process-step {
  padding: 2rem 1.6rem; border-radius: var(--radius); background: var(--ink-2); border: 1px solid #2E2B40;
  transition: transform .35s var(--ease), border-color .35s;
}
.process-step:hover { transform: translateY(-6px); border-color: var(--lime); }
.step-num { display: inline-block; font: 800 2.6rem/1 var(--font-display); color: var(--lime); letter-spacing: -.03em; margin-bottom: 1.4rem; }
.process-step:nth-child(2) .step-num { color: var(--accent); }
.process-step:nth-child(3) .step-num { color: #A79CFF; }
.process-step:nth-child(4) .step-num { color: var(--paper); }
.process-step h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.process-step p { color: #C9C6D6; font-size: .98rem; }

/* About */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-mark {
  aspect-ratio: 1; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: conic-gradient(from 200deg at 60% 40%, var(--accent), var(--violet), var(--lime), var(--accent));
  display: grid; place-items: center;
}
.about-mark::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: var(--paper); }
.about-mark-inner { position: relative; font: 800 clamp(2.4rem, 5.4vw, 4.6rem)/1 var(--font-display); letter-spacing: -.04em; color: var(--ink); }
.about-copy h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; margin-bottom: 1.4rem; }
.about-copy p { color: var(--muted); margin-bottom: 1.1rem; max-width: 40rem; }
.text-link { display: inline-flex; gap: .5rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; margin-top: .5rem; }
.text-link span { transition: transform .3s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

/* Contact */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-copy h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 800; margin-bottom: 1.2rem; }
.contact-copy > p { color: var(--muted); max-width: 30rem; }
.contact-email { margin-top: 2rem; display: flex; flex-direction: column; gap: .3rem; }
.contact-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.contact-email a { font: 700 clamp(1.1rem, 2vw, 1.4rem)/1.3 var(--font-display); text-decoration-color: var(--accent); text-underline-offset: 5px; word-break: break-word; }

.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field:nth-of-type(3), .field:nth-of-type(4), .contact-form .btn, .form-status { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .85rem 1rem; width: 100%;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2314131C' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: var(--white); box-shadow: 0 0 0 4px rgba(75,59,255,.15); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C2290A; }
.field ::placeholder { color: #7A7686; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; font-weight: 500; margin: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: #B3260A; }
.form-status.is-success { color: #1F7A3A; }
.btn:disabled, .btn:disabled:hover { opacity: .65; cursor: progress; transform: none; }

/* Footer */
.site-footer { background: var(--ink); color: #C9C6D6; padding: 3rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; color: var(--paper); font-weight: 500; }
.footer-nav a:hover { color: var(--lime); }
.copyright { font-size: .9rem; width: 100%; padding-top: 1.5rem; border-top: 1px solid #2E2B40; }

/* Thanks page (no-JS form fallback) */
.thanks { min-height: calc(100vh - var(--header-h) - 10rem); display: grid; align-items: center; }
.thanks-card { max-width: 40rem; background: var(--white); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); box-shadow: var(--shadow); }
.thanks-card h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 1.2rem; }
.thanks-card h1 .dot { color: var(--accent); }
.thanks-card p { color: var(--muted); }
.thanks-card .contact-email { margin-top: 1.6rem; }
.thanks-card .btn { margin-top: 2rem; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 3; }
  .service-card:nth-child(5) { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    border: 1.5px solid var(--ink); background: transparent; cursor: pointer; color: var(--ink);
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .3s;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; } .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(20,19,28,.35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .site-nav li a:not(.btn) { display: block; padding: 1rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav li a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1rem; width: 100%; padding: 1rem; }

  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-art { justify-self: center; max-width: 440px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-mark { max-width: 320px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { width: min(100% - 2.5rem, var(--container)); }
  .wordmark-text { font-size: 1rem; }
  .hero h1 { font-size: clamp(2.2rem, 10.5vw, 3rem); }
  .hero h1 .hl { white-space: normal; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: auto; }
  .work-grid, .process-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .section-head-split { align-items: flex-start; }
  .art-swatches i { width: 16px; height: 16px; }
  .art-label-small { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
html:has(.lightbox[open]) { overflow: hidden; }
