/* ==========================================================================
   ICARO BRAGA — PORTFÓLIO EDITORIAL // IDENTIDADE VISUAL & DIREÇÃO DE ARTE
   Typography: Space Grotesk (Primary) + Space Mono (Technical accents)
   Palette: Solar Yellow (#ffd401), Amber (#f5b802), Soft Gold (#ffe76b),
            Pitch Black (#010101), Obsidian (#101010), Graphite (#181818),
            Line (#333333), Muted (#8a8a8a), Silver (#d9d9d9),
            Warm Paper (#f7f4ef), White (#ffffff)
   ========================================================================== */

:root {
  --yellow-100: #ffe76b;
  --yellow-500: #ffd401;
  --yellow-700: #f5b802;
  --black-900: #010101;
  --black-800: #101010;
  --black-700: #181818;
  --black-600: #222222;
  --gray-line: #333333;
  --gray-border: #2a2a2a;
  --gray-muted: #8a8a8a;
  --gray-light: #d9d9d9;
  --paper-warm: #f7f4ef;
  --white: #ffffff;

  --ink: var(--black-900);
  --paper: var(--paper-warm);
  --accent: var(--yellow-500);
  --accent-amber: var(--yellow-700);
  --accent-soft: var(--yellow-100);
  --line: rgba(247, 244, 239, 0.15);
  --gutter: clamp(20px, 4.5vw, 84px);
  --sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Space Mono', SFMono-Regular, Consolas, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  background: var(--black-900);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body, button, a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, p {
  margin: 0;
}

i {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--black-900);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(100%, 1720px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow,
.section-eyebrow,
.hero-edition,
.hero-index,
.object-caption,
.filter-note,
.demo-label,
.wine-small,
.wine-label,
.case-kicker,
.case-meta > div > span,
.case-story h3,
.detail-type > span,
.next-project > span:first-child {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
}

.section-eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 48px;
  color: var(--gray-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 60;
  top: 14px;
  left: 14px;
  transform: translateY(-200%);
  background: var(--accent);
  color: var(--black-900);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

/* ==========================================================================
   SITE HEADER & BRAND IDENTIFIER
   ========================================================================== */

.site-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(1, 1, 1, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-border);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.wordmark-titles {
  display: flex;
  flex-direction: column;
}

.wordmark-name {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.wordmark-dot {
  color: var(--accent);
  margin-left: 1px;
}

.wordmark-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--gray-muted);
  margin-top: 4px;
}

.header-section-tracker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--black-800);
  border: 1px solid var(--gray-line);
  color: var(--paper);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.header-section-tracker .tracker-prefix {
  color: var(--accent);
}

.header-section-tracker .tracker-number {
  color: var(--accent);
  font-weight: 700;
}

.header-section-tracker .tracker-title {
  color: var(--paper);
  font-weight: 500;
  text-transform: uppercase;
}

.header-section-tracker.pulse-in {
  animation: tracker-pulse 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(255, 212, 1, 0.25);
}

@keyframes tracker-pulse {
  0% { transform: scale(0.92); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.header-caption {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  margin-left: 16px;
  margin-right: auto;
  color: var(--gray-muted);
  border-left: 1px solid var(--gray-border);
  padding-left: 16px;
}

@media (max-width: 1150px) {
  .header-caption {
    display: none;
  }
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-header nav > a {
  padding-block: 10px;
  transition: color 0.2s;
}

.site-header nav > a:hover {
  color: var(--accent);
}

nav a > span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  vertical-align: super;
  margin-left: 2px;
}

.nav-contact {
  border: 1px solid var(--gray-line);
  padding: 8px 16px;
  border-radius: 4px;
  background: var(--black-800);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.nav-contact:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--black-900) !important;
}

.menu-toggle {
  display: none;
}

/* ==========================================================================
   HERO COMPOSITION
   ========================================================================== */

.hero {
  padding-top: 50px;
  padding-bottom: 50px;
  overflow: hidden;
  position: relative;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-muted);
  border-bottom: 1px solid var(--gray-border);
  padding-bottom: 18px;
}

