:root {
  --bg: #f5f1e8;
  --surface: rgba(245, 241, 232, 0.58);
  --surface-strong: rgba(245, 241, 232, 0.82);
  --text: #1c2b27;
  --text-muted: rgba(28, 43, 39, 0.68);
  --accent: #c2a878;
  --line: rgba(28, 43, 39, 0.14);
  --shadow: rgba(28, 43, 39, 0.14);
  --glass-border: rgba(255, 255, 255, 0.48);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  --bg: #0d1f1a;
  --surface: rgba(237, 235, 230, 0.055);
  --surface-strong: rgba(237, 235, 230, 0.095);
  --text: #edebe6;
  --text-muted: rgba(237, 235, 230, 0.68);
  --accent: #c2a878;
  --line: rgba(237, 235, 230, 0.14);
  --shadow: rgba(0, 0, 0, 0.42);
  --glass-border: rgba(237, 235, 230, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 34rem),
    linear-gradient(135deg, var(--bg), color-mix(in srgb, var(--bg) 86%, var(--accent)));
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  transition: background 650ms var(--ease), color 650ms var(--ease);
}

body.nav-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.42;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(0deg, var(--line) 1px, transparent 1px);
  background-size: 8vw 8vw;
  transition: opacity 650ms var(--ease);
}

a,
button {
  color: inherit;
  cursor: none;
}

a {
  text-decoration: none;
}

button {
  font: inherit;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.36'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: #ffffff;
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  transition: width 260ms var(--ease), height 260ms var(--ease), border-color 260ms var(--ease), opacity 260ms var(--ease);
}

.cursor-ring span {
  opacity: 0;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 180ms var(--ease);
}

body.cursor-link .cursor-ring {
  width: 48px;
  height: 48px;
}

body.cursor-card .cursor-ring {
  width: 86px;
  height: 86px;
}

body.cursor-card .cursor-ring span {
  opacity: 1;
}

.section {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-fade {
  view-transition-name: section;
}

.glass {
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(135deg, var(--surface-strong), var(--surface)),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  box-shadow: 0 26px 80px var(--shadow);
  backdrop-filter: blur(22px);
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 80;
  width: min(1160px, calc(100% - 2rem));
  min-height: 4.6rem;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0.75rem 0.45rem 1rem;
  border-radius: 999px;
  transition: min-height 500ms var(--ease), background 650ms var(--ease), border-color 650ms var(--ease), box-shadow 650ms var(--ease);
}

.site-header.is-scrolled {
  min-height: 4rem;
}

.brand img {
  width: 15.1rem;
  height: 4.1rem;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px var(--shadow));
}


.logo-light { display: none; }

:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark  { display: block; }

:root:not([data-theme="dark"]) .logo-light { display: block; }
:root:not([data-theme="dark"]) .logo-dark  { display: none; }


.nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.nav a,
.case-link,
.back-link,
.socials a,
.footer > a {
  position: relative;
}

.nav a::after,
.case-link::after,
.back-link::after,
.socials a::after,
.footer > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.28rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}

.nav a:hover::after,
.case-link:hover::after,
.back-link:hover::after,
.socials a:hover::after,
.footer > a:hover::after {
  transform: scaleX(1);
}

.footer img {
  width: 15rem;
  height: 4.1rem;
}

.theme-toggle,
.menu-toggle {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  color: var(--text);
  border-radius: 999px;
}

