@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@layer reset, base, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, ol, ul, figure { margin: 0; }
  ol, ul { padding: 0; }
  img { display: block; max-width: 100%; }
  button, a { font: inherit; }
}

@layer base {
  :root {
    --ink: #080807;
    --ink-soft: #0e0e0c;
    --paper: #eeeae0;
    --paper-deep: #dad4c8;
    --gold: #c6a13b;
    --gold-light: #f0d987;
    --muted-dark: #a7a39a;
    --muted-light: #5c5a53;
    --line-dark: rgba(239, 235, 224, 0.18);
    --line-light: rgba(12, 12, 10, 0.2);
    --gutter: clamp(20px, 4.25vw, 82px);
    --ease-patient: cubic-bezier(0.19, 1, 0.22, 1);
    --font-instrument: "Instrument Sans";
    --font-newsreader: "Newsreader";
    --font-plex: "IBM Plex Mono";
  }

  body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-instrument), Arial, sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
  }

  a { color: inherit; text-decoration: none; }
  button { color: inherit; }
  ::selection { background: var(--gold); color: var(--ink); }

  .mono,
  .eyebrow,
  .section-index {
    font-family: var(--font-plex), ui-monospace, monospace;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .skip-link {
    position: fixed;
    z-index: 100;
    top: -80px;
    left: 18px;
    padding: 13px 16px;
    background: var(--gold-light);
    color: var(--ink);
  }

  .skip-link:focus { top: 18px; }
  :focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }

  h1, h2, h3 {
    font-weight: 400;
    letter-spacing: -0.065em;
  }

  h1 em, h2 em {
    color: var(--gold-light);
    font-family: var(--font-newsreader), Georgia, serif;
    font-weight: 400;
  }

  h2 { font-size: clamp(3.4rem, 7.1vw, 8.7rem); line-height: 0.9; font-weight: 500; }
  h3 { font-weight: 500; }
  .section-index { font-size: 0.75rem; line-height: 1.4; }
  .section-dark { background: var(--ink-soft); }
}