.hero-edition {
  color: var(--accent);
  background: rgba(255, 212, 1, 0.08);
  padding: 4px 10px;
  border: 1px solid rgba(255, 212, 1, 0.25);
  border-radius: 2px;
}

.hero-composition {
  position: relative;
  padding-top: clamp(40px, 8vh, 90px);
  padding-bottom: clamp(20px, 4vh, 60px);
  min-height: auto;
  display: block;
}

.hero h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(84px, 14vw, 210px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 700;
  max-width: 100%;
  text-transform: uppercase;
}

.hero h1 i {
  color: var(--accent);
  white-space: nowrap;
}

/* ==========================================================================
   SCROLL RULER & ANIMATED FLYING SECTION PILL
   ========================================================================== */

.scroll-ruler {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 54px;
  z-index: 45;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .scroll-ruler {
    display: none;
  }
}

.ruler-track {
  position: relative;
  width: 100%;
  height: calc(100vh - 140px);
  margin-block: auto;
  pointer-events: auto;
}

.ruler-ticks {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  border-right: 1px solid var(--gray-line);
  background-image:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0, rgba(255, 255, 255, 0.15) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(to bottom, var(--accent) 0, var(--accent) 1px, transparent 1px, transparent 60px);
  background-size: 8px 100%, 14px 100%;
  background-position: right top, right top;
  background-repeat: no-repeat;
  opacity: 0.65;
}

.ruler-indicator {
  position: absolute;
  right: 0;
  top: 0%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  transform: translateY(-50%);
  transition: top 0.08s linear;
  will-change: top;
  z-index: 2;
}

.ruler-indicator-pct {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--accent);
  background: var(--black-900);
  padding: 1px 4px;
  border: 1px solid rgba(255, 212, 1, 0.3);
  border-radius: 2px;
}

.ruler-indicator-needle {
  width: 22px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.ruler-sections {
  position: absolute;
  right: 22px;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 40px;
}

.ruler-stop {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  transition: color 0.25s, transform 0.25s;
  cursor: pointer;
}

.ruler-stop-label {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
  background: var(--black-800);
  border: 1px solid var(--gray-line);
  padding: 4px 8px;
  border-radius: 3px;
  color: var(--paper);
}

.ruler-stop:hover .ruler-stop-label,
.ruler-stop.is-active .ruler-stop-label {
  opacity: 1;
  transform: translateX(0);
}

.ruler-stop.is-active {
  color: var(--accent);
}

.ruler-stop.is-active .ruler-stop-label {
  border-color: var(--accent);
  color: var(--accent);
}

.ruler-stop-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--black-800);
  border: 1px solid var(--gray-line);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.ruler-stop:hover .ruler-stop-pip,
.ruler-stop.is-active .ruler-stop-pip {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.4);
  box-shadow: 0 0 8px var(--accent);
}

.flying-section-pill {
  z-index: 100;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--black-900);
  background: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(255, 212, 1, 0.4);
  white-space: nowrap;
  will-change: transform, opacity;
}


.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-top: 40px;
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--gray-border);
  padding-top: 28px;
}

.hero-bottom > p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--white);
  max-width: 420px;
}

.hero-bottom > p > span {
  color: var(--gray-muted);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 6px;
}

.round-link {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.round-arrow {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--gray-line);
  background: var(--black-800);
  border-radius: 50%;
  font-size: 24px;
  color: var(--accent);
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}

.round-link:hover .round-arrow {
  background: var(--accent);
  color: var(--black-900);
  border-color: var(--accent);
  transform: translateY(4px);
}

.hero-index {
  color: var(--gray-muted);
  text-align: right;
  font-size: 9px;
  line-height: 1.8;
}

/* ==========================================================================
   DISCIPLINE TICKER STRIP
   ========================================================================== */

