:root {
  --bg: #04080d;
  --surface: #0a1118;
  --surface-2: #0f1822;
  --text: #f5f8fb;
  --muted: #9cadbd;
  --line: rgba(255,255,255,.10);
  --line-bright: rgba(118, 204, 255, .22);
  --blue: #2b8cff;
  --cyan: #5ce2f4;
  --glow: rgba(49, 153, 255, .28);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -18%, rgba(30, 113, 184, .11), transparent 38%),
    linear-gradient(180deg, #02060a 0%, #050a0f 42%, #02060a 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  isolation: isolate;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.container { width: min(var(--max), calc(100% - 42px)); margin-inline: auto; }
.section { padding: 116px 0; position: relative; }

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .88;
}

.space-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, transparent 0%, transparent 34%, rgba(1, 4, 8, .13) 64%, rgba(1, 4, 8, .62) 112%),
    linear-gradient(180deg, rgba(2, 6, 10, .02), rgba(2, 6, 10, .25));
}

.ambient {
  position: fixed;
  pointer-events: none;
  filter: blur(120px);
  border-radius: 999px;
  z-index: 2;
  opacity: .10;
}
.ambient-one { width: 520px; height: 520px; background: var(--blue); top: -120px; right: -160px; }
.ambient-two { width: 420px; height: 420px; background: var(--cyan); left: -220px; top: 45%; opacity: .06; }

.site-header,
main,
.site-footer { position: relative; z-index: 3; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.site-header.scrolled {
  background: rgba(3, 8, 13, .78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,.16);
}
.nav-wrap { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { width: 172px; display: block; }
.brand img { width: 100%; height: 54px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 650; color: #c6d3df; }
.site-nav a { transition: color .2s ease, background .2s ease, border-color .2s ease; }
.site-nav a:hover { color: white; }
.nav-cta { border: 1px solid var(--line); padding: 10px 15px; border-radius: 999px; background: rgba(255,255,255,.035); }
.nav-cta:hover { border-color: rgba(92,226,244,.26); background: rgba(92,226,244,.06); }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: white; margin: 6px 0; }

.hero { padding-top: 96px; min-height: 760px; display: flex; align-items: center; overflow: clip; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 72px;
  align-items: center;
  transform: translate3d(0, var(--hero-y, 0px), 0) scale(var(--hero-scale, 1));
  opacity: var(--hero-opacity, 1);
  transform-origin: 50% 44%;
  will-change: transform, opacity;
}
.eyebrow { margin: 0 0 18px; color: var(--cyan); text-transform: uppercase; letter-spacing: .17em; font-size: 12px; font-weight: 800; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(54px, 7vw, 88px); line-height: .98; letter-spacing: -.057em; max-width: 900px; margin-bottom: 28px; }
h1 span { background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 730px; color: #bcc9d5; font-size: 20px; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; margin: 36px 0 42px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 21px; border-radius: 12px; font-size: 14px; font-weight: 800; letter-spacing: -.01em; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.button-primary { background: linear-gradient(135deg, var(--blue), #3bbbe7); box-shadow: 0 10px 40px rgba(43,140,255,.20); color: white; }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 45px rgba(43,140,255,.30); }
.button-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.03); color: #e7eef5; }
.button-secondary:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-meta span, .tag-row span, .principles span { border: 1px solid var(--line); background: rgba(255,255,255,.025); color: #aebdcc; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 600; }

.hero-panel,
.case-study,
.service-card,
.engagement-card,
.contact-shell {
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}
.hero-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 25, 36, .74), rgba(7, 15, 23, .54));
  border-radius: 24px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.hero-panel::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--blue); filter: blur(90px); opacity: .12; top: -120px; right: -100px; }
.signal-line { height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .55; margin-bottom: 24px; }
.panel-kicker { color: #d6e1eb; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.panel-item { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.panel-item strong { color: #5fb6ff; font-size: 13px; }
.panel-item span { display: block; font-weight: 800; letter-spacing: -.02em; margin-bottom: 5px; }
.panel-item small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }

