@layer reset, tokens, base, components, layout, modal, motion, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { overflow-x: clip; scroll-behavior: smooth; }
  body, h1, h2, h3, p, figure, ol, ul { margin: 0; }
  ol, ul { padding: 0; list-style: none; }
  img { display: block; max-width: 100%; height: auto; }
  button, input, select, textarea { font: inherit; }
  button { color: inherit; }
  a { color: inherit; }
}

@layer tokens {
  :root {
    --violet: #56315f;
    --violet-hover: #785780;
    --violet-deep: #332438;
    --lilac: #d8c9da;
    --powder: #bed0df;
    --ink: #181218;
    --paper: #fffaf5;
    --surface: #fcfafb;
    --mist: #f4f0f3;
    --line: #d8c9da;
    --muted: #655d65;
    --white: oklch(100% 0 0);
    --focus-ring: var(--violet);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.25, 1, 0.5, 1);
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: clamp(4.5rem, 8vw, 7rem);
    --space-8: clamp(6rem, 11vw, 9rem);
    --content-max: 90rem;
    --page-pad: clamp(1.25rem, 4vw, 4.5rem);
    --shell-edge: max(var(--page-pad), calc((100vw - var(--content-max)) / 2 + var(--page-pad)));
    --header-height: 5.5rem;
    --header-scrolled-height: 4.5rem;
    --radius-soft: 0.625rem;
    --radius-pill: 999px;
    --shadow-float: 0 1.5rem 4rem rgb(24 18 24 / 0.24);
    --z-header: 30;
    --z-menu: 40;
    --z-modal: 70;
    --dot-size: clamp(0.375rem, 0.58vw, 0.5625rem);
    --dot-pitch: clamp(1.25rem, 1.8vw, 1.75rem);
  }
}

@layer base {
  body {
    min-width: 0;
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  body.menu-open,
  html.modal-open,
  body.modal-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  ::selection { background: var(--violet); color: var(--white); }
  h1, h2, h3 { text-wrap: balance; }
  p { text-wrap: pretty; }

  h2 {
    max-width: 14ch;
    font-size: clamp(2.75rem, 6vw, 5.15rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.035em;
  }

  h2 em {
    font-family: "Bodoni Moda", Didot, Georgia, serif;
    font-weight: 500;
  }

  :focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
  }

  section[id] { scroll-margin-top: 0; }

  .section-shell {
    width: min(100%, var(--content-max));
    margin-inline: auto;
    padding-inline: var(--page-pad);
  }

  .section-label,
  .section-index {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .section-index { color: var(--violet); }

  .skip-link {
    position: fixed;
    top: var(--space-2);
    left: var(--space-2);
    z-index: 100;
    transform: translateY(-180%);
    border-radius: var(--radius-soft);
    background: var(--paper);
    padding: var(--space-2) var(--space-3);
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms var(--ease-out);
  }

  .skip-link:focus { transform: translateY(0); }

  .page-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: calc(var(--z-modal) + 1);
    height: 3px;
    pointer-events: none;
  }

  .page-progress span {
    width: 100%;
    height: 100%;
    display: block;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--lilac);
    will-change: transform;
  }
}

@layer components {
  .brand {
    position: relative;
    z-index: calc(var(--z-menu) + 1);
    min-width: 2.75rem;
    min-height: 2.75rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    font-family: "Bodoni Moda", Didot, Georgia, serif;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1;
    text-decoration: none;
  }

  .brand span { color: var(--violet); font-style: italic; }

  .button {
    min-height: 2.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    padding: 0.8rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms var(--ease-out), background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  }

  .button:hover { transform: translateY(-2px); }
  .button:active { transform: translateY(0) scale(0.98); }
  .button--dark { background: var(--ink); color: var(--white); }
  .button--dark:hover { background: var(--violet); }
  .button--light { background: var(--white); color: var(--violet-deep); }
  .button--light:hover { background: var(--ink); color: var(--white); }

  .text-link {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding-block: var(--space-1);
    font-size: 0.875rem;
    font-weight: 700;
    text-underline-offset: 0.35rem;
    text-decoration-thickness: 1px;
  }

  .text-link span { transition: transform 180ms var(--ease-out); }
  .text-link:hover span { transform: translate(2px, -2px); }

  .circle-button {
    width: 3rem;
    height: 3rem;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid currentColor;
    border-radius: var(--radius-pill);
    background: transparent;
    cursor: pointer;
    transition: transform 180ms var(--ease-out), color 180ms ease, background-color 180ms ease;
  }

  .circle-button svg {
    width: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
  }

  .circle-button:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
  .circle-button:active { transform: scale(0.96); }
}

