/* ============================================================
   QVO.TECH — Brand-anchored Redesign Stylesheet
   Tokens: #ffffff daylight surface, #041620 midnight-teal ink & dark ground,
   #01344c petrol navy accent, #89b8c9 steel-teal specular metallic accent.
   Geometry: 45-degree chamfered octagonal cuts echoing the QVO Q monogram.
   ============================================================ */

@font-face {
  font-family: 'Anton';
  src: url(assets/fonts/anton-latin.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sora';
  src: url(assets/fonts/sora-variable.ttf) format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url(assets/fonts/jetbrains-mono.woff2) format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@property --hl {
  syntax: '<number>';
  inherits: true;
  initial-value: 1;
}

:root {
  --surface: #ffffff;
  --ink: #041620;
  --petrol: #01344c;
  --petrol-deep: #012638;
  --teal-mid: #2a6f87;
  --steel: #89b8c9;
  --mist: #eaf3f6;
  --ice: #a5e6ff;
  --muted: #4c616c;
  --muted-2: #5a707b;
  --giant: #e4ecef;
  --hairline: #d0dde2;
  --hairline-dark: rgba(137, 184, 201, 0.20);

  --chamfer-sm: 9px;
  --chamfer-md: 18px;

  --uc: 1px;
  --uv: 1px;
  --us: 1px;
  --u: 1px;
  --edge-px: 44.8vh;
  --ph: 0;

  --font-display: 'Anton', Impact, sans-serif;
  --font-sans: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--surface);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

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

ul, ol {
  list-style: none;
}

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

.band :focus-visible,
.work-section :focus-visible,
.contact :focus-visible {
  outline-color: var(--ice);
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 200;
  background: var(--petrol);
  color: var(--surface);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.skip-link:focus {
  top: 16px;
}

/* Entrance opacity guard (failsafe .anim-done forces visibility) */
html.js-anim .ent {
  opacity: 0;
}

html.anim-done .ent {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}

/* ---- Chamfered button primitives ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: max(42px, calc(42 * var(--uc)));
  min-height: 40px;
  padding: 0 max(24px, calc(26 * var(--uc)));
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: max(11px, calc(12 * var(--uc)));
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  clip-path: polygon(
    0 0,
    calc(100% - var(--chamfer-sm)) 0,
    100% var(--chamfer-sm),
    100% 100%,
    var(--chamfer-sm) 100%,
    0 calc(100% - var(--chamfer-sm))
  );
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn > span {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--petrol);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--petrol-deep);
}

.btn-outline {
  background: var(--petrol);
  color: var(--petrol);
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: var(--surface);
  clip-path: polygon(
    0 0,
    calc(100% - 8.2px) 0,
    100% 8.2px,
    100% 100%,
    8.2px 100%,
    0 calc(100% - 8.2px)
  );
  transition: background-color 0.25s ease;
  z-index: 0;
}

.btn-outline:hover {
  color: var(--surface);
}

.btn-outline:hover::before {
  background: var(--petrol);
}

.btn-light {
  background: var(--surface);
  color: var(--petrol);
  height: 48px;
  padding: 0 28px;
  font-size: 12px;
}

.btn-light:hover {
  background: var(--steel);
  color: var(--ink);
}

.btn-outline-light {
  background: rgba(137, 184, 201, 0.85);
  color: var(--surface);
  height: 48px;
  padding: 0 28px;
  font-size: 12px;
}

.btn-outline-light::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  background: var(--petrol-deep);
  clip-path: polygon(
    0 0,
    calc(100% - 8.2px) 0,
    100% 8.2px,
    100% 100%,
    8.2px 100%,
    0 calc(100% - 8.2px)
  );
  transition: background-color 0.25s ease;
  z-index: 0;
}

.btn-outline-light:hover {
  color: var(--ink);
}

.btn-outline-light:hover::before {
  background: var(--steel);
}

/* ============================================================
   SECTION 1: GLOBE HERO (#top)
   ============================================================ */
.hwrap {
  position: relative;
  height: 165vh;
  z-index: 1;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  background: var(--surface);
  overflow: hidden;
  z-index: 1;
}

html.sticky .hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.gwrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

#globe {
  display: block;
  width: 100%;
  height: 100%;
}

.hf {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(1440 * var(--uc));
  height: calc(900 * var(--uc));
  z-index: 2;
  pointer-events: none;
}

.hf a {
  pointer-events: auto;
}

.top-bar {
  display: contents;
}

.brand {
  position: absolute;
  left: calc(40 * var(--uc));
  top: calc(34 * var(--uc));
  display: inline-flex;
  align-items: center;
  gap: calc(11 * var(--uc));
  color: var(--petrol);
  transition: opacity 0.25s ease;
}

.brand-mark {
  display: block;
  width: calc(34 * var(--uc));
  height: calc(32.5 * var(--uc));
  color: var(--petrol);
  flex: none;
}

.brand-word {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: max(12px, calc(15 * var(--uc)));
  letter-spacing: 0.18em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}

.vnav {
  position: absolute;
  left: calc(218 * var(--uc));
  top: calc(74 * var(--uc));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.vnav a {
  position: relative;
  display: inline-block;
  padding: calc(6.1 * var(--uc)) 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: max(11px, calc(13 * var(--uc)));
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.22s ease, padding-left 0.22s ease;
}

.vnav a::before {
  content: '';
  position: absolute;
  left: calc(-12 * var(--uc));
  top: 50%;
  width: calc(6 * var(--uc));
  height: 2px;
  background: var(--steel);
  transform: translateY(-50%) scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.22s ease;
}

.vnav a:hover,
.vnav a:focus-visible {
  color: var(--petrol);
}

.vnav a:hover::before {
  transform: translateY(-50%) scaleX(1);
}

.copy {
  position: absolute;
  left: calc(218 * var(--uc));
  top: calc(286 * var(--uc));
  width: calc(620 * var(--uc));
  will-change: transform, opacity;
}

.overline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: max(12px, calc(16.5 * var(--uc)));
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--petrol);
}

.hl {
  margin-top: calc(10 * var(--uc));
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(114.3 * var(--uc));
  line-height: 0.953;
  letter-spacing: -0.004em;
  text-transform: uppercase;
  color: var(--ink);
}

.hl .ln {
  display: block;
  white-space: nowrap;
  will-change: transform, opacity, clip-path;
}

.lede {
  margin-top: calc(21 * var(--uc));
  max-width: max(260px, calc(460 * var(--uc)));
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: max(13px, calc(17.5 * var(--uc)));
  line-height: 1.48;
  color: var(--muted);
}

.btns {
  margin-top: calc(22 * var(--uc));
  display: flex;
  flex-wrap: wrap;
  gap: calc(15 * var(--uc));
}

/* ============================================================
   HORIZON GLOW TRANSITION LAYER (.hz)
   ============================================================ */
.hz {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: none;
}

/* ============================================================
   SECTION 2: STUDIO PROOF & STATS (#about)
   ============================================================ */
.stats {
  position: relative;
  z-index: 3;
  background: transparent;
}

.pin {
  position: sticky;
  top: min(0px, calc(100vh - 900 * var(--us)));
  height: calc(900 * var(--us));
  z-index: 1;
  pointer-events: none;
}

.ph {
  position: absolute;
  left: calc(64 * var(--us));
  top: calc(93 * var(--us));
  width: calc(440 * var(--us));
  height: calc(236 * var(--us));
  overflow: hidden;
  pointer-events: auto;
}

html.js-anim .ph:not(.is-rev) {
  clip-path: inset(100% 0 0 0);
}

.ph-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--petrol);
  clip-path: polygon(
    0 0,
    calc(100% - var(--chamfer-md)) 0,
    100% var(--chamfer-md),
    100% 100%,
    var(--chamfer-md) 100%,
    0 calc(100% - var(--chamfer-md))
  );
}