.scroll-cue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: #738594; font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.scroll-cue span { width: 28px; height: 1px; background: linear-gradient(90deg, transparent, #6cc8ff); animation: cuePulse 2.2s ease-in-out infinite; }
@keyframes cuePulse { 0%,100% { opacity: .28; transform: scaleX(.55); } 50% { opacity: .9; transform: scaleX(1); } }

.section-heading { max-width: 810px; margin-bottom: 50px; }
.section-heading h2, .contact h2 { font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -.045em; margin-bottom: 0; }
.section-intro { color: #aebdca; max-width: 760px; font-size: 17px; margin: 22px 0 0; }

/* Scroll scene camera movement + delayed section arrival */
.zoom-scene > .container {
  transform: translate3d(0, var(--scene-y, 0px), 0) scale(var(--scene-scale, 1));
  opacity: var(--scene-opacity, 1);
  transform-origin: 50% 38%;
  will-change: transform, opacity;
}
.section-transition {
  --section-reveal-opacity: .18;
  filter: blur(5px);
  transition: opacity .82s cubic-bezier(.22,.61,.36,1) var(--section-delay, .14s), filter .82s cubic-bezier(.22,.61,.36,1) var(--section-delay, .14s);
  opacity: var(--section-reveal-opacity);
}
.section-transition.section-awake {
  --section-reveal-opacity: 1;
  opacity: 1;
  filter: blur(0);
}

.work { border-top: 1px solid var(--line); }
.case-study { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 500px; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: linear-gradient(140deg, rgba(13, 26, 38, .78), rgba(7, 15, 23, .54)); box-shadow: 0 35px 110px rgba(0,0,0,.22); }
.case-copy { padding: 58px; align-self: center; }
.case-label { color: var(--cyan); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .14em; margin-bottom: 18px; }
.case-copy h3 { font-size: clamp(35px, 4vw, 52px); line-height: 1.06; letter-spacing: -.04em; margin-bottom: 20px; }
.case-copy > p { color: var(--muted); max-width: 620px; font-size: 16px; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 0; }
.case-metrics div { padding: 15px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.02); }
.case-metrics strong { display: block; font-size: 12px; color: #dfe9f2; margin-bottom: 4px; }
.case-metrics span { color: #8294a4; font-size: 11px; line-height: 1.35; display: block; }
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.case-visual { min-height: 450px; background: radial-gradient(circle at 65% 30%, rgba(77,201,240,.15), transparent 32%), linear-gradient(135deg, rgba(11,23,34,.88), rgba(8,16,23,.9)); display: flex; align-items: center; justify-content: center; padding: 38px; position: relative; }
.case-visual::before { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(92,226,244,.08); border-radius: 50%; filter: blur(.2px); }
.mini-ui { width: min(100%, 480px); aspect-ratio: 1.28; background: #eff5f9; border-radius: 14px; box-shadow: 0 28px 80px rgba(0,0,0,.42); overflow: hidden; transform: perspective(1100px) rotateY(-7deg) rotateX(3deg); }
.mini-top { height: 42px; background: #0e1a25; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.mini-top i { width: 8px; height: 8px; background: #536371; border-radius: 50%; }
.mini-body { display: grid; grid-template-columns: 80px 1fr; height: calc(100% - 42px); }
.mini-sidebar { background: #152c3e; }
.mini-content { padding: 28px; }
.mini-title { width: 42%; height: 18px; background: #1d8be8; border-radius: 4px; margin-bottom: 30px; }
.mini-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mini-cards span { height: 72px; border-radius: 8px; background: white; box-shadow: 0 4px 18px rgba(36,55,72,.10); }
.mini-table { height: 130px; margin-top: 18px; background: repeating-linear-gradient(to bottom,#fff 0,#fff 27px,#e5edf3 28px); border-radius: 8px; }
.work-note { margin-top: 18px; border: 1px dashed rgba(96,193,243,.34); border-radius: 16px; padding: 20px 24px; color: var(--muted); background: rgba(8,18,27,.34); }
.work-note p { margin-bottom: 0; }


/* Expanded portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.portfolio-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: linear-gradient(155deg, rgba(11, 23, 34, .76), rgba(5, 12, 19, .58));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 28px 75px rgba(0,0,0,.17);
  transition: transform .28s ease, border-color .28s ease, background .28s ease, box-shadow .28s ease;
}
.portfolio-card::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -120px;
  top: -125px;
  border-radius: 50%;
  background: var(--blue);
  filter: blur(95px);
  opacity: .055;
  transition: opacity .28s ease, transform .28s ease;
}
.portfolio-card:hover {
  transform: translateY(-5px);
  border-color: rgba(92,226,244,.23);
  background: linear-gradient(155deg, rgba(13, 28, 41, .82), rgba(6, 14, 22, .66));
  box-shadow: 0 34px 90px rgba(0,0,0,.24);
}
.portfolio-card:hover::before { opacity: .10; transform: scale(1.08); }
.portfolio-card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.portfolio-index { color: var(--cyan); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.portfolio-type { color: #708393; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; text-align: right; }
.portfolio-card h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.06; letter-spacing: -.038em; margin-bottom: 16px; }
.portfolio-summary { color: #aebdca; font-size: 15px; line-height: 1.65; margin-bottom: 26px; }
.portfolio-detail { padding: 18px 18px 17px; border: 1px solid rgba(109,198,255,.13); border-radius: 14px; background: rgba(52,139,203,.045); margin-bottom: 24px; }
.portfolio-detail strong { display: block; color: #e5f3fc; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.portfolio-detail p { margin: 0; color: #879aa9; font-size: 13px; line-height: 1.55; }
.portfolio-highlights { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; color: #91a2b1; font-size: 13px; }
.portfolio-highlights li { position: relative; padding-left: 18px; }
.portfolio-highlights li::before { content: ""; position: absolute; left: 0; top: .70em; width: 7px; height: 1px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.portfolio-card .tag-row { margin-top: auto; }

.services { background: rgba(6,13,20,.43); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.service-card { min-height: 320px; border: 1px solid var(--line); background: rgba(9,18,27,.62); border-radius: 21px; padding: 28px; transition: transform .24s ease, background .24s ease, border-color .24s ease, box-shadow .24s ease; position: relative; overflow: hidden; }
.service-card::after { content: ""; position: absolute; inset: auto -80px -100px auto; width: 170px; height: 170px; background: var(--blue); filter: blur(80px); opacity: 0; transition: opacity .24s ease; }
.service-card:hover { transform: translateY(-5px); background: rgba(13,27,39,.76); border-color: rgba(92,226,244,.25); box-shadow: 0 20px 55px rgba(0,0,0,.20); }
.service-card:hover::after { opacity: .08; }
.service-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 48px; }
.service-code { color: #77cdff; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.service-number { color: #5c6b78; font-size: 11px; font-weight: 800; }
.service-card h3 { font-size: 22px; letter-spacing: -.026em; line-height: 1.15; margin-bottom: 12px; }
.service-card > p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.service-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #7f91a1; font-size: 12px; }
.service-points li { position: relative; padding-left: 14px; }
.service-points li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 1px; background: #4dbff6; }
.accent-card { background: linear-gradient(145deg, rgba(43,140,255,.14), rgba(92,226,244,.06)); border-color: rgba(92,226,244,.18); }

.engagements { padding-top: 100px; }
.engagement-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.engagement-card { min-height: 245px; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(12,23,33,.58), rgba(7,14,21,.42)); }
.engagement-card > span { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.engagement-card h3 { font-size: 26px; letter-spacing: -.03em; margin: 46px 0 12px; }
.engagement-card p { color: var(--muted); font-size: 14px; margin: 0; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.about-grid .section-heading { margin-bottom: 0; }
.about-copy { color: #bdc9d4; font-size: 18px; }
.about-copy p { margin-bottom: 20px; }
.principles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.process { padding-top: 48px; }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); }
.process-step { padding: 34px 28px 20px 0; border-right: 1px solid var(--line); }
.process-step + .process-step { padding-left: 28px; }
.process-step:last-child { border-right: 0; padding-right: 0; }
.process-step b { color: var(--cyan); font-size: 12px; letter-spacing: .12em; }
.process-step h3 { font-size: 24px; margin: 16px 0 10px; }
.process-step p { color: var(--muted); font-size: 14px; }

.contact { padding-top: 80px; }
.contact-shell { border: 1px solid rgba(82,183,255,.27); background: linear-gradient(145deg, rgba(29,112,185,.15), rgba(8,31,45,.58)); box-shadow: 0 35px 110px rgba(0,0,0,.24); border-radius: 28px; padding: 58px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; align-items: center; }
.contact-shell > div:first-child p:last-child { color: #b4c2cf; max-width: 680px; margin-top: 22px; margin-bottom: 0; }
.contact-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.button-wide { width: 100%; }
#emailButton[aria-disabled="true"] { opacity: .66; cursor: default; box-shadow: none; }
#emailHint { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0; color: #8494a3; font-size: 12px; }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { font-weight: 900; letter-spacing: .08em; color: white; }
.footer-brand span { color: #83cfff; font-weight: 600; }

/* Delayed element reveal */
.reveal { opacity: 0; transform: translateY(22px) scale(.992); filter: blur(5px); transition: opacity .72s cubic-bezier(.22,.61,.36,1) var(--reveal-delay, 0s), transform .72s cubic-bezier(.22,.61,.36,1) var(--reveal-delay, 0s), filter .72s cubic-bezier(.22,.61,.36,1) var(--reveal-delay, 0s); }
.reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.reveal-delay { --reveal-delay: .12s; }

/* A subtle horizon line between scenes. */
.work::before,
.services::before,
.engagements::before,
.about::before,
.process::before,
.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(72vw, 980px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(82,190,255,.15), transparent);
  pointer-events: none;
}

@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .portfolio-card { min-height: 0; }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(3) { border-top: 1px solid var(--line); padding-left: 0; }
  .process-step:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .section { padding: 86px 0; }
  .hero { padding-top: 52px; min-height: auto; padding-bottom: 104px; }
  .hero-grid, .case-study, .about-grid, .contact-shell { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .case-copy { padding: 40px; }
  .engagement-grid { grid-template-columns: 1fr; }
  .engagement-card { min-height: 200px; }
  .engagement-card h3 { margin-top: 32px; }
  .site-nav { position: fixed; inset: 86px 18px auto; background: rgba(7,14,21,.98); border: 1px solid var(--line); border-radius: 18px; padding: 20px; flex-direction: column; align-items: stretch; gap: 5px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s ease; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 12px 10px; }
  .nav-toggle { display: block; }
  #starfield { opacity: .78; }
  .zoom-scene > .container { transform-origin: 50% 28%; }
}

@media (max-width: 620px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .nav-wrap { height: 76px; }
  .brand { width: 146px; }
  .brand img { height: 45px; }
  .site-nav { inset: 76px 14px auto; }
  h1 { font-size: clamp(48px, 15vw, 67px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-panel { padding: 22px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .case-copy { padding: 30px 24px; }
  .portfolio-card { padding: 28px 24px; }
  .case-visual { min-height: 340px; padding: 24px; }
  .case-metrics { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; border-top: 0; }
  .process-step, .process-step + .process-step, .process-step:nth-child(3), .process-step:nth-child(4) { padding: 24px 0; border-right: 0; border-top: 1px solid var(--line); }
  .contact-shell { padding: 36px 24px; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .section-transition { opacity: 1; filter: none; transition: none; }
  .zoom-scene > .container,
  .hero-grid { transform: none !important; opacity: 1 !important; will-change: auto; }
  #starfield { opacity: .48; }
  .scroll-cue span { animation: none; }
}

/* --------------------------------------------------------------------------
   Final mobile polish
   -------------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body { min-width: 0; }
a, button { touch-action: manipulation; }
.nav-toggle { color: white; cursor: pointer; }
#emailButton, .site-footer a { overflow-wrap: anywhere; }

@media (max-width: 900px) {
  body.nav-open { overflow: hidden; }
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-nav {
    max-height: calc(100svh - 112px - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav a { min-height: 46px; display: flex; align-items: center; }
  .nav-toggle { width: 48px; height: 48px; padding: 12px; }
  .section-heading { margin-bottom: 38px; }
  .case-study, .portfolio-card, .service-card, .engagement-card, .contact-shell { backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
  .portfolio-card:hover, .service-card:hover, .button-primary:hover { transform: none; }
}

@media (max-width: 620px) {
  .section { padding: 72px 0; }
  .hero { padding-top: 38px; padding-bottom: 82px; }
  .hero-grid { gap: 32px; }
  h1 { font-size: clamp(44px, 14.2vw, 64px); line-height: 1.01; }
  .section-heading h2, .contact h2 { font-size: clamp(34px, 10.8vw, 48px); }
  .section-intro { font-size: 15px; line-height: 1.6; }
  .hero-lead { font-size: 16px; line-height: 1.62; }
  .hero-actions { margin: 28px 0 32px; }
  .button { min-height: 52px; padding-inline: 18px; }
  .hero-meta { gap: 8px; }
  .hero-meta span, .tag-row span, .principles span { font-size: 11px; }
  .hero-panel { border-radius: 20px; }
  .panel-item { grid-template-columns: 40px 1fr; padding: 18px 0; }

  .case-study { border-radius: 22px; }
  .case-copy { padding: 28px 22px; }
  .case-copy h3 { font-size: clamp(32px, 10vw, 44px); }
  .case-visual { min-height: 270px; padding: 20px; }
  .case-visual::before { inset: 8%; }
  .mini-ui { transform: perspective(1000px) rotateY(-3deg) rotateX(2deg); }
  .mini-body { grid-template-columns: 58px 1fr; }
  .mini-content { padding: 20px 16px; }
  .mini-cards { gap: 8px; }
  .mini-cards span { height: 56px; }
  .mini-table { height: 105px; }

  .portfolio-grid { gap: 14px; }
  .portfolio-card { padding: 26px 21px; border-radius: 20px; }
  .portfolio-card-top { align-items: flex-start; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 26px; }
  .portfolio-type { max-width: 65%; }
  .portfolio-card h3 { font-size: clamp(28px, 9vw, 38px); }
  .portfolio-summary { font-size: 14px; }
  .portfolio-detail { padding: 16px; }

  .service-card { padding: 24px 21px; border-radius: 18px; }
  .service-top { margin-bottom: 34px; }
  .engagement-card { padding: 26px 22px; border-radius: 18px; }
  .engagement-card h3 { font-size: 24px; }
  .about-grid { gap: 34px; }
  .about-copy { font-size: 16px; }
  .contact-shell { padding: 32px 21px; border-radius: 22px; gap: 30px; }
  #emailButton { font-size: 13px; letter-spacing: -.015em; }
  .site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .footer-wrap { gap: 12px; }
  .footer-wrap > * { max-width: 100%; }
}

@media (max-width: 390px) {
  .container { width: min(var(--max), calc(100% - 22px)); }
  .brand { width: 132px; }
  .brand img { height: 42px; }
  h1 { font-size: clamp(40px, 13.6vw, 54px); }
  .hero-panel { padding: 19px; }
  .case-copy, .portfolio-card, .service-card, .engagement-card, .contact-shell { padding-left: 18px; padding-right: 18px; }
  .portfolio-type { max-width: 72%; font-size: 9px; }
  #emailButton { font-size: 12px; padding-inline: 12px; }
}

@media (hover: none) and (pointer: coarse) {
  .portfolio-card:hover,
  .service-card:hover,
  .button-primary:hover,
  .button-secondary:hover { transform: none; }
}
