/* fonts:start - generated by scripts/fetch-fonts.js, do not edit by hand */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* fonts:end */

/* ==========================================================================
   Angeligent Digital AI Studio
   Brand: White Pearl (dominant) · Attitude Black (structure) · Emotional Red II (accent)
   Rule: never pure #FFFFFF backgrounds; never shift red toward vermilion/orange.
   ========================================================================== */

:root {
  --pearl: #F5F6F8;
  --pearl-2: #ECEEF1;
  --black: #141416;
  --red: #C41230;
  --red-deep: #A30F28;
  --zinc: #71717a;
  --ink-2: #3f3f46;
  --line: rgba(20, 20, 22, 0.12);
  --line-strong: rgba(20, 20, 22, 0.22);

  --font: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --shadow-soft: 0 1px 2px rgba(20, 20, 22, .04), 0 12px 32px -12px rgba(20, 20, 22, .14);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--pearl);
  color: var(--black);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--black); color: var(--pearl); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.mono, .eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow { color: var(--red); font-weight: 500; margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 28px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 500 1rem/1 var(--font);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 22px; font-size: .95rem; }
.btn-primary { background: var(--red); color: var(--pearl); box-shadow: 0 8px 20px -10px rgba(196, 18, 48, .7); }
.btn-primary:hover { background: var(--red-deep); }
.btn-outline { border-color: var(--black); color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--pearl); }
.btn-light { background: var(--pearl); color: var(--black); }
.btn-light:hover { background: var(--black); color: var(--pearl); }

/* --------------------------------------------------------------------------
   Wordmark  (dotless "ı" crowned by the red wing)
   -------------------------------------------------------------------------- */
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.wordmark-name {
  font-weight: 800; font-size: 1.7rem; letter-spacing: -0.035em; color: var(--black);
}
.wordmark-i { position: relative; display: inline-block; }
.wordmark-i svg {
  position: absolute; left: 50%; top: -0.04em;
  width: 0.5em; height: 0.4em; transform: translateX(-30%);
  fill: var(--red);
}
.wordmark-tag {
  margin-top: 5px; font-size: .62rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--black); padding-left: 2px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 248, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(20,20,22,.4); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.site-nav { margin-left: auto; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 32px; }
.site-nav ul a { font-weight: 500; font-size: .98rem; position: relative; padding: 6px 0; }
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--black);
  transition: transform .25s, top .25s;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 104px) 0 32px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; }

.hero-title {
  font-weight: 900;
  font-size: clamp(2.2rem, 4.3vw, 4rem);
  line-height: .98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero-lead { margin-top: 28px; max-width: 34rem; font-size: 1.15rem; color: var(--ink-2); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.glass-glow {
  position: absolute; inset: 30% 26% 26% 30%;
  background: radial-gradient(closest-side, rgba(196, 18, 48, .55), rgba(196, 18, 48, 0));
  filter: blur(28px);
  animation: pulse 7s ease-in-out infinite;
}
.orbits { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 90s linear infinite; }
.orbits ellipse { fill: none; stroke: rgba(20, 20, 22, .22); stroke-width: 1; }
.orbits ellipse.faint { stroke-dasharray: 2 6; stroke: rgba(20, 20, 22, .18); }
.orbits .dot { fill: var(--black); }
.orbits .dot-red { fill: var(--red); }
.glass-wing { overflow: visible;
  position: absolute; inset: 18%; width: 64%; height: 64%;
  filter: drop-shadow(0 30px 40px rgba(20, 20, 22, .18)) drop-shadow(0 2px 2px rgba(20, 20, 22, .08));
  animation: float 8s ease-in-out infinite;
}
.wing-refraction { fill: var(--red); opacity: .22; transform: translate(26px, 18px); filter: blur(10px); }

.hero-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: clamp(32px, 6vw, 72px); color: var(--zinc);
}
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: .85rem; color: var(--ink-2); }
.scroll-cue svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; animation: nudge 2.4s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--pearl-2); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2, .contact-info h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; }
.section-lead { margin-top: 20px; font-size: 1.1rem; color: var(--ink-2); max-width: 40rem; }