.ph-frame i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--petrol) url('assets/studio-plate.jpg') 50% 50% / cover no-repeat;
  transform-origin: 50% 50%;
}

.big {
  position: absolute;
  left: calc(64 * var(--us));
  top: calc(383 * var(--us));
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(105 * var(--us));
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.big .ln {
  display: block;
  white-space: nowrap;
}

.col {
  position: relative;
  margin-top: calc(-900 * var(--us));
  height: calc((371 + 5 * 166 + 140) * var(--us));
  z-index: 2;
}

.intro {
  position: absolute;
  left: calc(594 * var(--us));
  top: calc(117 * var(--us));
  width: calc(456 * var(--us));
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: max(12.5px, calc(17.5 * var(--us)));
  line-height: 1.42;
  color: var(--muted-2);
}

.intro p + p {
  margin-top: calc(24 * var(--us));
}

.intro-links {
  margin-top: calc(22 * var(--us));
  display: flex;
  flex-wrap: wrap;
  gap: calc(26 * var(--us));
}

.intro-links a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition: color 0.2s ease;
}

.intro-links a:hover {
  color: var(--petrol);
}

.nums {
  position: absolute;
  left: calc(993 * var(--us));
  top: calc(371 * var(--us));
  width: calc(384 * var(--us));
}