.theme-toggle {
  width: 3.15rem;
  height: 3.15rem;
  display: grid;
  place-items: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.theme-icon {
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 350ms var(--ease), transform 350ms var(--ease);
}

.theme-icon-moon {
  fill: currentColor;
  stroke: none;
}

.theme-icon-sun {
  opacity: 0;
  transform: translateY(10px) rotate(-35deg) scale(0.72);
}

:root[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: translateY(-10px) rotate(35deg) scale(0.72);
}

:root[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
}

.menu-toggle {
  display: none;
  width: 2.9rem;
  height: 2.9rem;
}

.menu-toggle span {
  display: block;
  width: 1rem;
  height: 1px;
  margin: 0.25rem auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: 10rem 0 5rem;
}

.hero-grid {
  position: absolute;
  inset: 8rem 0 3rem;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  opacity: 0;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(0deg, var(--line) 1px, transparent 1px);
  background-size: 16.66% 20%;
  transition: opacity 500ms var(--ease);
}

.hero:hover .hero-grid {
  opacity: 0.72;
}

.eyebrow,
.section-kicker,
.project-label {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  line-height: 0.88;
}

.hero-title span,
.hero-title strong {
  display: block;
}

.hero-title span {
  font-size: clamp(2.7rem, 7vw, 7.2rem);
  font-weight: 600;
}

.hero-title strong {
  width: min-content;
  font-size: clamp(4.2rem, 12.8vw, 12.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: titleSpacing 1300ms var(--ease) both;
}

.hero-role {
  width: min(780px, 100%);
  margin: 1.8rem 0 0;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 700;
}

.hero-copy {
  width: min(630px, 100%);
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.hero-actions,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-meta {
  margin-top: 3.2rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-meta span {
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease), background 650ms var(--ease), color 650ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--bg);
  background: var(--text);
  box-shadow: 0 18px 44px var(--shadow);
}

.button-secondary {
  color: var(--text);
  background: transparent;
}

.logo-section {
  padding: 4rem 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logo-heading {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  text-align: center;
}

.logo-heading h2,
.section-title,
.statement h2,
.cta-panel h2,
.case-content h3,
.about-copy {
  font-family: var(--serif);
}

.logo-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 3.4vw, 3.5rem);
  line-height: 1.03;
}

.logo-heading span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo-marquee {
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: marquee 34s linear infinite;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.client-logo {
  width: clamp(10rem, 16vw, 14rem);
  height: 5.5rem;
  display: grid;
  place-items: center;
  padding: 1rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  opacity: 0.68;
  transition: opacity 300ms var(--ease), transform 300ms var(--ease), background 650ms var(--ease);
}

.client-logo:hover {
  opacity: 0.95;
  transform: translateY(-2px);
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(0.92);
}

.about {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) 1.22fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: 7rem 0;
}

.portrait-wrap {
  position: sticky;
  top: 7rem;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 32px 90px var(--shadow);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy {
  color: var(--text);
  font-size: clamp(1.55rem, 3.05vw, 3.15rem);
  line-height: 1.13;
}

.about-copy p {
  margin: 0 0 1.2rem;
}

.about-copy span {
  color: var(--accent);
  font-style: italic;
}

.about-copy .about-technical {
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  font-weight: 500;
  line-height: 1.72;
}

.services,
.portfolio,
.differentiation,
.final-cta {
  padding: 6.8rem 0;
}

.section-title {
  width: min(830px, 100%);
  margin: 0 0 1.8rem;
  color: var(--text);
  font-size: clamp(2.35rem, 5.4vw, 6.2rem);
  line-height: 0.96;
}

.authority-line {
  width: min(680px, 100%);
  margin: 0 0 2rem;
  color: var(--text);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card,
.case-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.service-card::before,
.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(0deg, var(--line) 1px, transparent 1px);
  background-size: 20% 20%;
  transition: opacity 350ms var(--ease);
}

.service-card:hover::before,
.case-card:hover::before {
  opacity: 0.5;
}

.service-card {
  min-height: 430px;
  padding: 1.45rem;
  transform: rotate(0.5deg);
  transition: transform 450ms var(--ease), box-shadow 450ms var(--ease), background 650ms var(--ease);
}

.service-card.is-visible {
  transform: rotate(0deg);
}

.service-card:hover {
  transform: translateY(-7px) rotate(0deg);
  box-shadow: 0 28px 76px var(--shadow);
}

.service-card > span {
  color: var(--accent);
  font-weight: 800;
}

.service-card h3 {
  margin: 3rem 0 0.7rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-card h4 {
  margin: 0 0 1rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.04;
}

.service-card p,
.case-content p {
  color: var(--text-muted);
}

.portfolio {
  display: grid;
  gap: 1rem;
}

.portfolio > .section-kicker,
.portfolio > .section-title {
  margin-bottom: 0.6rem;
}

.case-card {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: stretch;
  padding: 1rem;
  transition: transform 450ms var(--ease), box-shadow 450ms var(--ease), background 650ms var(--ease);
}

.case-card:nth-of-type(even) {
  grid-template-columns: 0.92fr 1fr;
}

.case-card:nth-of-type(even) .case-media {
  order: 2;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 86px var(--shadow);
}

.case-media {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-strong);
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}

.case-card:hover .case-media img {
  transform: scale(1.035);
}

.case-overlay {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.4rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 350ms var(--ease), transform 350ms var(--ease);
}

.case-card:hover .case-overlay {
  opacity: 1;
  transform: translateY(0);
}

.case-content {
  align-self: center;
  padding: clamp(1rem, 2vw, 2rem);
}

.case-content h3 {
  margin: 0.4rem 0 1rem;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.98;
  transition: color 350ms var(--ease), font-weight 350ms var(--ease);
}

.case-card:hover .case-content h3 {
  color: var(--accent);
  font-weight: 800;
}

.project-impact {
  width: fit-content;
  margin: 0 0 1.25rem;
  padding-bottom: 0.45rem;
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  font-weight: 800;
}

.case-link {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--text);
  font-weight: 800;
}

.statement,
.cta-panel {
  border-radius: 8px;
}

.statement {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.6rem);
  text-align: center;
}