@layer layout {
  .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: var(--z-header);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding-inline: var(--shell-edge);
    transition: background-color 220ms ease, box-shadow 220ms ease;
  }

  .site-header.is-scrolled {
    height: var(--header-scrolled-height);
    background: color-mix(in oklch, var(--paper) 94%, transparent);
    box-shadow: 0 0.375rem 1rem oklch(16% 0.015 286 / 0.08);
    backdrop-filter: blur(12px);
  }

  .site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.4rem); }

  .site-nav a {
    position: relative;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.055em;
    text-decoration: none;
    transition: color 180ms ease;
  }

  .site-nav a:not(.nav-contact)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.45rem;
    left: 0;
    height: 1px;
    transform: scaleX(0);
    transform-origin: right;
    background: currentColor;
    transition: transform 220ms var(--ease-out);
  }

  .site-nav a:hover::after,
  .site-nav a[aria-current="location"]::after { transform: scaleX(1); transform-origin: left; }

  .site-header:not(.is-scrolled) .site-nav a:focus-visible { --focus-ring: var(--powder); }

  .site-nav .nav-contact {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--white);
    border-radius: var(--radius-pill);
    padding: 0.6rem var(--space-3);
  }

  .site-nav .nav-contact:hover { background: var(--white); color: var(--violet-deep); }
  .site-header.is-scrolled .site-nav a { color: var(--ink); }
  .site-header.is-scrolled .site-nav .nav-contact { border-color: var(--ink); }
  .site-header.is-scrolled .site-nav .nav-contact:hover { background: var(--ink); color: var(--white); }
  .menu-toggle { display: none; }

  .hero {
    --hero-x: 0px;
    --hero-y: 0px;
    position: relative;
    min-height: max(44rem, 100svh);
    display: grid;
    grid-template-columns: minmax(0, 53%) minmax(0, 47%);
    background: var(--paper);
  }

  .hero-copy {
    position: relative;
    align-self: center;
    min-width: 0;
    padding: calc(var(--header-height) + var(--space-6)) clamp(2rem, 5vw, 6rem) var(--space-7) var(--shell-edge);
  }

  .hero-kicker {
    max-width: 46rem;
    margin-bottom: var(--space-4);
    color: var(--violet);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: clamp(3.8rem, 6.6vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
  }

  .hero h1 span { display: block; font-weight: 800; }

  .hero h1 em {
    display: block;
    margin-top: 0.1em;
    color: var(--violet);
    font-family: "Bodoni Moda", Didot, Georgia, serif;
    font-weight: 500;
  }

  .hero-intro {
    max-width: 58ch;
    margin-top: var(--space-4);
    font-size: clamp(1rem, 1.25vw, 1.1rem);
    line-height: 1.75;
  }

  .hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-5);
  }

  .hero-visual {
    --photo-right: clamp(1.5rem, 6vw, 6rem);
    --photo-width: min(68%, 31rem);
    position: relative;
    min-height: max(44rem, 100svh);
    overflow: hidden;
    isolation: isolate;
    background: var(--violet);
  }

  .hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 8;
    background: var(--ink);
    pointer-events: none;
  }

  .hero-monogram {
    position: absolute;
    top: 7%;
    left: 3%;
    color: oklch(100% 0 0 / 0.09);
    font-family: "Bodoni Moda", Didot, Georgia, serif;
    font-size: clamp(10rem, 25vw, 25rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.08em;
  }

  .hero-photo-frame {
    position: absolute;
    right: var(--photo-right);
    bottom: 0;
    width: var(--photo-width);
    height: min(82svh, 52rem);
    overflow: hidden;
    background: var(--violet-deep);
    transform: translate3d(var(--hero-x), var(--hero-y), 0);
    transition: transform 700ms var(--ease-out);
    will-change: transform;
  }

  .hero-photo-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    filter: grayscale(0.12) contrast(1.06) saturate(0.9);
  }

  .hero-photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(180deg, rgb(51 36 56 / 0.03), rgb(51 36 56 / 0.17));
    mix-blend-mode: multiply;
    pointer-events: none;
  }

  .hero-line {
    position: absolute;
    right: calc(var(--photo-right) - 1.25rem);
    bottom: 9%;
    width: min(34vw, 28rem);
    height: min(68svh, 42rem);
    border: 1px solid oklch(100% 0 0 / 0.55);
    transform: translate(1.25rem, -1.25rem);
    pointer-events: none;
  }

  .hero-vertical {
    position: absolute;
    top: 8rem;
    right: var(--space-3);
    z-index: 2;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
  }

  .dot-matrix {
    position: absolute;
    z-index: 1;
    background-image: radial-gradient(
      circle,
      var(--powder) 0 calc(var(--dot-size) / 2),
      transparent calc(var(--dot-size) / 2 + 0.5px)
    );
    background-position: center;
    background-size: var(--dot-pitch) var(--dot-pitch);
    pointer-events: none;
    /* teia interativa (dot-grid.js): o canvas assume o desenho */
    &.is-interactive { background-image: none; animation-name: dots-reveal; }
    /* fade nas bordas: dissolve o padrão em vez de cortar bolinha ao meio */
    -webkit-mask-image: radial-gradient(ellipse 72% 72% at center, #000 45%, transparent 98%);
    mask-image: radial-gradient(ellipse 72% 72% at center, #000 45%, transparent 98%);
    animation: dot-drift 26s var(--ease-soft) infinite alternate;
  }

  @keyframes dot-drift {
    from { background-position: center; }
    to {
      background-position:
        calc(50% + var(--dot-pitch)) calc(50% + var(--dot-pitch));
    }
  }


  .dot-matrix--edge {
    top: 10%;
    left: calc(var(--dot-pitch) * -1);
    width: calc(var(--dot-pitch) * 6);
    height: calc(var(--dot-pitch) * 4);
  }

  .hero-photo-frame .dot-matrix {
    z-index: 2;
    opacity: 0.72;
    mix-blend-mode: screen;
    filter: saturate(0.72) contrast(1.12);
  }

  .dot-matrix--upper {
    top: 3%;
    left: calc(var(--dot-pitch) * -1);
    width: calc(var(--dot-pitch) * 6);
    height: calc(var(--dot-pitch) * 5);
    -webkit-mask-image: linear-gradient(125deg, #000 10%, rgb(0 0 0 / 0.9) 44%, transparent 82%);
    mask-image: linear-gradient(125deg, #000 10%, rgb(0 0 0 / 0.9) 44%, transparent 82%);
  }

  .dot-matrix--lower {
    right: calc(var(--dot-pitch) * -1);
    bottom: 3%;
    width: calc(var(--dot-pitch) * 4);
    height: calc(var(--dot-pitch) * 6);
    -webkit-mask-image: linear-gradient(305deg, #000 12%, rgb(0 0 0 / 0.82) 46%, transparent 84%);
    mask-image: linear-gradient(305deg, #000 12%, rgb(0 0 0 / 0.82) 46%, transparent 84%);
  }

  .scroll-cue {
    position: absolute;
    bottom: var(--space-4);
    left: var(--shell-edge);
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .scroll-cue svg {
    width: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
  }

  .expertise-strip {
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 2rem);
    overflow-x: auto;
    padding: var(--space-3) var(--page-pad);
    background: var(--ink);
    color: var(--white);
    scrollbar-width: none;
  }

  .expertise-strip::-webkit-scrollbar { display: none; }
  .expertise-strip span { flex: 0 0 auto; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
  .expertise-strip i { width: 0.3rem; height: 0.3rem; flex: 0 0 auto; border-radius: 50%; background: var(--lilac); }

  .about {
    display: grid;
    grid-template-columns: 0.4fr 1.55fr 1fr;
    gap: clamp(2rem, 5vw, 6rem);
    padding-block: var(--space-8);
  }

  .section-index { padding-top: var(--space-1); }
  .about-heading { overflow: visible; }
  .about-heading h2 { max-width: 11ch; overflow: visible; padding-block: 0.08em; }
  .about-heading h2 em { display: block; color: var(--violet); }
  .about-copy { padding-top: var(--space-1); }
  .about-copy p { max-width: 53ch; }
  .about-copy p + p { margin-top: var(--space-3); }
  .about-copy .lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 600; line-height: 1.5; }

  .about-signature { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-5); }
  .about-signature span { border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0.5rem 0.85rem; font-size: 0.75rem; font-weight: 600; }

  .services { padding-block: var(--space-8); background: var(--ink); color: var(--white); }

  .services-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-6);
    margin-bottom: var(--space-7);
  }

  .services-head h2,
  .works-head h2,
  .process-intro h2 { margin-top: 0; }
  .contact-copy h2 { margin-top: var(--space-3); }

  .services-head h2 em { color: var(--lilac); }
  .services-head > p { max-width: 40ch; color: oklch(92% 0.01 286); }
  .service-list { border-top: 1px solid oklch(100% 0 0 / 0.24); }

  .service-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(12rem, 0.85fr) minmax(20rem, 1.15fr) 3rem;
    gap: clamp(var(--space-3), 3vw, var(--space-5));
    align-items: center;
    padding-block: var(--space-5);
  }

  .service-row::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: oklch(100% 0 0 / 0.24);
    transition: transform 700ms var(--ease-out);
  }

  .service-row.in-view::after { transform: scaleX(1); }
  .service-row h3 { font-size: clamp(1.35rem, 2.2vw, 2.1rem); line-height: 1.1; transition: color 180ms ease; }
  .service-row p { max-width: 54ch; color: oklch(88% 0.012 286); }
  .service-row > span { justify-self: end; color: var(--lilac); font-family: "Bodoni Moda", Didot, Georgia, serif; font-size: 1rem; font-variant-numeric: tabular-nums; }
  .service-row:hover > span { color: var(--powder); }
  .service-row:hover h3 { color: var(--lilac); }

  .works { overflow: hidden; padding-block: var(--space-8); }

  .works-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-5); }
  .works-head h2 em { display: block; color: var(--violet); }

  .carousel-status { display: flex; align-items: center; gap: var(--space-2); padding-bottom: var(--space-1); font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
  .carousel-status i { width: 3.5rem; height: 1px; background: var(--line); }

  .carousel-hint { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); color: oklch(38% 0.025 286); font-size: 0.875rem; font-weight: 600; }
  .carousel-hint span { color: var(--violet); font-size: 1.1rem; }

  .carousel-track {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--shell-edge);
    scroll-snap-type: x mandatory;
    padding: 0 var(--shell-edge) var(--space-3);
    cursor: grab;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
  }

  .carousel-track::-webkit-scrollbar { display: none; }
  .carousel-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
  .works-sticky .carousel { min-height: 0; display: grid; overflow: clip; grid-template-rows: minmax(0, 1fr) auto; }
  .works-sticky .carousel-track { min-height: 0; align-items: center; }
  .works-head { overflow: visible; padding-block: 0.12em; }
  .works-head h2 { overflow: visible; padding-block: 0.08em; }
  .work-slide { width: min(76vw, 61rem); flex: 0 0 auto; scroll-snap-align: start; scroll-snap-stop: always; }

  .work-open {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-soft);
    padding: 0;
    background: var(--ink);
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 0 0 transparent;
    transition: transform 300ms var(--ease-out), box-shadow 300ms ease;
  }

  .work-open::before {
    content: "Ver projeto  +";
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    z-index: 3;
    border-radius: var(--radius-pill);
    background: color-mix(in oklch, var(--paper) 94%, transparent);
    color: var(--ink);
    padding: 0.6rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 220ms var(--ease-out), background-color 180ms ease, color 180ms ease;
  }

  .work-open::after {
    content: "";
    position: absolute;
    inset: 28% 0 0;
    z-index: 1;
    background: linear-gradient(to top, oklch(10% 0.02 286 / 0.9), transparent);
    pointer-events: none;
  }

  .work-open img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 700ms var(--ease-out), filter 300ms ease; }
  .work-open:hover { transform: translateY(-0.25rem); box-shadow: 0 1rem 2.5rem oklch(14% 0.02 286 / 0.18); }
  .work-open:hover::before { transform: translateY(-0.125rem); background: var(--violet); color: var(--white); }
  .work-open:hover img { transform: scale(1.035); filter: saturate(1.06); }
  .work-open:active { transform: translateY(0) scale(0.995); }
  .work-open:focus-visible { outline-offset: 5px; }

  .work-meta { position: absolute; right: var(--space-5); bottom: var(--space-5); left: var(--space-5); z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: var(--space-3); text-align: left; }
  .work-meta > span { max-width: 70%; font-size: clamp(1.35rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
  .work-meta small { max-width: 14rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; line-height: 1.4; text-align: right; text-transform: uppercase; }

  .carousel-footer { display: flex; align-items: center; gap: var(--space-5); margin-top: var(--space-3); }
  .carousel-progress { height: 2px; flex: 1; overflow: hidden; background: var(--line); }
  .carousel-progress span { width: 100%; height: 100%; display: block; transform: scaleX(0.1); transform-origin: left; background: var(--violet); transition: transform 450ms var(--ease-out); }
  .carousel-controls { display: flex; gap: var(--space-2); }
  .carousel-skip { display: none; }

  .process {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: clamp(3rem, 7vw, 8rem);
    padding-block: var(--space-8);
    border-top: 1px solid var(--line);
  }

    .process-intro h2 em { display: block; color: var(--violet); }
  .process-steps { border-top: 1px solid var(--line); }

  .process-steps li { display: grid; grid-template-columns: 3rem 0.8fr 1.2fr; gap: var(--space-4); align-items: start; padding-block: var(--space-5); border-bottom: 1px solid var(--line); }
  .process-steps span { color: var(--violet); font-size: 0.75rem; font-weight: 700; }
  .process-steps h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.25; }
  .process-steps p { max-width: 42ch; font-size: 1rem; }

  .contact { padding-block: var(--space-8); border-top: 1px solid var(--line); background: var(--paper); color: var(--ink); }

  .contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(32rem, 1.14fr);
    grid-template-areas: "intro form";
    overflow: visible;
    border-block: 1px solid var(--line);
    background: var(--paper);
  }
  .contact-layout > * { min-width: 0; }

  .contact-copy {
    position: relative;
    grid-area: intro;
    display: flex;
    flex-direction: column;
    justify-content: center;
    isolation: isolate;
    overflow: visible;
    padding: clamp(3rem, 6vw, 6.5rem) clamp(2rem, 5vw, 5rem);
    color: var(--ink);
  }

  .contact-copy::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 4%;
    z-index: -1;
    width: 13rem;
    height: 12rem;
    opacity: 0.5;
    background-image: radial-gradient(circle, var(--powder) 0 0.22rem, transparent 0.25rem);
    background-size: 1.6rem 1.6rem;
    -webkit-mask-image: linear-gradient(135deg, #000, transparent 78%);
    mask-image: linear-gradient(135deg, #000, transparent 78%);
  }

  .contact-eyebrow { color: var(--violet); font-size: 0.75rem; font-weight: 750; }
  .contact-copy h2 { max-width: 9ch; }
  .contact-copy h2 em { display: block; color: var(--violet); }
  .contact-copy > p:not(.contact-eyebrow) { max-width: 47ch; margin-top: var(--space-5); color: var(--muted); }
  .contact-promise { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-6); color: var(--ink); font-size: 0.75rem; font-weight: 650; }
  .contact-promise span { display: inline-flex; align-items: center; gap: var(--space-1); }
  .contact-promise i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--powder); }

  .brief-form {
    grid-area: form;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    background: var(--violet-deep);
    color: var(--white);
    padding: clamp(3rem, 6vw, 6.5rem) clamp(2rem, 5vw, 5rem);
  }

  .services,
  .brief-form,
  .site-footer,
  .case-visual,
  .menu-open .site-header { --focus-ring: var(--powder); }

  .form-heading { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid rgb(255 255 255 / 0.2); }
  .form-heading p { color: var(--lilac); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
  .form-heading span { color: rgb(255 255 255 / 0.68); font-size: 0.75rem; font-weight: 600; }
  .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .field { display: grid; gap: 0.55rem; align-content: start; }
  .field label { font-size: 0.75rem; font-weight: 750; letter-spacing: 0.035em; }
  .field > label span { color: rgb(255 255 255 / 0.62); font-size: 0.7rem; font-weight: 500; }

  .field input:not([type="checkbox"]),
  .field select,
  .field textarea {
    width: 100%;
    min-height: 3.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-soft);
    outline: 0;
    background: var(--surface);
    color: var(--ink);
    padding: 0.85rem var(--space-3);
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  }

  .field select { color-scheme: light; }
  #interest option { background: var(--violet-deep); color: var(--white); }
  #interest option:checked { background: var(--violet); color: var(--white); }
  .field textarea { min-height: 9rem; resize: vertical; }
  .field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
  .field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus { border-color: var(--powder); background: var(--white); box-shadow: none; }
  .field input:not([type="checkbox"]):focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 5px var(--powder); }
  .field--consent { margin-top: var(--space-1); }
  .consent-control { min-height: 2.75rem; display: flex; align-items: flex-start; gap: var(--space-2); cursor: pointer; }
  .consent-control input { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; margin: 0.15rem 0 0; accent-color: var(--powder); }
  .field--consent.has-error input { outline: 2px solid var(--lilac); outline-offset: 2px; }
  .consent-control span { max-width: 52ch; color: rgb(255 255 255 / 0.78); font-size: 0.75rem; font-weight: 500; line-height: 1.55; }
  .form-note { color: rgb(255 255 255 / 0.62); font-size: 0.75rem; line-height: 1.55; }
  .form-status { min-height: 1.3rem; color: var(--powder); font-size: 0.75rem; font-weight: 650; }
  .form-status:empty { display: none; }
  .form-status.is-error { color: var(--lilac); }
  .button--contact { width: 100%; min-height: 3.35rem; align-self: stretch; background: var(--paper); color: var(--violet-deep); }
  .button--contact:hover { background: var(--powder); color: var(--ink); }
  .button--contact:disabled { opacity: 0.65; cursor: wait; transform: none; }
  .brief-form .button.is-success { background: var(--powder); color: var(--ink); }

  .field-error { color: var(--lilac); font-size: 0.75rem; font-weight: 650; line-height: 1.35; }
  .field-error:empty { display: none; }
  .field.has-error input:not([type="checkbox"]):not([type="radio"]), .field.has-error select, .field.has-error textarea { border-color: var(--lilac); box-shadow: 0 0 0 2px rgb(216 201 218 / 0.16); }

  .site-footer { min-height: 8rem; background: var(--violet-deep); }
  .site-footer p { font-size: 0.75rem; font-weight: 600; }
}

  html { scroll-snap-type: none; scroll-padding-top: 0; }
  .hero, .about, .services, .works, .process, .contact { scroll-snap-align: start; scroll-snap-stop: normal; }
  /* o snap de #about deixa a faixa de áreas visível entre o header fixo e a seção */
  .about { scroll-margin-top: calc(var(--header-scrolled-height) + 4.5rem); scroll-margin-bottom: calc(-1 * (var(--header-scrolled-height) + 4.5rem)); }
  .site-footer { scroll-snap-align: end; scroll-snap-stop: normal; }
  @media (min-width: 64.01rem) and (prefers-reduced-motion: no-preference) {
    .works { position: relative; min-height: 100svh; overflow: visible; padding-block: 0; background: var(--paper); }
    .works-sticky { position: sticky; top: 0; height: 100svh; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); align-content: stretch; overflow: visible; padding-block: calc(var(--header-height) + var(--space-2)) var(--space-3); }
    .work-slide { width: min(76vw, 61rem, calc((100svh - var(--header-height) - 24.5rem) * 1.777)); opacity: 0.42; filter: saturate(0.58); transform: scale(0.94); transform-origin: center; transition: opacity 360ms ease, filter 360ms ease, transform 500ms var(--ease-out); }
    .work-slide.is-active { opacity: 1; filter: saturate(1); transform: scale(1); }
  }
  .hero-photo-frame img { opacity: var(--hero-image-opacity, 1); filter: grayscale(0.12) contrast(1.06) saturate(0.9) blur(var(--hero-image-blur, 0px)); transform: scale(var(--hero-image-scale, 1)); transition: filter 120ms linear, opacity 120ms linear, transform 120ms linear; }
  .about-heading h2 > span, .about-heading h2 > em { display: block; will-change: transform; transition: transform 120ms linear; }
  .about-heading h2 > span { transform: translateX(var(--about-line-shift, 0)); }
  .about-heading h2 > em { transform: translateX(calc(var(--about-line-shift, 0) * -1)); }
  .social-action { min-height: 2.75rem; display: inline-flex; align-items: center; gap: 0.65rem; border-radius: var(--radius-pill); color: var(--violet); text-decoration: none; }
  .social-action svg { width: 2.5rem; height: 2.5rem; flex: 0 0 auto; overflow: visible; border-radius: 50%; background: var(--mist); padding: 0.62rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
  .social-action .social-icon-dot { fill: currentColor; stroke: none; }
  .social-action:hover svg { transform: translateY(-2px) rotate(-3deg); background: var(--violet); color: var(--white); }
  .social-action--compact svg { width: 2.25rem; height: 2.25rem; padding: 0.55rem; }
  .contact-socials { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-4); }
  .contact-socials a, .footer-socials a, .footer-nav a { position: relative; font-size: 0.75rem; font-weight: 750; }
  .contact-socials a { color: var(--violet); }
  .contact-socials a::after, .footer-socials a::after, .footer-nav a::after { content: ""; position: absolute; right: 0; bottom: -0.2rem; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 240ms var(--ease-out); }
  .contact-socials a:hover::after, .footer-socials a:hover::after, .footer-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .social-action::after { display: none; }
  .site-footer {
    position: relative;
    display: block;
    overflow: visible;
    border-top: 1px solid rgb(255 255 255 / 0.14);
    background: var(--violet-deep);
    color: var(--white);
  }

  .site-footer::after {
    content: "";
    position: absolute;
    right: var(--shell-edge);
    bottom: 0;
    width: 17rem;
    height: 13rem;
    opacity: 0.14;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--powder) 0 0.2rem, transparent 0.23rem);
    background-size: 1.55rem 1.55rem;
    -webkit-mask-image: linear-gradient(135deg, #000, transparent 78%);
    mask-image: linear-gradient(135deg, #000, transparent 78%);
  }

  .footer-shell {
    min-width: 0;
    position: relative;
    z-index: 1;
    min-height: clamp(12rem, 16vw, 14rem);
    display: grid;
    grid-template-columns: minmax(16rem, 1.45fr) minmax(7rem, 0.48fr) minmax(11rem, 0.72fr);
    gap: clamp(2rem, 5vw, 6rem);
    align-items: center;
    padding-block: var(--space-5);
  }

  .footer-identity { display: grid; gap: var(--space-2); align-content: center; }
  .brand--footer { width: max-content; min-height: 2.75rem; display: inline-flex; align-items: center; color: var(--white); font-size: clamp(2rem, 3.4vw, 3.25rem); }
  .brand--footer span { color: var(--lilac); }
  .footer-identity > p:not(.footer-copy) { max-width: 32ch; color: rgb(255 255 255 / 0.72); }
  .footer-copy { color: rgb(255 255 255 / 0.72); font-variant-numeric: tabular-nums; letter-spacing: 0.025em; }
  .footer-heading { margin-bottom: var(--space-1); color: var(--powder); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
  .footer-nav, .footer-socials { display: grid; gap: 0.25rem; align-content: start; }
  .footer-nav a, .footer-socials a { position: relative; width: max-content; min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; color: var(--white); font-size: 0.75rem; font-weight: 750; }
  .site-footer .social-action svg { background: rgb(255 255 255 / 0.08); color: var(--powder); }
  .site-footer .social-action:hover svg { background: var(--powder); color: var(--violet-deep); }

  @media (max-width: 64rem) {
    .work-slide { width: 84vw; }
    .footer-shell { grid-template-columns: minmax(14rem, 1fr) auto auto; gap: var(--space-4); }
  }

  @media (max-width: 52rem) {
    .footer-shell { grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-5) var(--space-4); }
    .footer-identity { grid-row: 1 / span 2; }
    .footer-nav { grid-column: 2; grid-row: 1; }
    .footer-socials { grid-column: 2; grid-row: 2; }
  }

  @media (max-width: 36rem) {
    .work-slide { width: 88vw; }
    .footer-shell { min-height: 0; grid-template-columns: 1fr; gap: var(--space-5); padding-block: var(--space-6); }
    .footer-identity, .footer-nav, .footer-socials { grid-column: 1; grid-row: auto; }
    .footer-nav { grid-template-columns: repeat(3, max-content); gap: var(--space-3); }
    .footer-nav .footer-heading, .footer-socials .footer-heading { grid-column: 1 / -1; }
    .footer-socials { grid-template-columns: repeat(2, max-content); gap: var(--space-2) var(--space-4); }
  }
  @media (prefers-reduced-motion: reduce) { .works { min-height: auto !important; height: auto !important; } .works-sticky { position: relative; height: auto; min-height: auto; padding-block: var(--space-8); } .work-slide { opacity: 1; filter: none; transform: none; } .hero-photo-frame img, .about-heading h2 > span, .about-heading h2 > em { transform: none; filter: none; opacity: 1; } }

@layer modal {
  .project-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: grid;
    place-items: center;
    visibility: hidden;
    padding: var(--space-3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease, visibility 0s linear 420ms;
  }

  .project-modal.is-open { visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s; }

  .project-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: oklch(8% 0.02 286 / 0.84);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 320ms ease;
  }

  .project-modal.is-open .project-modal__backdrop { opacity: 1; }

  .case-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 82rem);
    height: min(88svh, 54rem);
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(21rem, 0.78fr);
    overflow: hidden;
    border-radius: var(--radius-soft);
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow-float);
    opacity: 0;
    transform: translateY(1.25rem) scale(0.98);
    transition: transform 420ms var(--ease-out), opacity 240ms ease;
    overscroll-behavior: contain;
  }

  .project-modal.is-open .case-shell { opacity: 1; transform: translateY(0) scale(1); }

  .case-close { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 4; border-color: var(--ink); background: var(--paper); color: var(--ink); }
  .case-close:focus-visible, .case-cta:focus-visible { outline-color: var(--violet); }
  .case-nav:focus-visible { outline-color: var(--powder); }

  .case-visual { position: relative; isolation: isolate; min-height: 0; display: grid; place-items: center; overflow: hidden; background: var(--ink); padding: var(--space-6); touch-action: pan-y; }
  .case-visual::before { content: "LP"; position: absolute; left: var(--space-3); bottom: -0.12em; color: oklch(100% 0 0 / 0.05); font-family: "Bodoni Moda", Didot, Georgia, serif; font-size: clamp(10rem, 25vw, 25rem); font-weight: 700; line-height: 0.75; }
  .case-visual__label { position: absolute; top: var(--space-4); left: var(--space-4); z-index: 2; color: var(--white); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

  .case-image { position: relative; z-index: 1; width: 100%; max-height: calc(88svh - 6rem); object-fit: contain; border-radius: var(--radius-soft); opacity: 1; transform: scale(1); transition: transform 420ms var(--ease-out), opacity 180ms ease; }
  .project-modal.is-loading .case-image { opacity: 0.5; transform: scale(0.985); }
  .case-gallery-nav { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
  .case-nav { position: absolute; top: 50%; width: 3.25rem; height: 3.25rem; border-color: oklch(100% 0 0 / 0.28); background: oklch(18% 0.045 307 / 0.9); color: var(--white); box-shadow: 0 4px 8px rgb(12 8 13 / 0.28); pointer-events: auto; transform: translateY(-50%); }
  .case-nav--prev { left: clamp(0.75rem, 2vw, 1.5rem); }
  .case-nav--next { right: clamp(0.75rem, 2vw, 1.5rem); }
  .case-nav:active { transform: translateY(-50%) scale(0.94); }
  .case-gallery-pagination { position: absolute; bottom: var(--space-3); left: 50%; z-index: 3; display: flex; align-items: center; gap: 0.34rem; min-height: 1.5rem; border-radius: var(--radius-pill); background: oklch(12% 0.035 307 / 0.74); padding: 0.4rem 0.55rem; pointer-events: none; transform: translateX(-50%); }
  .case-gallery-dot { width: 1.1rem; height: 0.38rem; flex: none; border-radius: var(--radius-pill); background: oklch(100% 0 0 / 0.42); transform: scaleX(0.35); transition: transform 220ms var(--ease-out), background-color 180ms ease; }
  .case-gallery-dot.is-active { background: var(--powder); transform: scaleX(1); }

  @media (hover: hover) {
    .case-nav:hover { background: var(--violet); color: var(--white); transform: translateY(-50%) scale(1.05); }
  }

  .case-content { min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-7) clamp(1.5rem, 4vw, 3.5rem) var(--space-4); }
  .case-topline { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); color: var(--violet); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
  .case-counter { font-variant-numeric: tabular-nums; }
  .case-category { max-width: 22ch; text-align: right; }
  .case-title { max-width: 11ch; margin-top: var(--space-4); font-size: clamp(2.5rem, 4.5vw, 4.5rem); line-height: 0.96; }
  .case-description { max-width: 54ch; margin-top: var(--space-4); font-size: 1rem; line-height: 1.7; }

  .case-scope { margin-top: var(--space-5); border-top: 1px solid var(--line); }
  .case-scope h3 { padding-block: var(--space-3) var(--space-1); color: var(--violet); font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase; }
  .case-scope li { padding-block: var(--space-1); border-bottom: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; }
  .case-cta { align-self: flex-start; margin-top: var(--space-5); }
}