.stat-item {
  position: relative;
  height: calc(166 * var(--us));
}

.stat-item:not(:first-child)::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: calc(-16 * var(--us));
  height: 1px;
  background: var(--hairline);
  transform-origin: 0 50%;
  transform: scaleX(var(--hl, 1));
}

html.js-anim .stat-item:not(:first-child):not(.is-rev)::before {
  transform: scaleX(0);
}

html.js-anim .stat-item:not(:first-child).is-rev::before {
  transform: scaleX(1);
  transition: transform 0.9s cubic-bezier(0.7, 0, 0.2, 1) 0.06s;
}

.stat-item .n {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(82 * var(--us));
  line-height: 1;
  color: var(--petrol);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-item .c {
  margin-top: calc(6 * var(--us));
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: max(12px, calc(16.5 * var(--us)));
  line-height: 1.38;
  color: var(--muted-2);
}

/* ============================================================
   SECTION 3: SERVICES SCROLL SCENE (#services)
   ============================================================ */
.track {
  position: relative;
  z-index: 4;
  background: var(--surface);
}

.scene {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: var(--surface);
}

.giant {
  position: absolute;
  left: 0;
  top: calc(var(--edge-px) - 264 * var(--u));
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(330 * var(--u));
  line-height: 0.8;
  color: var(--giant);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.core-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.vel {
  position: absolute;
  left: calc(26 * var(--u));
  top: calc(44 * var(--u));
  z-index: 4;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: max(10px, calc(10.5 * var(--u)));
  letter-spacing: 0.08em;
  color: var(--ink);
  opacity: var(--ph);
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.band {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--edge-px);
  bottom: 0;
  z-index: 4;
  color: var(--surface);
  overflow: hidden;
  pointer-events: none;
}

.band a {
  pointer-events: auto;
}

.strip {
  position: absolute;
  left: 0;
  top: calc(68 * var(--u));
  display: flex;
  align-items: flex-start;
  gap: calc(110 * var(--u));
  will-change: transform;
}

.lead {
  display: flex;
  align-items: flex-start;
  gap: calc(56 * var(--u));
  flex: none;
}

.lead-hl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(64 * var(--u));
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--surface);
  white-space: nowrap;
}

.lead-hl span {
  display: block;
}

.lead-hl .is-steel {
  color: var(--steel);
}

.lead-copy {
  width: calc(260 * var(--u));
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: max(11px, calc(12.5 * var(--u)));
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.lead-copy p + p {
  margin-top: 1em;
}

.scard {
  position: relative;
  width: calc(272 * var(--u));
  padding: 0 calc(28 * var(--u));
  flex: none;
}

.scard + .scard {
  border-left: 1px solid var(--hairline-dark);
}

.scard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--steel);
}

.scard-idx {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: max(10px, calc(11 * var(--u)));
  letter-spacing: 0.1em;
  color: var(--steel);
}

.scard-icon {
  display: block;
  width: calc(36 * var(--u));
  height: calc(36 * var(--u));
  color: var(--steel);
}