.statement h2,
.cta-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.5rem, 6vw, 6.5rem);
  line-height: 0.96;
}

.statement p,
.cta-panel p {
  width: min(650px, 100%);
  margin: 1.4rem auto 0;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
}

.cta-panel {
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 5rem);
  text-align: center;
}

.cta-panel .cta-subtext {
  margin-top: 1rem;
}

.cta-panel .button {
  margin-top: 2rem;
}

.footer {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer > div:first-child {
  text-align: center;
}

.footer-tagline {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0;
}

.footer-logo {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
}

.footer p {
  margin: 0.2rem 0 0;
}

.socials {
  display: flex;
  gap: 1rem;
}

.case-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 80;
  width: min(920px, calc(100% - 2rem));
  transform: translateX(-50%);
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--surface-strong);
  box-shadow: 0 22px 70px var(--shadow);
  backdrop-filter: blur(22px);
}

.case-page {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 9rem 0 6rem;
}

.case-hero {
  padding: 3rem 0 4.5rem;
  border-bottom: 1px solid var(--line);
}

.case-hero h1 {
  width: min(840px, 100%);
  margin: 0.6rem 0 1.4rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(3.1rem, 7vw, 7.8rem);
  font-weight: 800;
  line-height: 0.94;
}

.case-hero p:last-child,
.case-reading p {
  color: var(--text-muted);
}

.case-reading article {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.case-reading h2 {
  margin: 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.project-gallery {
  display: grid;
  gap: 1.25rem;
  padding-top: 3rem;
}

.project-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 26px 70px var(--shadow);
  content-visibility: auto;
  contain-intrinsic-size: 900px 520px;
}

.reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(32px);
  transition: opacity 820ms var(--ease), transform 820ms var(--ease), filter 820ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: wordIn 780ms var(--ease) forwards;
  animation-delay: calc(var(--word-index) * 70ms);
}

@keyframes wordIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleSpacing {
  from {
    letter-spacing: 0.12em;
    opacity: 0;
  }
  to {
    letter-spacing: 0.02em;
    opacity: 1;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

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

  body {
    cursor: auto;
  }

  a,
  button {
    cursor: pointer;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .reveal,
  .word {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .site-header,
  .section,
  .footer {
    width: min(100% - 2rem, 940px);
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .case-card,
  .case-card:nth-of-type(even) {
    grid-template-columns: 1fr;
  }

  .case-card:nth-of-type(even) .case-media {
    order: 0;
  }
}

@media (max-width: 780px) {
  body {
    cursor: auto;
  }

  a,
  button {
    cursor: pointer;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .site-header {
    grid-template-columns: auto auto auto;
    border-radius: 24px;
  }

  .menu-toggle {
    display: block;
  }

  .theme-toggle {
    justify-self: end;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.6rem);
    display: grid;
    padding: 0.8rem;
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    background: var(--surface-strong);
    box-shadow: 0 24px 70px var(--shadow);
    backdrop-filter: blur(22px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 300ms var(--ease), transform 300ms var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 0.85rem;
  }

  .hero-title strong {
    font-size: clamp(3.5rem, 19vw, 7rem);
  }

  .about,
  .footer {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    position: relative;
    top: auto;
  }

  .case-media {
    min-height: 320px;
  }

  .case-reading article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    top: 0.65rem;
    width: calc(100% - 1rem);
  }

  .brand img {
    width: 3.45rem;
    height: 3.45rem;
  }

  .theme-toggle {
    width: 2.65rem;
    height: 2.65rem;
  }

  .hero,
  .case-page {
    padding-top: 7rem;
  }

  .hero-title span {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .services,
  .portfolio,
  .differentiation,
  .final-cta,
  .about {
    padding: 4.8rem 0;
  }

  .section-title,
  .case-content h3,
  .statement h2,
  .cta-panel h2,
  .case-hero h1 {
    overflow-wrap: anywhere;
  }

  .case-card {
    padding: 0.72rem;
  }

  .case-media {
    min-height: 240px;
  }

  .client-logo {
    width: 9rem;
    height: 4.8rem;
  }

  .footer {
    align-items: start;
  }

  .socials {
    flex-wrap: wrap;
  }
}