/* Practice overview grid — thin dividers, red line icons */
.practice-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}
.practice-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 40px 36px 44px;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s;
}
.practice-card:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.practice-card:hover { background: var(--pearl-2); }
.practice-card .icon { width: 44px; height: 44px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.practice-card .icon .thin { stroke-width: 1; opacity: .6; }
.practice-card .mono { color: var(--zinc); }
.practice-card h3 { font-size: 1.35rem; font-weight: 700; }
.practice-card p { color: var(--ink-2); font-size: .98rem; }
.card-link { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .92rem; color: var(--red); }
.card-link::after { content: " →"; display: inline-block; transition: transform .2s; }
.practice-card:hover .card-link::after { transform: translateX(4px); }
.practice-card-cta .icon { fill: var(--red); stroke: none; }

/* Practice detail */
.practices { border-top: 1px solid var(--line); }
.practice { padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.practice:nth-child(even) { background: var(--pearl-2); }
.practice-grid-detail { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.practice-head { position: sticky; top: calc(var(--header-h) + 32px); }
.practice-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; }
.practice-head > p:not(.eyebrow) { margin-top: 20px; color: var(--ink-2); font-size: 1.08rem; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags li {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em;
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2);
}

.service-list li { padding: 28px 0; border-top: 1px solid var(--line); }
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list h3 { font-size: 1.2rem; font-weight: 600; color: var(--red); margin-bottom: 8px; }
.service-list p { color: var(--ink-2); }

/* Stats — Attitude Black structural band */
.stats { background: var(--black); color: var(--pearl); padding: clamp(56px, 7vw, 88px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding-left: 24px; border-left: 2px solid var(--red); }
.stat strong { font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.stat span { color: rgba(245, 246, 248, .75); max-width: 18rem; }

/* Mission / Vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card {
  background: var(--pearl-2); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px);
  border-top: 3px solid var(--red);
}
.mv-card h3 { font-size: 1.5rem; font-weight: 700; color: var(--red); margin-bottom: 16px; }
.mv-card p { color: var(--ink-2); font-size: 1.05rem; }

/* Values */
.values { margin-top: clamp(64px, 8vw, 104px); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.values-grid li { padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line); }
.values-grid li:not(:nth-child(4n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.values-grid .mono { color: var(--red); }
.values-grid h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; }
.values-grid p { font-size: .95rem; color: var(--ink-2); }

/* Method */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--black); }
.steps li:first-child { border-top-color: var(--red); }
.step-num { font-family: var(--mono); font-size: .85rem; color: var(--red); }
.steps h3 { font-size: 1.4rem; font-weight: 700; margin: 0 0 12px; }
.steps p { color: var(--ink-2); font-size: .98rem; }

/* CTA band — "impact" red version */
.cta-band { background: var(--red); color: var(--pearl); padding: clamp(56px, 7vw, 88px) 0; }
.cta-inner { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 48px); align-items: center; }
.cta-mark { width: 88px; height: 76px; fill: var(--black); }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
.cta-band p { margin-top: 10px; color: rgba(245, 246, 248, .88); max-width: 40rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-list { margin-top: 40px; display: grid; gap: 24px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list svg {
  width: 48px; height: 48px; padding: 12px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%;
  fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round;
}
.contact-list .mono { display: block; color: var(--zinc); font-size: .72rem; }
.contact-list a { font-size: 1.15rem; font-weight: 600; }
.contact-list a:hover { color: var(--red); }

.contact-form {
  background: var(--pearl-2); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px);
  display: grid; gap: 20px; box-shadow: var(--shadow-soft);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field span { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--black);
  background: var(--pearl); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(196, 18, 48, .15);
}
.field .is-invalid, .field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.consent input { margin-top: 4px; accent-color: var(--red); }
.consent a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.contact-form .btn { justify-self: start; }
.form-status { font-size: .92rem; color: var(--ink-2); min-height: 1.4em; }
.form-status.is-error { color: var(--red); }
.form-status.is-ok { color: var(--ink); font-weight: 500; }

/* Honeypot. Off-screen rather than display:none, because some bots skip hidden
   fields: this one looks real to them and is unreachable for everyone else. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The Turnstile slot only takes up space once the widget is actually injected. */
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin-top: 4px; }

/* Submitting state: the button keeps its width so the layout does not jump. */
.contact-form.is-sending { cursor: progress; }
.contact-form.is-sending .btn,
.contact-form .btn[disabled] { opacity: .6; pointer-events: none; }

/* Footer — dark mode logo version */
.site-footer { background: var(--black); color: var(--pearl); padding: clamp(56px, 7vw, 88px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; }
.footer-mark { width: 56px; height: 48px; fill: var(--red); margin-bottom: 18px; }
.site-footer .wordmark-name, .site-footer .wordmark-tag { color: var(--pearl); }
.footer-quote { margin-top: 20px; color: rgba(245, 246, 248, .65); font-style: italic; max-width: 22rem; }
.site-footer h4 { font-family: var(--mono); font-weight: 500; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 246, 248, .55); margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer ul a { color: rgba(245, 246, 248, .88); font-size: .95rem; }
.site-footer ul a:hover { color: var(--pearl); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(245, 246, 248, .12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: rgba(245, 246, 248, .8);
}
.footer-bottom a:hover { color: var(--pearl); }

/* --------------------------------------------------------------------------
   Reveal on scroll (only when JS is running)
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid li, .values-grid li:not(:nth-child(4n+1)) { padding: 28px 24px 32px 0; border-left: 0; }
  .values-grid li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 24px var(--gutter) 32px;
    background: var(--pearl); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(20, 20, 22, .35);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a { display: block; padding: 12px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; order: -1; margin-bottom: -24px; }

  .practice-grid { grid-template-columns: 1fr 1fr; }
  .practice-card:not(:nth-child(3n)) { border-right: 0; }
  .practice-card:nth-child(odd) { border-right: 1px solid var(--line); }

  .practice-grid-detail { grid-template-columns: 1fr; }
  .practice-head { position: static; }

  .mv-grid, .contact-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-mark { width: 64px; height: 56px; }
  .cta-inner .btn { justify-self: start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .practice-grid, .stats-grid, .values-grid, .steps, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .practice-card, .practice-card:nth-child(odd) { border-right: 0; padding: 32px 0 36px; }
  .practice-card:hover { background: transparent; }
  .values-grid li, .values-grid li:nth-child(even) { padding: 24px 0 28px; border-left: 0; }
  .hero-foot .mono { display: none; }
  .hero-foot { justify-content: center; }
  .contact-list a { font-size: 1rem; word-break: break-word; }
}

.values-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 32px; }

/* --------------------------------------------------------------------------
   Clients page — dark version (Attitude Black base, red accent, pearl text)
   -------------------------------------------------------------------------- */
.page-dark { background: var(--black); color: var(--pearl); }
.page-dark .site-header { background: rgba(20, 20, 22, .82); }
.page-dark .site-header.is-scrolled { border-bottom-color: rgba(245, 246, 248, .1); }
.page-dark .wordmark-name, .page-dark .wordmark-tag { color: var(--pearl); }
.page-dark .site-nav ul a { color: rgba(245, 246, 248, .72); }
.page-dark .site-nav ul a:hover, .page-dark .site-nav ul a.is-active { color: var(--pearl); }
.page-dark .nav-toggle span { background: var(--pearl); }
.page-dark .site-footer { border-top: 1px solid rgba(245, 246, 248, .1); }

.btn-outline-light { border-color: rgba(245, 246, 248, .5); color: var(--pearl); }
.btn-outline-light:hover { background: var(--pearl); color: var(--black); }

.clients { padding: clamp(32px, 5vw, 56px) 0 clamp(72px, 10vw, 120px); }
.clients .container { border-top: 0; }
.breadcrumb { display: flex; gap: 10px; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(245, 246, 248, .55); }
.breadcrumb a { color: rgba(245, 246, 248, .8); }
.breadcrumb a:hover { color: var(--pearl); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }
.breadcrumb [aria-current] { color: var(--red); }

.clients-head { margin: 28px 0 clamp(32px, 5vw, 56px); padding-bottom: 28px; border-bottom: 1px solid rgba(245, 246, 248, .12); }
.clients-head h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; }
.clients-sub { margin-top: 10px; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(245, 246, 248, .7); }

.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.client-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 20px 20px 28px;
  background: #1b1b1e; border: 1px solid rgba(245, 246, 248, .12); border-radius: 12px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.client-card:hover { border-color: rgba(196, 18, 48, .7); transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(196, 18, 48, .45); }
.client-logo {
  position: relative; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 20px;
  display: grid; place-items: center; padding: 18px;
  background: var(--pearl); border-radius: 8px; overflow: hidden;
}
.client-logo img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.client-logo-fallback { display: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.15; color: var(--black); }
.client-logo.no-logo img { display: none; }
.client-logo.no-logo .client-logo-fallback { display: block; }
.client-card h2 { font-size: 1.2rem; font-weight: 600; color: var(--pearl); letter-spacing: -0.01em; }
.client-card p { margin-top: 6px; font-size: .9rem; color: rgba(245, 246, 248, .7); }

.client-card-cta .client-logo { background: transparent; border: 1px dashed rgba(245, 246, 248, .2); }
.client-card-cta .client-logo svg { width: 56px; height: 56px; fill: none; stroke: var(--red); stroke-width: 3.5; stroke-linecap: round; transition: transform .3s; }
.client-card-cta:hover .client-logo svg { transform: rotate(90deg); }

.clients-back { margin-top: clamp(40px, 6vw, 64px); display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 1080px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .page-dark .site-nav { background: var(--black); border-bottom-color: rgba(245, 246, 248, .1); }
  .page-dark .site-nav ul a { border-bottom-color: rgba(245, 246, 248, .1); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .clients-grid { grid-template-columns: 1fr; } }

/* Contact form modal (clients page) */
button.client-logo { font: inherit; color: inherit; cursor: pointer; }
.contact-dialog {
  position: fixed; width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-top: 3px solid var(--red); border-radius: var(--radius); overflow: auto;
  background: var(--pearl); color: var(--black);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .6);
}
.contact-dialog::backdrop { background: rgba(20, 20, 22, .72); backdrop-filter: blur(4px); }
.contact-dialog[open] { animation: dialog-in .25s ease; }
.contact-dialog-body {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 52px);
}
.contact-dialog-info h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; padding-right: 48px; }
.contact-dialog-info .section-lead { margin-top: 12px; }
.contact-dialog .contact-list { margin-top: 32px; }
.dialog-close {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--pearl); cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.dialog-close:hover { background: var(--black); border-color: var(--black); }
.dialog-close svg { width: 18px; height: 18px; fill: none; stroke: var(--black); stroke-width: 2; stroke-linecap: round; }
.dialog-close:hover svg { stroke: var(--pearl); }
.contact-dialog .contact-form { box-shadow: none; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .contact-dialog-body { grid-template-columns: 1fr; } }

/* Back to top (home page) */
.back-to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 40;
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; background: var(--red); color: var(--pearl);
  box-shadow: 0 12px 28px -10px rgba(196, 18, 48, .7);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background-color .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--black); }