.scard-title {
  margin-top: calc(18 * var(--u));
  font-family: var(--font-display);
  font-weight: 400;
  font-size: calc(26 * var(--u));
  line-height: 1.05;
  text-transform: uppercase;
  --s: -40%;
  color: transparent;
  background-image: linear-gradient(
    90deg,
    var(--surface) calc(var(--s) - 34%),
    var(--steel) calc(var(--s) - 6%),
    rgba(255, 255, 255, 0) calc(var(--s) + 26%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scard-title span {
  display: block;
}

.scard-body {
  margin-top: calc(13 * var(--u));
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: max(11.5px, calc(12.4 * var(--u)));
  line-height: 1.52;
  --s: -40%;
  color: transparent;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.84) calc(var(--s) - 34%),
    var(--steel) calc(var(--s) - 6%),
    rgba(255, 255, 255, 0) calc(var(--s) + 26%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scard-link {
  display: inline-flex;
  align-items: center;
  margin-top: calc(16 * var(--u));
  font-family: var(--font-mono);
  font-size: max(10px, calc(10.5 * var(--u)));
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color 0.2s ease, transform 0.2s ease;
}

.scard-link:hover {
  color: var(--surface);
  transform: translateX(3px);
}

.svc-pill {
  position: absolute;
  left: 50%;
  bottom: calc(34 * var(--u));
  transform: translate(-50%, calc((1 - var(--ph)) * 24px));
  opacity: var(--ph);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(11 * var(--u)) calc(24 * var(--u));
  min-height: 36px;
  background: rgba(137, 184, 201, 0.82);
  color: var(--surface);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: max(10px, calc(10.5 * var(--u)));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: polygon(
    0 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% 100%,
    8px 100%,
    0 calc(100% - 8px)
  );
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              color 0.25s ease;
}

.svc-pill::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--ink);
  clip-path: polygon(
    0 0,
    calc(100% - 7.5px) 0,
    100% 7.5px,
    100% 100%,
    7.5px 100%,
    0 calc(100% - 7.5px)
  );
  transition: background-color 0.25s ease;
  z-index: 0;
}

.svc-pill > span {
  position: relative;
  z-index: 1;
}

.svc-pill:hover {
  color: var(--ink);
}

.svc-pill:hover::before {
  background: var(--steel);
}

/* ============================================================
   SECTION 4: SELECTED WORK SHOWCASE (#work)
   ============================================================ */
.work-section {
  position: relative;
  z-index: 5;
  background: var(--ink);
  color: var(--surface);
  padding: clamp(72px, 8vw, 132px) clamp(22px, 4.44vw, 64px) clamp(88px, 9vw, 144px);
  border-top: 1px solid var(--hairline-dark);
}

.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--hairline-dark);
}

.work-overline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.work-hl {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(50px, 7.2vw, 108px);
  line-height: 0.96;
  text-transform: uppercase;
  color: var(--surface);
}

.work-hl .ln {
  display: block;
}

.work-meta {
  max-width: 390px;
}

.work-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.work-sub {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.work-showcase {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(22px, 2.5vw, 36px);
  margin-top: clamp(40px, 4.5vw, 64px);
}

.proj-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.proj-card--lead {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding-bottom: clamp(32px, 3.5vw, 48px);
  border-bottom: 1px solid var(--hairline-dark);
}

.proj-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 1px;
  background: rgba(137, 184, 201, 0.28);
  clip-path: polygon(
    0 0,
    calc(100% - var(--chamfer-md)) 0,
    100% var(--chamfer-md),
    100% 100%,
    var(--chamfer-md) 100%,
    0 calc(100% - var(--chamfer-md))
  );
  transition: background-color 0.3s ease;
}

.proj-card:hover .proj-media {
  background: var(--steel);
}

.proj-media-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--petrol);
  clip-path: polygon(
    0 0,
    calc(100% - 17px) 0,
    100% 17px,
    100% 100%,
    17px 100%,
    0 calc(100% - 17px)
  );
}

.proj-media-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.proj-body {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

.proj-card--lead .proj-body {
  padding-top: 0;
}

.proj-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.proj-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.proj-ind {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.proj-title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--surface);
}

.proj-card--lead .proj-title {
  font-size: clamp(32px, 3.6vw, 54px);
}

.proj-desc {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.74);
  max-width: 56ch;
}

.proj-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proj-tags li {
  padding: 5px 11px;
  background: rgba(1, 52, 76, 0.65);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: var(--steel);
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.proj-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.proj-link.is-primary {
  color: var(--surface);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--steel);
}