.discipline-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
  padding: 20px var(--gutter);
  background: var(--black-800);
  border-block: 1px solid var(--gray-border);
  white-space: nowrap;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gray-light);
}

.discipline-strip b {
  font-size: 18px;
  color: var(--accent);
  font-weight: 400;
}

/* ==========================================================================
   WORK & PROJECTS SECTION (EDITORIAL PAPER CANVAS)
   ========================================================================== */

.work-section {
  background: var(--paper-warm);
  color: var(--black-900);
  padding-bottom: 70px;
}

.work-section .section-eyebrow {
  color: #6a6a6a;
  border-bottom: 1px solid #dcd7ca;
  padding-bottom: 18px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-top: 50px;
  margin-bottom: 42px;
}

.section-heading h2 {
  font-size: clamp(48px, 6.8vw, 102px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.96;
  text-transform: uppercase;
}

.section-heading h2 i {
  color: var(--accent-amber);
}

.section-heading > p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 340px;
  color: #333333;
}

.section-heading > p > span {
  display: block;
  font-family: var(--mono);
  color: #777777;
  font-size: 11px;
  margin-top: 14px;
}

.filter-bar {
  border-block: 1px solid #d4cebe;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 16px;
  gap: 20px;
  margin-bottom: 40px;
}

.filters {
  display: flex;
  gap: 8px;
}

.filters button {
  border: 1px solid #c9c3b4;
  background: transparent;
  padding: 8px 18px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black-900);
  transition: all 0.2s;
}

.filters button[aria-pressed='true'] {
  background: var(--black-900);
  color: var(--accent);
  border-color: var(--black-900);
}

.filters button:hover {
  border-color: var(--black-900);
}

.filters button span {
  font-size: 9px;
  margin-left: 6px;
  vertical-align: super;
}

.filter-note {
  font-size: 10px;
  color: #777777;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 55px 40px;
  align-items: start;
}

.project-card:nth-child(2) {
  padding-top: 100px;
}

.project-card:nth-child(4) {
  padding-top: 90px;
}

.project-grid:has(.project-card[hidden]) {
  grid-template-columns: 1.15fr 1fr;
}

.project-grid:has(.project-card[hidden]) .project-card {
  padding-top: 0;
}

.project-card {
  position: relative;
}

.project-image {
  position: relative;
  overflow: hidden;
  background: #e6e2d6;
  border: 1px solid #dcd7ca;
  border-radius: 4px;
  isolation: isolate;
  aspect-ratio: 4/3;
  transition: border-color 0.3s;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-link:hover .project-image,
.project-link:focus-visible .project-image {
  border-color: var(--black-900);
}

.project-link:hover img,
.project-link:focus-visible img {
  transform: scale(1.035);
}

.project-view {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 12px 20px;
  background: var(--black-900);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}

.project-link:hover .project-view,
.project-link:focus-visible .project-view {
  opacity: 1;
  transform: none;
}

.project-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding-top: 20px;
}

.project-caption > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.project-number {
  font-family: var(--mono);
  font-size: 11px;
  color: #777777;
  font-weight: 700;
}

.project-caption h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.project-category {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: #555555;
  letter-spacing: 0.08em;
}

.project-category > span {
  margin-left: 8px;
  font-size: 14px;
}

.project-description {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-top: 8px;
}

.project-description p {
  font-size: 13px;
  color: #555555;
  line-height: 1.45;
  max-width: 60%;
}

.demo-label {
  font-size: 9px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: #666666;
  border: 1px solid #d4cebe;
  padding: 4px 8px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.03);
}

.wine-art {
  height: 100%;
  padding: 8%;
  background: #181818;
  color: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--gray-line);
}