@layer components {
  .site-header {
    position: absolute;
    z-index: 20;
    inset: 0 0 auto;
    height: 82px;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--line-dark);
  }

  .wordmark {
    width: max-content;
    font-size: 1.82rem;
    font-weight: 600;
    letter-spacing: -0.09em;
  }

  .wordmark span { color: var(--gold); }
  .site-nav {
    --gooey-color-1: #c6a13b;
    --gooey-color-2: #f0d987;
    --gooey-color-3: #8b6d24;
    --gooey-color-4: #eeeae0;
    position: relative;
    display: flex;
    transform: translate3d(0, 0, 0.01px);
  }
  .site-nav ul {
    position: relative;
    z-index: 3;
    display: flex;
    gap: clamp(8px, 1.1vw, 18px);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .site-nav li {
    position: relative;
    border-radius: 999px;
    color: #d1cdc3;
    cursor: pointer;
    transition: color 220ms ease, box-shadow 220ms ease;
  }
  .site-nav a, .header-contact { min-height: 44px; display: flex; align-items: center; font-size: 0.84rem; }
  .site-nav a { position: relative; padding: 0 13px; color: inherit; }
  .site-nav li:hover { color: var(--gold-light); }
  .site-nav li:focus-within { box-shadow: 0 0 0 1px var(--gold-light); }
  .site-nav li.is-active { color: var(--ink); text-shadow: none; }
  .site-nav li.is-active::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 3px 0;
    border-radius: 999px;
    background: var(--gold);
    transform: scale(1);
  }
  .gooey-effect {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    display: grid;
    place-items: center;
    opacity: 1;
    pointer-events: none;
  }
  .gooey-text {
    z-index: 4;
    overflow: hidden;
    color: transparent;
    font-size: 0.84rem;
    white-space: nowrap;
  }
  .gooey-text.is-active { color: var(--ink); }
  .gooey-filter {
    filter: blur(6px) contrast(80) blur(0);
    mix-blend-mode: lighten;
  }
  .gooey-filter::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 3px 0;
    border-radius: 999px;
    background: var(--gold);
    opacity: 0;
    transform: scale(0);
  }
  .gooey-filter.is-active::after { animation: shalub-gooey-pill 320ms ease both; }
  .gooey-particle,
  .gooey-point {
    width: 14px;
    height: 14px;
    display: block;
    border-radius: 50%;
    opacity: 0;
    transform-origin: center;
  }
  .gooey-particle {
    position: absolute;
    top: calc(50% - 7px);
    left: calc(50% - 7px);
    animation: shalub-gooey-particle var(--time) ease 1 -300ms;
  }
  .gooey-point {
    background: var(--color);
    opacity: 1;
    animation: shalub-gooey-point var(--time) ease 1 -300ms;
  }

  .header-contact {
    justify-self: end;
    gap: 12px;
    border-bottom: 1px solid var(--gold);
    color: var(--gold-light);
  }

  .menu-toggle { display: none; }

  @keyframes shalub-gooey-pill {
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes shalub-gooey-particle {
    0% { transform: rotate(0deg) translate(var(--start-x), var(--start-y)); opacity: 1; animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
    70% { transform: rotate(calc(var(--rotate) * .5)) translate(calc(var(--end-x) * 1.2), calc(var(--end-y) * 1.2)); opacity: 1; animation-timing-function: ease; }
    85% { transform: rotate(calc(var(--rotate) * .66)) translate(var(--end-x), var(--end-y)); opacity: 1; }
    100% { transform: rotate(calc(var(--rotate) * 1.2)) translate(calc(var(--end-x) * .5), calc(var(--end-y) * .5)); opacity: 1; }
  }

  @keyframes shalub-gooey-point {
    0% { transform: scale(0); opacity: 0; animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
    25% { transform: scale(calc(var(--scale) * .25)); }
    38%, 85% { transform: scale(var(--scale)); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
  }

  .hero {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    padding: 110px var(--gutter) 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--ink);
  }

  .hero-grid {
    position: absolute;
    z-index: -3;
    inset: 82px var(--gutter) 26px;
    opacity: 0;
    background-image:
      linear-gradient(to right, rgba(255,255,255,0.09) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 25% 100%, 100% 25%;
    mask-image: linear-gradient(to bottom, transparent, black 17%, black 82%, transparent);
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: min(75vw, 1210px);
    padding-bottom: clamp(55px, 8vh, 102px);
  }

  .eyebrow { color: var(--gold-light); font-size: 0.75rem; }

  .hero h1 {
    margin-top: 24px;
    font-size: clamp(4.8rem, 9.2vw, 10.8rem);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.068em;
  }

  .hero h1 > span { display: block; white-space: nowrap; }
  .hero h1 em { font-size: 0.9em; }

  .hero-support {
    display: flex;
    align-items: flex-end;
    gap: 32px;
    margin-top: clamp(36px, 5vh, 66px);
  }

  .hero-support p {
    width: min(42ch, 100%);
    color: #c9c5bb;
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .button {
    min-height: 54px;
    min-width: 250px;
    padding: 15px 16px 15px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 999px;
    transition: transform 480ms var(--ease-patient), background-color 480ms var(--ease-patient);
  }

  .button:hover { transform: translateY(-2px); }
  .button-gold { background: var(--gold); color: #131109; }
  .button-gold:hover { background: var(--gold-light); }
  .button-dark { background: var(--ink); color: var(--paper); }
  .button-dark:hover { background: #1a1915; }

  .hero-matter {
    position: absolute;
    z-index: -1;
    inset: 82px 0 0;
    pointer-events: none;
    opacity: 1;
  }

  .hero-matter canvas,
  .matter-fallback { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; }
  .matter-fallback { object-fit: cover; opacity: 0.82; }
  .hero-matter.is-live .matter-fallback { opacity: 0; }

  .eyebrow.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
  .eyebrow.hero-eyebrow span:first-child { color: var(--paper); }
  .eyebrow.hero-eyebrow span:last-child::before { content: '— '; }

  .manifesto { padding: clamp(105px, 13vw, 190px) var(--gutter); border-top: 1px solid var(--line-dark); }
  .manifesto .section-index, .crm .section-index { color: var(--gold-light); }

  .manifesto-layout {
    margin-top: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    gap: 8vw;
    align-items: end;
  }

  .manifesto-note { max-width: 420px; }
  .manifesto-note p { color: #c5c0b5; font-size: 1.02rem; line-height: 1.65; }

  .journey { margin-top: clamp(80px, 10vw, 145px); list-style: none; border-top: 1px solid var(--line-dark); }
  .journey li {
    min-height: 118px;
    display: grid;
    grid-template-columns: 75px minmax(190px, 0.72fr) 1fr;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--line-dark);
  }
  .journey-number { color: #817d73; font-size: 0.64rem; }
  .journey strong { font-size: clamp(1.9rem, 3.4vw, 3.6rem); font-weight: 400; letter-spacing: -0.05em; }
  .journey p { max-width: 32ch; color: #a7a39a; line-height: 1.5; }
  .journey li:last-child strong { color: var(--gold-light); font-family: var(--font-newsreader), Georgia, serif; font-style: italic; }

  .work { padding: clamp(105px, 13vw, 190px) var(--gutter); background: var(--paper); color: #11110f; }
  .work .section-index { color: #705817; }
  .work-heading h2 { margin-top: 36px; }
  .work h2 em { color: #80651d; }
  .project-list { margin-top: clamp(80px, 10vw, 145px); }
  .project { width: min(83vw, 1260px); margin-bottom: clamp(90px, 12vw, 175px); }
  .project:nth-child(2) { width: min(64vw, 960px); margin-left: auto; }
  .project:nth-child(3) { width: min(72vw, 1080px); margin-left: 7vw; margin-bottom: 0; }
  .project-media { position: relative; overflow: hidden; background: #d3cec2; }
  .project-media::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,0.18); pointer-events: none; }
  .project-media img { width: 100%; height: auto; transition: transform 800ms cubic-bezier(.2,.72,.18,1), filter 500ms ease; }
  .project a:hover img { transform: scale(1.025); filter: saturate(0.82); }
  .project-open { position: absolute; right: 14px; bottom: 14px; padding: 11px 13px; background: rgba(8,8,7,0.88); color: var(--paper); font-size: 0.75rem; font-weight: 600; }
  .project-caption { margin-top: 17px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 20px; }
  .project-caption h3 { font-size: clamp(1.7rem, 3vw, 3rem); font-weight: 500; }
  .project-caption p { color: #5e5b53; font-size: 1rem; }

  .crm { padding: clamp(105px, 13vw, 190px) var(--gutter); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 8vw; align-items: center; }
  .crm h2 { margin-top: 34px; }
  .crm-copy > p { max-width: 43ch; margin-top: 36px; color: #bcb8ae; font-size: 1.03rem; line-height: 1.65; }
  .crm-figure { position: relative; }
  .crm-figure::before { content: ""; position: absolute; inset: -24px 8% 18px -24px; border: 1px solid rgba(198,161,59,0.28); }
  .crm-figure img { position: relative; width: 100%; height: auto; filter: saturate(0.78) contrast(1.03); }
  .crm-figure figcaption { margin-top: 15px; color: #817d73; font-size: 0.58rem; }

  .testimonials { padding: clamp(105px, 13vw, 190px) var(--gutter); color: var(--paper); }
  .testimonials .section-index { color: var(--gold-light); }
  .testimonials-heading { display: grid; grid-template-columns: 0.45fr 1fr 0.55fr; gap: 5vw; align-items: end; }
  .testimonials h2 { font-size: clamp(3.5rem, 7vw, 8.2rem); }
  .testimonials h2 em { color: var(--gold-light); }
  .testimonials-heading > p { max-width: 35ch; line-height: 1.58; color: #c5c0b5; }
  .testimonial-grid { margin-top: clamp(70px, 9vw, 120px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 46px); align-items: start; }
  .testimonial-card:nth-child(2) { margin-top: clamp(40px, 6vw, 92px); }
  .testimonial-player { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #090908; border: 1px solid var(--line-dark); overflow: hidden; }
  .testimonial-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .testimonial-play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: #090908; cursor: pointer; }
  .testimonial-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,7,0.72), transparent 42%); }
  .testimonial-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 650ms cubic-bezier(.2,.72,.18,1), filter 300ms ease; }
  .testimonial-play:hover img { transform: scale(1.025); filter: saturate(0.82); }
  .testimonial-play span { position: absolute; z-index: 1; left: 18px; bottom: 18px; padding: 12px 15px; background: var(--gold); color: var(--ink); font-weight: 600; font-size: 0.88rem; }
  .testimonial-caption { padding-top: 20px; border-top: 1px solid var(--gold); }
  .testimonial-caption h3 { font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 500; }
  .testimonial-caption p { margin-top: 6px; color: #aaa69d; font-size: 1rem; }

  .services { padding: clamp(105px, 13vw, 190px) var(--gutter); }
  .services-heading h2 { margin-top: 34px; }
  .services-list { margin-top: clamp(75px, 9vw, 130px); border-top: 1px solid var(--line-dark); }
  .services-list article { min-height: 126px; display: grid; grid-template-columns: minmax(260px, 0.8fr) 1fr; align-items: center; gap: 30px; border-bottom: 1px solid var(--line-dark); }
  .services-list h3 { font-size: clamp(2rem, 4vw, 4.2rem); }
  .services-list p { max-width: 43ch; color: #a7a39a; line-height: 1.55; }
  .section-paper .services-list,
  .section-paper .services-list article { border-color: var(--line-light); }
  .section-paper .services-list p { color: var(--muted-light); }

  .closing { min-height: 84svh; padding: clamp(105px, 12vw, 175px) var(--gutter); display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-dark); }
  .closing .section-index { color: var(--gold-light); }
  .closing h2 em { color: var(--gold-light); }

  .footer { padding: 25px var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; border-top: 1px solid var(--line-dark); color: #8c887f; font-size: 0.58rem; }
  .footer span:nth-child(2) { text-align: center; }
  .footer a { justify-self: end; color: var(--paper); }
  .footer-links { justify-self: end; display: flex; gap: 22px; }

  .inner-main { background: var(--ink); }
  .inner-hero {
    min-height: 88svh;
    padding: clamp(150px, 18vh, 220px) var(--gutter) clamp(90px, 11vw, 150px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    background:
      linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
      radial-gradient(ellipse at 78% 48%, rgba(128,88,14,0.2), transparent 34%),
      var(--ink);
    background-size: 25% 100%, auto, auto;
    border-bottom: 1px solid var(--line-dark);
  }
  .inner-hero h1,
  .legal-hero h1 {
    max-width: 11ch;
    margin-top: 26px;
    font-size: clamp(4.2rem, 9vw, 10.5rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
    font-weight: 400;
  }
  .inner-hero h1 em { color: var(--gold-light); font-family: var(--font-newsreader), Georgia, serif; font-weight: 400; }
  .inner-lead { max-width: 42ch; margin-top: 38px; color: #c9c5bb; font-size: 1.12rem; line-height: 1.58; }
  .inner-hero .button { margin-top: 34px; }

  .section-paper { background: var(--paper); color: #11110f; }
  .section-paper .section-index { color: #705817; }
  .section-paper h1 em, .section-paper h2 em, .section-paper h3 em { color: #705817; }
  .inner-editorial { padding: clamp(100px, 13vw, 190px) var(--gutter); }
  .inner-editorial-grid { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 9vw; align-items: start; }
  .inner-editorial h2 { font-size: clamp(3.2rem, 6.5vw, 7.4rem); }
  .prose { max-width: 720px; }
  .prose p, .prose li { font-size: 1rem; line-height: 1.75; }
  .prose p + p { margin-top: 24px; }
  .prose a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

  .capabilities, .regions { padding: clamp(100px, 13vw, 190px) var(--gutter); }
  .capabilities .section-index, .regions .section-index { color: var(--gold-light); }
  .capability-grid { margin-top: 45px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
  .capability-grid article { min-height: 360px; padding: clamp(30px, 5vw, 70px) 5vw 40px 0; border-bottom: 1px solid var(--line-dark); }
  .capability-grid article + article { padding-inline: 5vw 0; border-left: 1px solid var(--line-dark); }
  .capability-grid h2 { font-size: clamp(2.7rem, 5vw, 5.8rem); }
  .capability-grid p { max-width: 42ch; margin-top: 30px; color: #aaa69d; font-size: 1rem; line-height: 1.65; }

  .offer-panel { padding: clamp(85px, 10vw, 145px) var(--gutter); display: grid; grid-template-columns: 1.1fr 0.9fr auto; gap: 6vw; align-items: end; background: var(--paper); color: var(--ink); }
  .offer-panel .eyebrow { color: #705817; }
  .offer-panel h2 { margin-top: 22px; font-size: clamp(3rem, 6vw, 6.8rem); }
  .offer-panel ul { list-style: none; border-top: 1px solid var(--line-light); }
  .offer-panel li { padding: 13px 0; border-bottom: 1px solid var(--line-light); font-size: 1rem; }
  .offer-price { align-self: start; }
  .offer-price > span { display: block; color: var(--muted-light); text-decoration: line-through; }
  .offer-price strong { display: block; margin-top: 7px; color: #705817; font-size: clamp(2.3rem, 4vw, 4.5rem); letter-spacing: -0.06em; }
  .offer-price p { margin-top: 4px; font-size: 1rem; }
  .offer-panel .button { grid-column: 3; }

  .inner-cta { min-height: 75svh; padding: clamp(105px, 13vw, 190px) var(--gutter); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; border-top: 1px solid var(--line-dark); }
  .inner-cta h2 { max-width: 12ch; }
  .inner-cta .eyebrow { color: var(--gold-light); }

  .region-list { margin-top: 50px; border-top: 1px solid var(--line-dark); }
  .region-list article { padding: 34px 0; display: grid; grid-template-columns: minmax(190px, 0.45fr) 1fr; gap: 5vw; border-bottom: 1px solid var(--line-dark); }
  .region-list h2 { font-size: clamp(2rem, 4vw, 4rem); }
  .state-links { display: flex; flex-wrap: wrap; align-content: start; gap: 10px; }
  .state-links a { padding: 10px 12px; border: 1px solid var(--line-dark); color: #c8c4ba; font-size: 1rem; transition: color 180ms ease, border-color 180ms ease; }
  .state-links a:hover { color: var(--gold-light); border-color: var(--gold); }

  .portfolio-directory { padding: clamp(100px, 13vw, 190px) var(--gutter); }
  .portfolio-directory-list { margin-top: 42px; border-top: 1px solid var(--line-light); }
  .portfolio-directory-list a { min-height: 105px; display: grid; grid-template-columns: 1fr auto 24px; gap: 28px; align-items: center; border-bottom: 1px solid var(--line-light); }
  .portfolio-directory-list h2 { font-size: clamp(1.65rem, 3.2vw, 3.5rem); }
  .portfolio-directory-list span { color: #656159; font-size: 1rem; }
  .portfolio-directory-list a:hover h2 { color: #705817; }

  .legal-hero { padding: 180px var(--gutter) 90px; background: var(--ink); border-bottom: 1px solid var(--line-dark); }
  .legal-hero h1 { max-width: 14ch; font-size: clamp(4rem, 8vw, 9rem); }
  .legal-hero > p:last-child { margin-top: 26px; color: #aaa69d; font-size: 1rem; }
  .legal-document { padding: clamp(80px, 10vw, 140px) var(--gutter); }
  .legal-prose { max-width: 860px; margin: 0 auto; }
  .legal-prose section { margin-top: 62px; }
  .legal-prose h2 { margin-bottom: 22px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -0.05em; overflow-wrap: anywhere; }
  .legal-prose ul { margin: 20px 0 0 22px; }
  .legal-prose li + li { margin-top: 9px; }
}

@layer responsive {
  @media (max-width: 980px) {
    .site-header { grid-template-columns: 1fr auto auto; gap: 18px; }
    .site-nav {
      position: absolute;
      inset: 82px 0 auto;
      padding: 26px var(--gutter) 32px;
      display: none;
      flex-direction: column;
      gap: 4px;
      z-index: 25;
      background: var(--ink);
      border-bottom: 1px solid var(--line-dark);
    }
    .site-nav ul { width: 100%; flex-direction: column; gap: 4px; }
    .site-nav li { border-radius: 0; }
    .site-nav li.is-active { color: var(--gold-light); }
    .site-nav li.is-active::after,
    .gooey-effect { display: none; }
    .site-nav.is-open { display: flex; }
    .site-nav a { min-height: 50px; padding: 0; font-size: 1.15rem; }
    .menu-toggle { width: 44px; height: 44px; padding: 12px 8px; display: grid; align-content: center; gap: 7px; border: 0; background: var(--gold); cursor: pointer; }
    .menu-toggle span { justify-self: end; display: block; width: 23px; height: 1px; background: var(--ink); }
    .manifesto-layout, .crm { grid-template-columns: 1fr; }
    .manifesto-note { margin-top: 12px; }
    .crm { gap: 70px; }
    .testimonials-heading { grid-template-columns: 1fr 1fr; }
    .testimonials-heading .section-index { grid-column: 1 / -1; }
    .testimonial-grid { gap: 3vw; }
    .footer { grid-template-columns: 1fr; }
    .footer span:nth-child(2) { text-align: left; }
    .footer-links { justify-self: start; flex-wrap: wrap; }

  }

  @media (max-width: 720px) {
    .site-header { height: 68px; }
    .wordmark { font-size: 1.7rem; }
    .header-contact { display: none; }
    .menu-toggle { position: absolute; top: 12px; right: var(--gutter); z-index: 30; display: grid !important; background: var(--gold) !important; }
    .menu-toggle span { background: var(--ink); }
    .site-nav { inset-block-start: 68px; }

    .hero { min-height: 100svh; padding-top: 88px; }
    .hero-grid { top: 68px; background-size: 50% 100%, 100% 25%; }
    .hero-copy { max-width: 100%; justify-content: flex-start; padding-top: 13vh; padding-bottom: 24px; }
    .hero h1 { font-size: clamp(2.4rem, 10.5vw, 3.1rem); letter-spacing: -0.072em; }
    .hero-support { display: block; margin-top: 28px; }
    .hero-support p { font-size: 1rem; max-width: 34ch; }
    .hero-support .button { margin-top: 22px; }
    .hero-matter { inset: 68px 0 0; opacity: 1; }

    h2 { font-size: clamp(3rem, 13vw, 5.8rem); }
    .manifesto-layout { display: block; }
    .manifesto-note { margin-top: 30px; }
    .journey li { min-height: 105px; grid-template-columns: 42px 1fr; gap: 14px; }
    .journey p { grid-column: 2 / -1; padding-bottom: 22px; }

    .project, .project:nth-child(2), .project:nth-child(3) { width: 100%; margin-left: 0; }
    .project-caption { grid-template-columns: 1fr; gap: 8px; }
    .project-open { display: none; }

    .crm-figure::before { inset: -14px 5% 14px -14px; }
    .testimonials-heading { display: block; }
    .testimonials-heading h2 { margin-top: 30px; }
    .testimonials-heading > p { margin-top: 28px; }
    .testimonial-grid { grid-template-columns: 1fr; gap: 52px; }
    .testimonial-card, .testimonial-card:nth-child(2) { width: min(86vw, 420px); margin-top: 0; }
    .testimonial-card:nth-child(even) { margin-left: auto; }

    .services-list article { padding: 25px 0; grid-template-columns: 1fr; gap: 12px; }
    .closing { min-height: 70svh; }
    .closing .button { min-width: min(100%, 290px); }
    .footer { display: block; line-height: 2; }
    .footer span, .footer a { display: block; text-align: left !important; }
    .footer-links { display: flex !important; justify-content: flex-start; }

    .inner-hero { min-height: 78svh; padding-top: 130px; background-size: 50% 100%, auto, auto; }
    .inner-hero h1, .legal-hero h1 { font-size: clamp(3.35rem, 15vw, 5.5rem); }
    .inner-editorial-grid { grid-template-columns: 1fr; gap: 40px; }
    .capability-grid { grid-template-columns: 1fr; }
    .capability-grid article { min-height: auto; padding: 38px 0; }
    .capability-grid article + article { padding: 38px 0; border-left: 0; }
    .offer-panel { grid-template-columns: 1fr; align-items: start; }
    .offer-panel .button { grid-column: 1; }
    .region-list article { grid-template-columns: 1fr; }
    .portfolio-directory-list a { min-height: 92px; grid-template-columns: 1fr auto; gap: 12px; }
    .portfolio-directory-list a span:nth-of-type(1) { grid-column: 1; font-size: 0.9rem; }
    .portfolio-directory-list a span:last-child { grid-column: 2; grid-row: 1 / 3; }
    .legal-hero { padding-top: 130px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }
}

@layer components {
  .blog-hero {
    min-height: 66svh;
    padding: 170px var(--gutter) 90px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 8vw;
    align-items: end;
    border-bottom: 1px solid var(--line-dark);
    background: radial-gradient(ellipse at 80% 40%, rgba(128,88,14,.18), transparent 34%), var(--ink);
  }
  .blog-hero h1 { max-width: 10ch; margin-top: 22px; font-size: clamp(4rem, 9vw, 9rem); line-height: .9; letter-spacing: -.07em; font-weight: 400; }
  .blog-hero h1 em { color: var(--gold-light); font-family: var(--font-newsreader), Georgia, serif; font-weight: 400; }
  .blog-hero-copy { max-width: 42ch; color: #c9c5bb; font-size: 1.08rem; line-height: 1.65; }

  .category-nav { padding: 22px var(--gutter); display: flex; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid var(--line-dark); background: var(--ink-soft); }
  .category-nav a { padding: 10px 12px; border: 1px solid var(--line-dark); color: #c9c5bb; font-size: .9rem; }
  .category-nav a:hover, .category-nav a[aria-current="page"] { color: var(--ink); background: var(--gold); border-color: var(--gold); }

  .blog-index { padding: clamp(85px, 10vw, 150px) var(--gutter); background: var(--paper); color: var(--ink); }
  .blog-index-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; }
  .blog-index-heading h2 { max-width: 10ch; font-size: clamp(3rem, 6vw, 7rem); }
  .blog-index-heading p { max-width: 40ch; color: var(--muted-light); line-height: 1.6; }
  .post-list { margin-top: clamp(60px, 8vw, 110px); border-top: 1px solid var(--line-light); }
  .post-card a { min-height: 190px; padding: 30px 0; display: grid; grid-template-columns: minmax(150px, .34fr) 1fr auto; gap: 5vw; align-items: start; border-bottom: 1px solid var(--line-light); }
  .post-card-meta { color: #705817; font-family: var(--font-plex), monospace; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
  .post-card h2 { max-width: 18ch; font-size: clamp(2rem, 4vw, 4.4rem); line-height: .96; }
  .post-card p { max-width: 50ch; margin-top: 18px; color: var(--muted-light); font-size: 1rem; line-height: 1.6; }
  .post-card-action { align-self: center; font-weight: 600; }
  .empty-state { margin-top: 60px; padding: 40px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
  .empty-state h2 { font-size: clamp(2.2rem, 5vw, 5rem); }
  .empty-state p { max-width: 55ch; margin-top: 20px; color: var(--muted-light); line-height: 1.65; }

  .article-header { padding: 165px var(--gutter) 75px; border-bottom: 1px solid var(--line-dark); background: var(--ink); }
  .breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; color: #aaa69d; font-size: .88rem; }
  .breadcrumbs a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
  .article-header h1 { max-width: 16ch; margin-top: 40px; font-size: clamp(3.5rem, 7vw, 8.2rem); line-height: .91; letter-spacing: -.065em; font-weight: 400; }
  .article-deck { max-width: 58ch; margin-top: 34px; color: #c9c5bb; font-size: 1.18rem; line-height: 1.58; }
  .article-byline { margin-top: 42px; display: flex; align-items: center; gap: 16px; color: #aaa69d; }
  .author-photo, .author-placeholder { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); }
  .author-placeholder { display: grid; place-items: center; background: var(--gold); color: var(--ink); font-weight: 600; }
  .article-byline strong { display: block; color: var(--paper); font-weight: 500; }
  .article-byline span { display: block; margin-top: 3px; font-size: .88rem; }

  .article-shell { background: var(--paper); color: var(--ink); }
  .article-layout { width: min(100% - (var(--gutter) * 2), 1320px); margin: 0 auto; padding: clamp(70px, 9vw, 130px) 0; display: grid; grid-template-columns: minmax(0, 780px) minmax(220px, 1fr); gap: 9vw; align-items: start; }
  .quick-answer { margin-bottom: 55px; padding: 28px; border-left: 3px solid var(--gold); background: #e3ded2; }
  .quick-answer h2 { font-size: 1rem; font-family: var(--font-plex), monospace; letter-spacing: .08em; text-transform: uppercase; }
  .quick-answer p { margin-top: 15px; font-size: 1.08rem; line-height: 1.65; }
  .article-content { font-size: 1.08rem; line-height: 1.78; }
  .article-content > * + * { margin-top: 24px; }
  .article-content h2 { margin-top: 72px; font-size: clamp(2.5rem, 5vw, 5.3rem); line-height: .98; overflow-wrap: anywhere; }
  .article-content h3 { margin-top: 48px; font-size: clamp(1.8rem, 3.2vw, 3.2rem); line-height: 1.05; }
  .article-content ul, .article-content ol { padding-left: 24px; }
  .article-content li + li { margin-top: 9px; }
  .article-content a { color: #705817; text-decoration: underline; text-underline-offset: 3px; }
  .article-content blockquote { padding: 5px 0 5px 24px; border-left: 3px solid var(--gold); font-family: var(--font-newsreader), Georgia, serif; font-style: italic; font-size: 1.35em; }
  .article-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
  .article-content th, .article-content td { padding: 13px; border: 1px solid var(--line-light); text-align: left; vertical-align: top; }
  .article-content th { background: #dbd4c5; }
  .article-content img { width: 100%; height: auto; }
  .article-aside { position: sticky; top: 28px; padding-top: 18px; border-top: 1px solid #705817; }
  .article-aside h2 { font-size: 1.4rem; letter-spacing: -.03em; }
  .article-aside p { margin-top: 16px; color: var(--muted-light); font-size: 1rem; line-height: 1.55; }
  .article-aside .button { margin-top: 24px; min-width: 100%; }
  .article-sources, .article-faq { margin-top: 75px; padding-top: 40px; border-top: 1px solid var(--line-light); }
  .article-sources h2, .article-faq > h2 { font-size: clamp(2.3rem, 4vw, 4.2rem); }
  .article-sources ol { margin-top: 25px; padding-left: 24px; }
  .article-sources li + li { margin-top: 10px; }
  .article-sources a { color: #705817; text-decoration: underline; }
  .faq-item { padding: 25px 0; border-bottom: 1px solid var(--line-light); }
  .faq-item h3 { font-size: clamp(1.5rem, 2.5vw, 2.4rem); }
  .faq-item p { margin-top: 13px; font-size: 1rem; line-height: 1.65; }
  .author-box { margin-top: 75px; padding: 30px; display: grid; grid-template-columns: auto 1fr; gap: 22px; border: 1px solid var(--line-light); }
  .author-box h2 { font-size: 2rem; }
  .author-box p { margin-top: 10px; color: var(--muted-light); line-height: 1.6; }

  .legal-document .legal-prose > p:first-child { font-size: 1.08rem; }

  /* Portfólio: lista assimétrica de coluna única com hierarquia por escala
     (referência Vivid+Co) em vez de grade uniforme de cards. */
  .portfolio-gallery { padding: clamp(60px, 8vw, 110px) var(--gutter); position: relative; }

  .portfolio-prism { position: absolute; top: clamp(30px, 6vw, 90px); right: var(--gutter); width: clamp(90px, 11vw, 170px); height: auto; opacity: 0.92; animation: portfolio-prism-breathe 9s var(--ease-patient) infinite; }
  @keyframes portfolio-prism-breathe { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }

  .portfolio-list { margin-top: clamp(50px, 7vw, 90px); border-top: 1px solid var(--line-light); list-style: none; }
  .portfolio-feature a {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) clamp(150px, 18vw, 230px) auto;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    padding: clamp(22px, 3vw, 34px) 0;
    border-bottom: 1px solid var(--line-light);
    text-decoration: none;
    color: inherit;
  }
  .portfolio-index { color: var(--muted-light); font-size: 0.68rem; }
  .portfolio-feature h2 { font-size: clamp(1.8rem, 3.6vw, 3.4rem); font-weight: 400; letter-spacing: -0.03em; }
  .portfolio-feature .eyebrow { margin-top: 8px; color: #705817; }
  .portfolio-feature-media { overflow: hidden; background: #d3cec2; }
  .portfolio-feature-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 600ms var(--ease-patient); }
  .portfolio-feature a:hover .portfolio-feature-media img,
  .portfolio-feature a:focus-visible .portfolio-feature-media img { transform: scale(1.04); }
  .portfolio-feature-open { justify-self: end; font-size: 0.78rem; color: var(--muted-light); white-space: nowrap; transition: color 320ms var(--ease-patient); }
  .portfolio-feature a:hover .portfolio-feature-open,
  .portfolio-feature a:focus-visible .portfolio-feature-open { color: #11110f; }
}

@layer responsive {
  @media (max-width: 900px) {
    .blog-hero { grid-template-columns: 1fr; }
    .blog-index-heading { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-aside { position: static; }
    .portfolio-feature a { grid-template-columns: 40px minmax(0, 1fr) 130px; }
    .portfolio-feature-open { display: none; }
  }

  @media (max-width: 720px) {
    .blog-hero { min-height: 72svh; padding-top: 125px; }
    .blog-hero h1 { font-size: clamp(3.4rem, 15vw, 5.3rem); }
    .post-card a { grid-template-columns: 1fr auto; gap: 16px; }
    .post-card-meta { grid-column: 1 / -1; }
    .post-card p { grid-column: 1 / -1; }
    .article-header { padding-top: 125px; }
    .article-header h1 { font-size: clamp(3rem, 13vw, 5rem); }
    .article-layout { width: calc(100% - (var(--gutter) * 2)); }
    .article-content { font-size: 1rem; }
    .article-content table { display: block; overflow-x: auto; }
    .author-box { grid-template-columns: 1fr; }
    .portfolio-feature a { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; }
    .portfolio-index { display: none; }
    .portfolio-prism { width: 70px; top: 20px; }
  }
}