.proj-link:hover {
  color: var(--steel);
}

/* ============================================================
   SECTION 5: DIRECT CONTACT & FOOTER (#contact)
   ============================================================ */
.contact {
  position: relative;
  z-index: 5;
  background: linear-gradient(180deg, var(--ink) 0%, var(--petrol) 100%);
  color: var(--surface);
  padding: clamp(72px, 8vw, 128px) clamp(22px, 4.44vw, 64px) clamp(36px, 4vw, 56px);
  border-top: 1px solid rgba(137, 184, 201, 0.24);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: end;
}

.contact-overline {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.contact-hl {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(50px, 7vw, 104px);
  line-height: 0.96;
  text-transform: uppercase;
  color: var(--surface);
}

.contact-hl .ln {
  display: block;
}

.contact-lede {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact-facts {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(137, 184, 201, 0.22);
}

.contact-facts dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.contact-facts dd {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--surface);
  overflow-wrap: anywhere;
}

.contact-facts dd a:hover {
  color: var(--steel);
}

.contact-bar {
  margin-top: clamp(56px, 6vw, 88px);
  padding-top: 24px;
  border-top: 1px solid rgba(137, 184, 201, 0.20);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--steel);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.footer-brand .brand-mark {
  width: 26px;
  height: 25px;
  color: var(--surface);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--steel);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
}

/* ============================================================
   RESPONSIVE: PORTRAIT PHONES & TABLETS (html.m-port)
   ============================================================ */
html.m-port .hwrap {
  height: auto;
}