.wine-word {
  font-size: clamp(34px, 4.2vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}

.wine-word i {
  color: var(--accent-soft);
}

.wine-mark {
  position: absolute;
  right: 2%;
  top: 18%;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(110px, 17vw, 250px);
  color: #242424;
  line-height: 0.7;
}

.wine-mark span {
  display: block;
  margin-left: 60px;
}

.wine-small, .wine-label {
  position: relative;
  z-index: 1;
}

.wine-label {
  border-top: 1px solid var(--gray-line);
  padding-top: 14px;
  color: var(--accent-soft);
}

.work-footnote {
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #d4cebe;
  margin-top: 55px;
  padding-top: 25px;
  color: #666666;
}

.work-footnote > span {
  font-size: 26px;
  color: var(--accent-amber);
}

.work-footnote > p {
  font-size: 11px;
  line-height: 1.6;
  max-width: 680px;
  font-family: var(--mono);
}

/* ==========================================================================
   ABOUT & METHODOLOGY SECTION (DARK CANVAS)
   ========================================================================== */

.about-section {
  padding-bottom: 95px;
  border-top: 1px solid var(--gray-border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 70px;
  padding-top: 75px;
}

.about-side {
  border-right: 1px solid var(--gray-border);
  padding-right: 40px;
}

.about-symbol-mark {
  width: 58px;
  height: 81px;
  filter: drop-shadow(0 0 16px rgba(255, 212, 1, 0.25));
}

.about-side > p {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-top: 35px;
  text-transform: uppercase;
}

.about-side > .eyebrow {
  display: block;
  color: var(--gray-muted);
  margin-top: 24px;
  font-size: 10px;
  line-height: 1.8;
}

.about-content h2 {
  font-size: clamp(44px, 5.8vw, 86px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.about-content h2 i {
  color: var(--accent);
}

.about-intro {
  font-size: 19px;
  line-height: 1.55;
  max-width: 700px;
  margin-top: 35px;
  color: var(--gray-light);
  letter-spacing: -0.01em;
}

.about-note {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  max-width: 550px;
  margin-top: 20px;
  color: var(--gray-muted);
}

.process {
  margin-top: 50px;
}

.process details {
  border-top: 1px solid var(--gray-line);
}

.process details:last-child {
  border-bottom: 1px solid var(--gray-line);
}

.process summary {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  padding: 24px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.process summary::-webkit-details-marker {
  display: none;
}

.process summary:hover {
  color: var(--accent);
}

.process summary > span:first-child {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(255, 212, 1, 0.1);
  padding: 3px 8px;
  border-radius: 2px;
}

.details-icon {
  margin-left: auto;
  font-size: 22px;
  font-weight: 400;
  color: var(--gray-muted);
  transition: transform 0.25s, color 0.25s;
}

.process details[open] .details-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.process details p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-muted);
  padding: 0 30px 25px 44px;
  max-width: 600px;
}

/* ==========================================================================
   CONTACT SECTION (BOLD SOLAR YELLOW HERO CALLOUT)
   ========================================================================== */

.contact-section {
  background: var(--accent);
  color: var(--black-900);
}

.contact-section .section-eyebrow {
  color: rgba(1, 1, 1, 0.7);
  border-bottom: 1px solid rgba(1, 1, 1, 0.2);
  padding-bottom: 18px;
}

.contact-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 60px;
  margin-bottom: 50px;
  transition: transform 0.25s;
}

.contact-cta {
  font-size: clamp(58px, 9.8vw, 160px);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.contact-cta i {
  color: var(--black-900);
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.contact-symbol-box {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.contact-symbol {
  width: clamp(50px, 6vw, 90px);
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.contact-arrow {
  display: grid;
  place-items: center;
  border: 2px solid var(--black-900);
  border-radius: 50%;
  width: clamp(70px, 12vw, 180px);
  height: clamp(70px, 12vw, 180px);
  font-size: clamp(38px, 7vw, 110px);
  font-weight: 300;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.contact-title:hover .contact-arrow {
  background: var(--black-900);
  color: var(--accent);
  transform: rotate(8deg);
}

.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(1, 1, 1, 0.2);
}

.contact-bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-bottom > span {
  margin-right: auto;
}

.contact-bottom > a {
  margin-left: 35px;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(1, 1, 1, 0.7);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   CASE DETAIL PAGES
   ========================================================================== */

.case-header {
  padding-top: 45px;
  padding-bottom: 50px;
}

.text-link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  padding-block: 8px;
  border-bottom: 1px solid var(--gray-line);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link:hover {
  border-color: var(--accent);
}

.case-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 55px;
  color: var(--gray-muted);
}

.case-badge {
  color: var(--black-900);
  background: var(--accent);
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
}

.case-header h1 {
  font-size: clamp(54px, 10.5vw, 155px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 700;
  margin-top: 25px;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.accent {
  color: var(--accent);
}

.case-subtitle {
  font-size: clamp(19px, 2.2vw, 30px);
  color: var(--gray-light);
  letter-spacing: -0.02em;
  margin-top: 22px;
  max-width: 780px;
  line-height: 1.35;
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 30px;
  border-top: 1px solid var(--gray-border);
  padding-top: 24px;
  margin-top: 50px;
}

.case-meta > div > span {
  font-size: 9px;
  color: var(--accent);
}

.case-meta p {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 8px;
  color: var(--white);
}

.case-body {
  background: var(--paper-warm);
  color: var(--black-900);
}

.case-cover {
  margin: 0;
  padding: 0;
  background: #181818;
}

.case-cover img {
  width: 100%;
  max-height: 900px;
  object-fit: contain;
}

.case-cover figcaption {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #666666;
  padding: 16px;
  border-bottom: 1px solid #d4cebe;
}

.case-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  padding-top: 85px;
  padding-bottom: 60px;
}

.case-intro > .eyebrow {
  font-size: 10px;
  padding-top: 8px;
  color: #777777;
}

.case-intro h2 {
  font-size: clamp(26px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.case-story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  padding-bottom: 70px;
}

.case-story h3 {
  border-top: 1px solid #c9c3b4;
  padding-top: 20px;
  font-size: 11px;
  color: var(--black-900);
}

.case-story p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 20px;
  color: #444444;
}

.case-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 65px;
}

.detail-type {
  background: var(--case-accent);
  color: var(--black-900);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1;
  padding: 35px;
  border-radius: 4px;
}

.detail-type strong {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(100px, 18vw, 260px);
  letter-spacing: -0.1em;
  text-align: center;
  line-height: 0.8;
}

.detail-type > span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.detail-list {
  padding: 30px 0 0 20px;
}

.detail-list h3 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.detail-list ul {
  list-style: none;
  padding: 0;
  margin-top: 35px;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  border-top: 1px solid #c9c3b4;
  padding-block: 16px;
  gap: 15px;
}

.detail-list li:last-child {
  border-bottom: 1px solid #c9c3b4;
}

.detail-list > p {
  font-family: var(--mono);
  font-size: 10px;
  color: #777777;
  margin-top: 20px;
}

.case-disclaimer {
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid #c9c3b4;
  background: rgba(0, 0, 0, 0.02);
  padding: 24px;
  margin-bottom: 60px;
  border-radius: 4px;
}

.case-disclaimer > span {
  font-size: 28px;
  color: var(--accent-amber);
}

.case-disclaimer > p {
  font-size: 12px;
  line-height: 1.65;
  max-width: 900px;
  color: #555555;
  font-family: var(--mono);
}

.next-project {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 30px;
  padding-bottom: 60px;
  border-top: 1px solid #d4cebe;
  padding-top: 40px;
}

.next-project strong {
  font-size: clamp(30px, 5.2vw, 76px);
  letter-spacing: -0.05em;
  font-weight: 700;
  text-transform: uppercase;
}

.next-project > span:last-child {
  font-size: 48px;
  color: var(--accent-amber);
  transition: transform 0.25s;
}

.next-project:hover > span:last-child {
  transform: translate(6px, -6px);
}

.case-placeholder {
  padding-top: 75px;
  padding-bottom: 60px;
  text-align: center;
}

.case-placeholder > span {
  font-size: 70px;
  display: block;
  line-height: 1;
  color: var(--accent);
}

.case-placeholder h2 {
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin-top: 20px;
  text-transform: uppercase;
}

.case-placeholder p {
  max-width: 580px;
  margin: 30px auto 0;
  font-size: 15px;
  line-height: 1.65;
  color: #444444;
}

.case-placeholder p.demo-label {
  font-size: 10px;
  color: #666666;
  display: inline-block;
  margin-top: 24px;
}

/* ==========================================================================
   404 NOT FOUND
   ========================================================================== */

.not-found {
  min-height: 60vh;
  padding-block: 85px;
}

.not-found h1 {
  font-size: clamp(64px, 12vw, 170px);
  font-weight: 700;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.not-found p {
  margin: 25px 0;
  font-size: 18px;
  color: var(--gray-light);
}

.not-found a {
  display: inline-block;
  font-family: var(--mono);
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  font-weight: 700;
}

/* ==========================================================================
   ANIMATIONS & REVEALS
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-revealed,
.reveal:focus-within {
  opacity: 1;
  transform: none;
}

@keyframes orbit-entry {
  from {
    opacity: 0;
    transform: rotate(-10deg) translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   RESPONSIVENESS & BREAKPOINTS
   ========================================================================== */

@media (min-width: 1500px) {
  .hero-composition {
    min-height: 560px;
  }
  .hero-bottom {
    margin-top: 50px;
  }
  .hero-object {
    top: -6%;
  }
}

@media (max-width: 1050px) {
  .header-caption {
    display: none;
  }
  .hero-composition {
    min-height: 360px;
  }
  .hero-object {
    width: 52%;
    top: 5%;
    right: -5%;
  }
  .hero h1 {
    font-size: 11.2vw;
  }
  .hero-asterisk {
    left: 45%;
    font-size: 38px;
  }
  .hero-index {
    display: none;
  }
  .hero-bottom {
    margin-top: 25px;
  }
  .discipline-strip {
    gap: 20px;
    justify-content: flex-start;
    font-size: 11px;
  }
  .section-heading > p {
    max-width: 270px;
  }
  .project-grid {
    gap: 40px 25px;
  }
  .project-description {
    display: block;
  }
  .project-description p {
    max-width: none;
    margin-bottom: 8px;
  }
  .project-card:nth-child(2) {
    padding-top: 70px;
  }
  .project-card:nth-child(4) {
    padding-top: 60px;
  }
  .about-grid {
    grid-template-columns: 1fr 2.4fr;
    gap: 35px;
  }
  .case-story {
    gap: 25px;
  }
  .detail-list {
    padding-top: 15px;
    padding-left: 0;
  }
  .case-detail {
    gap: 30px;
  }
  .case-meta {
    grid-template-columns: 1fr 1.5fr 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: 20px;
  }
  .site-header {
    height: 85px;
  }
  .wordmark-name {
    font-size: 20px;
  }
  .brand-mark-wrap {
    width: 36px;
    height: 36px;
  }
  .brand-symbol {
    width: 18px;
    height: 25px;
  }
  .wordmark-sub {
    font-size: 7px;
    letter-spacing: 0.12em;
  }
  .site-header nav {
    gap: 18px;
    font-size: 12px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--gray-line);
    background: var(--black-800);
    color: var(--paper);
    padding: 10px 16px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
  }
  .menu-toggle > span {
    font-size: 16px;
    color: var(--accent);
  }
  .has-menu .site-header nav {
    display: none;
    position: absolute;
    top: 75px;
    right: 20px;
    left: 20px;
    background: var(--black-800);
    color: var(--white);
    padding: 20px 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--gray-line);
    border-radius: 4px;
  }
  .has-menu .site-header nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .has-menu .site-header nav > a:hover {
    color: var(--accent);
  }
  .has-menu .site-header nav > a {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-border);
  }
  .hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .hero-top .eyebrow {
    font-size: 9px;
  }
  .hero-edition {
    display: none;
  }
  .hero-composition {
    padding-top: 30px;
    min-height: 460px;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: clamp(56px, 13vw, 92px);
    line-height: 1.02;
    letter-spacing: -0.05em;
  }
  .hero-object {
    width: 82%;
    right: -16%;
    top: 26%;
    max-width: 420px;
  }
  .object-caption {
    left: 24%;
    bottom: 14%;
    font-size: 7px;
    transform: none;
  }
  .hero-asterisk {
    left: 4%;
    top: 65%;
    font-size: 40px;
  }
  .hero-bottom {
    margin-top: -6px;
    align-items: center;
    gap: 20px;
  }
  .hero-bottom > p {
    font-size: 11px;
    line-height: 1.6;
  }
  .round-link {
    font-size: 11px;
    gap: 12px;
    max-width: 140px;
  }
  .round-link > span:first-child {
    max-width: 75px;
  }
  .round-arrow {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    font-size: 20px;
  }
  .discipline-strip {
    padding-block: 15px;
    font-size: 9px;
    gap: 16px;
  }
  .discipline-strip b {
    font-size: 16px;
  }
  .section-eyebrow {
    padding-top: 30px;
    font-size: 9px;
  }
  .section-eyebrow > span:last-child {
    max-width: 48%;
    text-align: right;
  }
  .section-heading {
    display: block;
    margin-top: 36px;
    margin-bottom: 28px;
  }
  .section-heading h2 {
    font-size: clamp(44px, 10.5vw, 68px);
  }
  .section-heading > p {
    max-width: none;
    margin-top: 22px;
    font-size: 13px;
  }
  .filter-bar {
    padding-block: 12px;
    margin-bottom: 25px;
    overflow-x: auto;
  }
  .filters {
    gap: 4px;
  }
  .filters button {
    font-size: 10px;
    padding: 8px 12px;
    white-space: nowrap;
  }
  .filter-note {
    display: none;
  }
  .project-grid,
  .project-grid:has(.project-card[hidden]) {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .project-card:nth-child(2),
  .project-card:nth-child(4) {
    padding-top: 0;
  }
  .project-caption {
    padding-top: 16px;
  }
  .project-caption h3 {
    font-size: 24px;
  }
  .project-description {
    display: flex;
    align-items: baseline;
  }
  .project-description p {
    max-width: 60%;
    font-size: 11px;
  }
  .project-description .demo-label {
    font-size: 8px;
  }
  .project-view {
    display: none;
  }
  .wine-word {
    font-size: 52px;
  }
  .wine-mark {
    font-size: 160px;
    right: 4%;
  }
  .work-footnote {
    margin-top: 35px;
    padding-top: 20px;
  }
  .work-footnote > p {
    font-size: 10px;
  }
  .work-section {
    padding-bottom: 40px;
  }
  .about-section {
    padding-bottom: 55px;
  }
  .about-grid {
    display: block;
    padding-top: 35px;
  }
  .about-side {
    display: none;
  }
  .about-content h2 {
    font-size: clamp(40px, 10vw, 62px);
  }
  .about-intro {
    font-size: 16px;
    margin-top: 25px;
  }
  .about-note {
    font-size: 11px;
  }
  .process {
    margin-top: 30px;
  }
  .process summary {
    font-size: 13px;
    gap: 14px;
    padding-block: 18px;
  }
  .process details p {
    font-size: 12px;
    padding-left: 24px;
    padding-right: 12px;
  }
  .contact-section .section-eyebrow {
    font-size: 9px;
  }
  .contact-title {
    margin-top: 40px;
    margin-bottom: 35px;
    gap: 15px;
  }
  .contact-cta {
    font-size: clamp(44px, 10.2vw, 70px);
  }
  .contact-symbol-box {
    gap: 10px;
  }
  .contact-symbol {
    width: 38px;
  }
  .contact-arrow {
    width: 58px;
    height: 58px;
    font-size: 36px;
  }
  .contact-bottom {
    font-size: 10px;
    flex-wrap: wrap;
    padding-bottom: 25px;
  }
  .contact-bottom > a {
    margin-left: 10px;
  }
  .footer-meta {
    font-size: 9px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .footer-meta > span:nth-child(2) {
    display: none;
  }
  .case-header {
    padding-top: 25px;
    padding-bottom: 35px;
  }
  .case-kicker {
    margin-top: 35px;
    font-size: 10px;
  }
  .case-badge {
    font-size: 9px;
    padding: 5px 10px;
  }
  .case-header h1 {
    font-size: clamp(42px, 12vw, 82px);
    margin-top: 24px;
  }
  .case-subtitle {
    font-size: 18px;
  }
  .case-meta {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 30px;
    padding-top: 20px;
  }
  .case-meta > div:nth-child(2) {
    grid-column: span 2;
    grid-row: 2;
  }
  .case-meta p {
    font-size: 11px;
  }
  .case-cover figcaption {
    font-size: 9px;
    padding: 12px;
  }
  .case-intro {
    display: block;
    padding-top: 40px;
    padding-bottom: 30px;
  }
  .case-intro h2 {
    font-size: 28px;
    margin-top: 18px;
  }
  .case-story {
    display: block;
    padding-bottom: 30px;
  }
  .case-story section {
    margin-bottom: 25px;
  }
  .case-story p {
    font-size: 13px;
    margin-top: 14px;
  }
  .case-detail {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 35px;
  }
  .detail-type {
    aspect-ratio: 1.2;
    padding: 24px;
  }
  .detail-type strong {
    font-size: 170px;
  }
  .detail-list h3 {
    font-size: 32px;
  }
  .detail-list ul {
    margin-top: 25px;
  }
  .case-disclaimer {
    padding: 20px;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 35px;
  }
  .case-disclaimer p {
    font-size: 11px;
  }
  .case-disclaimer > span {
    font-size: 22px;
  }
  .next-project {
    grid-template-columns: 1fr auto;
    gap: 15px;
    padding-bottom: 35px;
  }
  .next-project > span:first-child {
    grid-column: span 2;
    font-size: 9px;
  }
  .next-project strong {
    font-size: 36px;
  }
  .next-project > span:last-child {
    font-size: 34px;
  }
  .case-placeholder {
    padding-top: 40px;
  }
  .case-placeholder h2 {
    font-size: 38px;
  }
  .case-placeholder p {
    font-size: 13px;
  }
  .not-found {
    padding-block: 45px;
  }
  .not-found p {
    font-size: 16px;
  }
}

@media (max-width: 370px) {
  .hero-composition {
    min-height: 420px;
  }
  .hero h1 {
    font-size: 12.8vw;
  }
  .hero-object {
    top: 28%;
  }
  .filters button {
    padding-inline: 10px;
  }
  .project-description {
    display: block;
  }
  .project-description p {
    max-width: none;
  }
  .contact-cta {
    font-size: 10.2vw;
  }
  .contact-arrow {
    width: 48px;
    height: 48px;
    font-size: 30px;
  }
  .contact-bottom > a {
    margin-left: 0;
  }
}

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

@media print {
  body {
    background: white;
    color: black;
  }
  .site-header nav,
  .menu-toggle,
  .filter-bar,
  .hero-object,
  .discipline-strip,
  .contact-section,
  .project-view {
    display: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .project-grid {
    display: block;
  }
  .project-card {
    break-inside: avoid;
    padding: 20px 0 !important;
  }
  .project-card[hidden] {
    display: block !important;
  }
  .project-image {
    max-height: 300px;
  }
  .project-image img {
    object-fit: contain;
  }
  .hero h1 {
    font-size: 70px;
  }
  .hero-composition {
    min-height: initial;
  }
  .hero-asterisk {
    display: none;
  }
  .hero {
    padding-bottom: 30px;
  }
  .about-grid {
    display: block;
  }
  .about-side {
    display: none;
  }
  .case-story {
    display: block;
  }
  .case-story section {
    margin-bottom: 20px;
  }
}