@layer motion {
  .js .section-scene .section-label,
  .js .section-scene .section-index,
  .js .section-scene h2,
  .js .section-scene .works-head,
  .js .section-scene .service-list,
  .js .section-scene .process-steps,
  .js .section-scene .contact-layout {
    transition-duration: 760ms;
    transition-timing-function: var(--ease-out);
  }

  .js .section-scene--about .section-index { clip-path: inset(0 100% 0 0); }
  .js .section-scene--about .about-heading h2 { opacity: 0.12; filter: blur(5px); transform: translateY(0.75rem); }
  .js .section-scene--about .about-copy { opacity: 0.55; filter: blur(7px); transform: translateX(1.5rem); }
  .js .section-scene--about.is-section-visible .section-index { clip-path: inset(0); }
  .js .section-scene--about.is-section-visible .about-heading h2 { opacity: 1; filter: blur(0); transform: translateY(0); }
  .js .section-scene--about.is-section-visible .about-copy { opacity: 1; filter: blur(0); transform: translateX(0); }

  .js .section-scene--services .services-head { clip-path: inset(0 0 100% 0); }
  .js .section-scene--services .service-list { opacity: 0.45; transform: scaleX(0.975); transform-origin: left; }
  .js .section-scene--services.is-section-visible .services-head { clip-path: inset(0); }
  .js .section-scene--services.is-section-visible .service-list { opacity: 1; transform: scaleX(1); }

  .js .section-scene--works .works-head { opacity: 0.5; transform: translateY(1rem); }
  .js .section-scene--works .carousel-track { clip-path: inset(0 12% 0 0); filter: saturate(0.55); transition: clip-path 900ms var(--ease-out), filter 900ms ease; }
  .js .section-scene--works.is-section-visible .works-head { opacity: 1; transform: translateX(0); }
  .js .section-scene--works.is-section-visible .carousel-track { clip-path: inset(0); filter: saturate(1); }

  .js .section-scene--process .process-intro { clip-path: inset(0 0 100% 0); }
  .js .section-scene--process .process-steps { opacity: 0.5; transform: translateX(1.5rem); }
  .js .section-scene--process.is-section-visible .process-intro { clip-path: inset(0); }
  .js .section-scene--process.is-section-visible .process-steps { opacity: 1; transform: translateX(0); }

  .js .section-scene--contact .contact-layout { opacity: 0.72; transform: translateY(1rem) scale(0.992); }
  .js .section-scene--contact.is-section-visible .contact-layout { opacity: 1; transform: translateY(0) scale(1); }

  @keyframes hero-copy-in {
    from { opacity: 0; transform: translateY(1.4rem); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
  }

  @keyframes visual-curtain {
    from { transform: translateX(0); }
    to { transform: translateX(101%); }
  }

  @keyframes photo-settle {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
  }

  @keyframes line-reveal {
    from { clip-path: inset(100% 0 0); opacity: 0; }
    to { clip-path: inset(0); opacity: 1; }
  }

  @keyframes dots-reveal {
    from { clip-path: polygon(0 0, 0 0, 0 0); opacity: 0; }
    to { clip-path: polygon(0 0, 200% 0, 0 200%); opacity: 1; }
  }

  @keyframes cue {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(0.35rem); }
  }

  @keyframes pulse-dot {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.45); }
  }

  .hero-copy > :not(.dot-matrix) { animation: hero-copy-in 720ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 100ms; }
  .hero-copy > :nth-child(3) { animation-delay: 180ms; }
  .hero-copy > :nth-child(4) { animation-delay: 260ms; }
  .hero-copy > :nth-child(5) { animation-delay: 340ms; }
  .hero-visual::after { animation: visual-curtain 950ms 120ms var(--ease-out) both; }
  .hero-photo-frame img { animation: photo-settle 1.3s 280ms var(--ease-out) both; }
  .hero-line { animation: line-reveal 900ms 600ms var(--ease-out) both; }
  .dot-matrix { animation: dots-reveal 900ms 520ms var(--ease-out) both, dot-drift 26s 1.5s var(--ease-soft) infinite alternate; }
  .dot-matrix--upper { animation-delay: 680ms, 1.7s; }
  .dot-matrix--lower { animation-delay: 820ms, 1.9s; }
  @media (prefers-reduced-motion: reduce) { .dot-matrix, .dot-matrix--upper, .dot-matrix--lower { animation: dots-reveal 900ms 520ms var(--ease-out) both; } }
  .scroll-cue svg { animation: cue 1.7s ease-in-out infinite; }
  .expertise-strip i { animation: pulse-dot 2.4s ease-in-out infinite; }
  .expertise-strip i:nth-of-type(2) { animation-delay: 400ms; }
  .expertise-strip i:nth-of-type(3) { animation-delay: 800ms; }
  .expertise-strip i:nth-of-type(4) { animation-delay: 1200ms; }

  .js .settle { opacity: 0; transform: translateY(1.25rem); transition: opacity 620ms ease, transform 720ms var(--ease-out); }
  .js .settle.in-view { opacity: 1; transform: translateY(0); }
  .service-row:nth-child(2), .process-steps li:nth-child(2) { transition-delay: 80ms; }
  .service-row:nth-child(3), .process-steps li:nth-child(3) { transition-delay: 160ms; }
  .service-row:nth-child(4) { transition-delay: 240ms; }
}