html.m-port .hero {
  position: relative;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

html.m-port .hf {
  position: relative;
  width: 100%;
  height: auto;
  padding: 20px 22px 0;
  pointer-events: auto;
}

html.m-port .top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

html.m-port .brand {
  position: relative;
  left: auto;
  top: auto;
  gap: 8px;
  padding-top: 4px;
}

html.m-port .brand-mark {
  width: 28px;
  height: 27px;
}

html.m-port .brand-word {
  font-size: 12.5px;
  letter-spacing: 0.14em;
}

html.m-port .vnav {
  position: relative;
  left: auto;
  top: auto;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 4px 16px;
  justify-items: end;
}

html.m-port .vnav a {
  padding: 6px 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
}

html.m-port .vnav a::before {
  display: none;
}

html.m-port .copy {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  margin-top: clamp(22px, 4.5vh, 64px);
}

html.m-port .overline {
  font-size: 13px;
}

html.m-port .hl {
  margin-top: 10px;
  font-size: clamp(46px, 16vw, 118px);
  line-height: 0.95;
}

html.m-port .lede {
  margin-top: 14px;
  max-width: 440px;
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.48;
}

html.m-port .btns {
  margin-top: 18px;
  gap: 10px;
}

html.m-port .btn {
  height: 44px;
  padding: 0 20px;
  font-size: 11px;
}

html.m-port .gwrap {
  position: relative;
  inset: auto;
  width: 100%;
  height: min(88vw, 370px);
  margin-top: 6px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}

/* Portrait & Short Landscape shared About stack */
html.m-port .stats,
html.m-land .stats {
  display: flex;
  flex-direction: column;
  padding: 56px 22px 72px;
}

html.m-port .pin,
html.m-port .col,
html.m-land .pin,
html.m-land .col {
  display: contents;
}

html.m-port .ph,
html.m-land .ph {
  position: relative;
  left: auto;
  top: auto;
  order: 1;
  width: 100%;
  max-width: 620px;
  height: auto;
  aspect-ratio: 440 / 236;
}

html.m-port .intro,
html.m-land .intro {
  position: relative;
  left: auto;
  top: auto;
  order: 2;
  width: 100%;
  max-width: 540px;
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.5;
}

html.m-port .intro p + p,
html.m-land .intro p + p {
  margin-top: 16px;
}

html.m-port .intro-links,
html.m-land .intro-links {
  margin-top: 18px;
  gap: 24px;
}

html.m-port .big,
html.m-land .big {
  position: relative;
  left: auto;
  top: auto;
  order: 3;
  margin-top: 44px;
  font-size: clamp(42px, 14vw, 102px);
  line-height: 0.98;
}

html.m-port .nums,
html.m-land .nums {
  position: relative;
  left: auto;
  top: auto;
  order: 4;
  width: 100%;
  max-width: 540px;
  margin-top: 32px;
}

html.m-port .stat-item,
html.m-land .stat-item {
  height: auto;
  padding: 20px 0;
}

html.m-port .stat-item:not(:first-child)::before,
html.m-land .stat-item:not(:first-child)::before {
  top: 0;
}

html.m-port .stat-item .n,
html.m-land .stat-item .n {
  font-size: clamp(50px, 16vw, 88px);
}

html.m-port .stat-item .c,
html.m-land .stat-item .c {
  margin-top: 6px;
  font-size: 14px;
}

/* ============================================================
   RESPONSIVE: SERVICES PHONE FRAMING (html.m-hp)
   ============================================================ */
html.m-hp .scene {
  height: 100vh;
  height: 100dvh;
}

html.m-hp .giant {
  font-size: clamp(82px, 24vw, 240px);
  top: calc(var(--edge-px) - clamp(82px, 24vw, 240px) * 0.78);
}

html.m-hp .vel {
  left: 20px;
  top: 18px;
  font-size: 11px;
}

html.m-hp .strip {
  top: 24px;
  gap: 44px;
}

html.m-hp .lead {
  flex-direction: column;
  gap: 14px;
}

html.m-hp .lead-hl {
  font-size: clamp(30px, 8.6vw, 44px);
}

html.m-hp .lead-copy {
  width: min(76vw, 290px);
  font-size: 12.5px;
  line-height: 1.48;
}

html.m-hp .scard {
  width: clamp(232px, 72vw, 286px);
  padding: 0 22px;
}

html.m-hp .scard-icon {
  width: 30px;
  height: 30px;
}

html.m-hp .scard-title {
  margin-top: 12px;
  font-size: 23px;
}

html.m-hp .scard-body {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.48;
}

html.m-hp .scard-link {
  margin-top: 12px;
  font-size: 10.5px;
}

html.m-hp .svc-pill {
  bottom: 18px;
  padding: 10px 20px;
  font-size: 10.5px;
}

/* ============================================================
   RESPONSIVE: SHORT LANDSCAPE PHONES (html.m-land, vh < 500)
   ============================================================ */
html.m-land .hwrap {
  height: auto;
}

html.m-land .hero {
  position: relative;
  height: auto;
}

html.m-land .copy {
  top: calc(256 * var(--uc));
}

html.m-land .strip {
  top: 10px;
  gap: 38px;
}

html.m-land .lead {
  flex-direction: row;
  gap: 24px;
}

html.m-land .lead-hl {
  font-size: 28px;
}

html.m-land .lead-copy {
  width: 240px;
  font-size: 11px;
  line-height: 1.38;
}

html.m-land .lead-copy p + p {
  display: none;
}

html.m-land .scard {
  width: 254px;
  padding: 0 18px;
}

html.m-land .scard-icon {
  width: 22px;
  height: 22px;
}

html.m-land .scard-title {
  margin-top: 6px;
  font-size: 18px;
}

html.m-land .scard-body {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
}

html.m-land .scard-link {
  margin-top: 6px;
}

html.m-land .svc-pill {
  bottom: 8px;
  padding: 6px 16px;
  min-height: 30px;
  font-size: 10px;
}

/* ============================================================
   RESPONSIVE: SELECTED WORK & CONTACT (< 900px)
   ============================================================ */
@media (max-width: 900px) {
  .work-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .work-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .proj-card,
  .proj-card--lead {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .proj-card--lead {
    padding-bottom: 32px;
  }

  .proj-card--lead .proj-body {
    padding-top: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .contact-btns .btn {
    width: 100%;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js-anim .ent {
    opacity: 1 !important;
  }

  .scard-title,
  .scard-body {
    background-image: none;
    color: var(--surface);
    -webkit-text-fill-color: var(--surface);
  }

  .scard-body {
    color: rgba(255, 255, 255, 0.84);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.84);
  }

  .vel,
  .svc-pill {
    transition: none;
  }
}