.back-to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html:not(.js) .back-to-top { opacity: 1; visibility: visible; transform: none; }

/* Social accounts (contact section) */
.social-title { margin-top: 40px; color: var(--zinc); font-size: .72rem; }
.social-list { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.social-list a { display: flex; align-items: center; gap: 14px; }
.social-list svg {
  width: 48px; height: 48px; padding: 13px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%;
  fill: var(--red); transition: background-color .2s, border-color .2s, fill .2s;
}
.social-list a:hover svg { background: var(--red); border-color: var(--red); fill: var(--pearl); }
.social-list .mono { display: block; color: var(--zinc); font-size: .72rem; }
.social-list strong { font-weight: 600; }
.social-list a:hover strong { color: var(--red); }
@media (max-width: 380px) { .social-list { grid-template-columns: 1fr; } }

/* Social accounts (footer) */
.site-footer .footer-social { display: inline-flex; align-items: center; gap: 10px; }
.footer-social svg { width: 18px; height: 18px; flex: none; fill: var(--red); transition: fill .2s; }
.footer-social:hover svg { fill: var(--pearl); }

/* Language switch (ES / EN) */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; flex: none; }
.lang-switch a {
  padding: 7px 11px; border-radius: 999px;
  font: 500 .76rem/1 var(--mono); letter-spacing: .06em; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.lang-switch a:not([aria-current]):hover { color: var(--red); }
.lang-switch a[aria-current] { background: var(--black); color: var(--pearl); }
.page-dark .lang-switch { border-color: rgba(245, 246, 248, .25); }
.page-dark .lang-switch a { color: rgba(245, 246, 248, .72); }
.page-dark .lang-switch a[aria-current] { background: var(--pearl); color: var(--black); }
@media (max-width: 900px) {
  .lang-switch { margin-left: auto; }
  .nav-toggle { order: 3; }
}

/* ---- Página legal (aviso de privacidad) ---- */
.legal-inner { max-width: 760px; }
.legal-inner h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; }
.legal-meta { color: var(--zinc); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin: 8px 0 40px; }
.legal-inner h2 { font-size: 1.12rem; font-weight: 700; color: var(--red); margin: 40px 0 12px; }
.legal-inner p, .legal-inner li { color: var(--ink-2); line-height: 1.75; }
.legal-inner p { margin: 0 0 14px; }
.legal-inner ul, .legal-inner ol { margin: 0 0 16px; padding-left: 22px; }
.legal-inner li { margin-bottom: 7px; }
.legal-inner a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.legal-inner strong { color: var(--black); font-weight: 600; }
.legal-back { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-inner .legal-back a { text-decoration: none; }

.form-note { font-size: .78rem; line-height: 1.6; color: var(--zinc); margin: -4px 0 8px; }
.form-note a { color: var(--zinc); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Página 404 (sobre .page-dark) ---- */
.notfound { padding: clamp(64px, 11vw, 140px) 0 clamp(72px, 10vw, 120px); }
.notfound-inner { max-width: 760px; }
.notfound-mark { width: 60px; height: 52px; fill: var(--red); margin-bottom: 28px; }
.notfound-code {
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin: 0 0 14px;
}
.notfound-inner h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em;
  color: var(--pearl); margin: 0 0 18px;
}
.notfound-lead { font-size: 1.05rem; line-height: 1.7; color: rgba(245, 246, 248, .72); margin: 0 0 36px; max-width: 54ch; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(48px, 7vw, 72px); }

.notfound-links h2 {
  font: 500 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(245, 246, 248, .55); margin: 0 0 20px;
}
.notfound-links ul { display: grid; gap: 2px; }
.notfound-links a {
  display: grid; gap: 3px; padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid transparent; transition: background-color .2s, border-color .2s;
}
.notfound-links a:hover, .notfound-links a:focus-visible {
  background: rgba(245, 246, 248, .05); border-color: rgba(245, 246, 248, .14);
}
.notfound-links strong { font-weight: 600; color: var(--pearl); }
.notfound-links a:hover strong { color: var(--red); }
.notfound-links span { font-size: .9rem; color: rgba(245, 246, 248, .6); }
@media (max-width: 560px) {
  .notfound-actions .btn { width: 100%; justify-content: center; }
}