@layer responsive {
  @media (max-width: 64rem) {
    :root { --header-height: 4.5rem; }

    .menu-toggle { position: relative; z-index: calc(var(--z-menu) + 1); min-width: 4.5rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--space-2); border: 0; background: transparent; cursor: pointer; }
    .menu-toggle__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
    .menu-toggle__icon { width: 1.35rem; display: grid; gap: 0.35rem; }
    .menu-toggle__icon i { width: 100%; height: 1px; display: block; background: currentColor; transition: transform 220ms var(--ease-out); }
    .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { transform: translateY(0.2rem) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { transform: translateY(-0.2rem) rotate(-45deg); }

    .site-nav { position: fixed; inset: 0; z-index: var(--z-menu); display: flex; flex-direction: column; align-items: flex-start; justify-content: safe center; gap: var(--space-4); visibility: hidden; overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); background: var(--violet-deep); color: var(--white); padding: calc(var(--header-height) + env(safe-area-inset-top) + var(--space-5)) var(--page-pad) calc(var(--space-6) + env(safe-area-inset-bottom)); transition: transform 420ms var(--ease-out), visibility 0s linear 420ms; }
    .site-nav.is-open { visibility: visible; transform: translateX(0); transition-delay: 0s; }
    .site-header .site-nav a, .site-header.is-scrolled .site-nav a { color: var(--white); font-size: clamp(1.75rem, 8vw, 3rem); letter-spacing: -0.03em; }
    .site-header .site-nav .nav-contact, .site-header.is-scrolled .site-nav .nav-contact { min-height: 3.4rem; border-color: var(--white); padding-inline: 1.2rem; font-size: 1rem; letter-spacing: 0; }
    .menu-open .site-header, .menu-open .site-header.is-scrolled { background: transparent; box-shadow: none; color: var(--white); backdrop-filter: none; }
    .menu-open .brand span { color: var(--white); }

    .hero { min-height: auto; grid-template-columns: 1fr; }
    .hero-copy { padding-top: calc(var(--header-height) + var(--space-7)); padding-right: var(--page-pad); padding-bottom: var(--space-7); padding-left: var(--page-pad); }
    .hero h1 { font-size: clamp(3.1rem, 12vw, 5.6rem); }
    .dot-matrix--edge { top: calc(var(--header-height) + var(--space-1)); height: calc(var(--dot-pitch) * 3); }
    .hero-visual { min-height: min(110vw, 44rem); }
    .hero-photo-frame { right: 12%; width: min(67%, 26rem); height: 91%; }
    .hero-line { right: 8%; width: 72%; height: 78%; }
    .hero-vertical { top: var(--space-6); right: var(--space-3); }
    .dot-matrix--upper { left: calc(var(--dot-pitch) * -1); }
    .dot-matrix--lower { right: calc(var(--dot-pitch) * -1); }
    .scroll-cue { display: none; }

    .about { grid-template-columns: 1fr; gap: var(--space-5); }
    .about-heading h2 { max-width: 12ch; }
    .about-copy { max-width: 42rem; }
    .services-head { align-items: flex-start; flex-direction: column; }
    .service-row { grid-template-columns: 1fr auto; gap: var(--space-2) var(--space-4); }
    .service-row p { grid-column: 1; }
    .service-row > span { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    .work-slide { width: 84vw; }
    .process { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; grid-template-areas: "intro" "form"; }
    .contact-copy { min-height: 34rem; }

    .case-shell { grid-template-columns: minmax(0, 1.1fr) minmax(19rem, 0.9fr); }
    .case-content { padding-inline: var(--space-4); }
  }

  @media (max-width: 52rem) {
    .project-modal { padding: 0; }
    .case-shell { width: 100%; height: 100svh; display: block; overflow-y: auto; border-radius: 0; }
    .case-close { position: fixed; top: max(var(--space-3), env(safe-area-inset-top)); }
    .case-visual { min-height: 47svh; padding: 3.8rem var(--space-3) var(--space-4); }
    .case-image { max-height: 40svh; }
    .case-content { overflow: visible; padding: var(--space-5) var(--page-pad) calc(var(--space-4) + env(safe-area-inset-bottom)); }
    .case-title { font-size: clamp(2.7rem, 12vw, 4rem); }
  }

  @media (max-width: 36rem) {
    :root {
      --space-7: clamp(3.5rem, 14vw, 4.5rem);
      --space-8: clamp(4.5rem, 18vw, 5.5rem);
      --page-pad: clamp(1.25rem, 6vw, 1.5rem);
    }

    h2 { font-size: min(clamp(2.55rem, 12vw, 3.6rem), 15vw); }
    .hero h1 { max-width: 100%; font-size: min(clamp(2.55rem, 10.5vw, 3.25rem), 11.25vw); }
    .services-head > div, .services-head h2 { width: 100%; min-width: 0; max-width: 100%; }
    .hero-copy { padding-top: calc(var(--header-height) + var(--space-7)); padding-bottom: var(--space-6); }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .expertise-strip { justify-content: flex-start; }
    .dot-matrix--edge { opacity: 0.7; }

    .work-slide { width: 88vw; }
    .work-open img { aspect-ratio: 16 / 9; }
    .work-open::before { top: var(--space-2); right: var(--space-2); }
    .work-meta { right: var(--space-3); bottom: var(--space-3); left: var(--space-3); align-items: flex-start; flex-direction: column; gap: var(--space-1); }
    .work-meta > span, .work-meta small { max-width: 100%; text-align: left; }
    .carousel-footer { align-items: flex-start; flex-direction: column; }
    .carousel-progress { width: 100%; flex: none; }
    .carousel-controls { align-self: flex-end; }

    .process-steps li { grid-template-columns: 2rem 1fr; }
    .process-steps p { grid-column: 2; }
    .contact { padding-block: var(--space-7); }
    .contact-shell { padding-inline: var(--space-3); }
    .contact-copy { padding: var(--space-5) var(--space-4); }
    .contact-copy h2 { max-width: 100%; font-size: min(clamp(2.65rem, 12vw, 3.5rem), 12.5vw); }
    .contact-copy > p:not(.contact-eyebrow) { margin-top: var(--space-4); }
    .brief-form { padding: var(--space-5) var(--space-4); }
    .form-heading { align-items: flex-start; flex-direction: column; gap: var(--space-1); }
    .field-row { grid-template-columns: 1fr; }
    .contact-promise { align-items: flex-start; flex-direction: column; margin-top: var(--space-5); }

    .case-topline { align-items: flex-start; flex-direction: column; }
    .case-category { max-width: none; text-align: left; }
    .case-cta { width: 100%; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
    .hero-visual::after { display: none; }
    .hero-photo-frame { transform: none !important; }
    .js .settle,
    .js .section-scene *,
    .js .section-scene .carousel-track,
    .js .section-scene .contact-layout { opacity: 1; filter: none; clip-path: none; transform: none; }
  }
}
@media (min-width: 64.01rem) {
  .about, .services, .process, .contact { min-height: 100svh; align-content: center; }
  .services, .contact { display: flex; flex-direction: column; justify-content: center; }

  .contact { padding-block: clamp(1rem, 2.4svh, 1.5rem); }
  .contact-shell { min-height: 0; display: flex; flex: 1; }
  .contact-layout { width: 100%; min-height: 0; flex: 1; }
  .contact-copy,
  .brief-form { padding-block: clamp(1.75rem, 3.6svh, 2.75rem); }
  .contact-copy > p:not(.contact-eyebrow) { margin-top: clamp(0.75rem, 1.8svh, 1.5rem); }
  .contact-promise { margin-top: clamp(1rem, 2.4svh, 2rem); }
  .contact-socials { margin-top: clamp(0.75rem, 1.8svh, 1.5rem); }
  .brief-form { justify-content: center; gap: clamp(0.5rem, 1.1svh, 0.875rem); }
  .form-heading { padding-bottom: clamp(0.5rem, 1.35svh, 0.875rem); }
  .field { gap: 0.35rem; }
  .field input:not([type="checkbox"]),
  .field select,
  .field textarea { min-height: 3rem; padding-block: 0.65rem; }
  .field textarea { min-height: clamp(6rem, 13svh, 7rem); }
  .field--consent { margin-top: 0; }
  .consent-control { min-height: 2.75rem; }
  .button--contact { min-height: 3rem; }
}
@media (min-width: 64.01rem) and (min-height: 48rem) {
  .services { padding-block: clamp(2.25rem, 5svh, 3.5rem); }
  .services-head { margin-bottom: clamp(1.5rem, 3svh, 2rem); }
  .service-row { padding-block: clamp(0.75rem, 1.6svh, 1rem); }

  .contact {
    padding-top: calc(var(--header-scrolled-height) + var(--space-3));
    padding-bottom: calc(var(--space-3) + 1px);
  }

  .contact-copy,
  .brief-form { padding-block: clamp(1.5rem, 3svh, 2.25rem); }
}
@media (min-width: 64.01rem) and (min-height: 48rem) and (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y mandatory; }
  .hero, .about, .services, .works, .process, .contact, .site-footer { scroll-snap-stop: always; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-snap-type: none; } }
.circle-button:disabled { opacity: 0.32; cursor: default; pointer-events: none; transform: none; }
@media (max-width: 64rem) {
  .about-heading h2 > span, .about-heading h2 > em { transform: none; }
  .works { min-height: 0; height: auto !important; overflow: visible; padding-block: var(--space-7); }
  .works-sticky { position: relative; top: auto; height: auto; min-height: 0; display: block; overflow: visible; padding-block: 0; }
  .works-sticky .carousel { overflow: visible; grid-template-rows: auto auto; }
  .work-slide { width: 84vw; opacity: 1; filter: none; transform: none; }
  .carousel-status { display: flex; }
  .carousel-skip {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin: var(--space-2) var(--page-pad) 0;
    color: var(--violet);
    font-size: 0.75rem;
    font-weight: 750;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25rem;
  }
}
@media (max-width: 36rem) { .work-slide { width: 88vw; } }
