/* ==========================================================================
   COPO STUDIO — design system
   ========================================================================== */

/* --- fonts --- */
@font-face { font-family: "Quasimoda"; src: url("../fonts/Quasimoda-Light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Quasimoda"; src: url("../fonts/Quasimoda-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Quasimoda"; src: url("../fonts/Quasimoda-Medium.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Quasimoda"; src: url("../fonts/Quasimoda-SemiBold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Quasimoda"; src: url("../fonts/Quasimoda-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

/* --- tokens --- */
:root {
  /* light surface (warm paper) */
  --paper:        #F1EEE7;
  --paper-2:      #E9E5DB;
  --paper-3:      #DEDACE;
  --ink:          #0B0B0B;
  --ink-2:        #1C1C1C;
  --ink-3:        rgba(11,11,11,0.62);
  --ink-4:        rgba(11,11,11,0.42);
  --rule-light:   rgba(11,11,11,0.12);

  /* dark surface */
  --void:         #0A0A0A;
  --void-2:       #131313;
  --void-3:       #1B1B1B;
  --snow:         #F1EEE7;
  --snow-2:       rgba(241,238,231,0.66);
  --snow-3:       rgba(241,238,231,0.42);
  --rule-dark:    rgba(241,238,231,0.14);

  /* accent — used sparingly */
  --pop:          #F74F4F;
  --pop-soft:     rgba(247,79,79,0.12);

  /* brand gradient — used for hover states + accent moments */
  --copo-gradient: linear-gradient(135deg, #1A0533 0%, #6B1480 12%, #D6177B 32%, #F03B3B 52%, #F77428 68%, #F9B47A 84%, #C6A8E8 100%);
  --copo-gradient-soft: linear-gradient(135deg, rgba(214,23,123,0.18), rgba(240,59,59,0.18), rgba(247,116,40,0.18));

  /* type */
  --display:  "Quasimoda", "Inter", system-ui, sans-serif;
  --body:     "Inter", system-ui, sans-serif;
  --mono:     "JetBrains Mono", ui-monospace, monospace;

  /* spacing */
  --shell-pad: clamp(20px, 4vw, 56px);
  --gutter:    clamp(20px, 2vw, 32px);

  /* motion */
  --ease:    cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out:cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* Kill italics globally — em used for semantic emphasis only, renders regular */
em, i, em *, i * { font-style: normal !important; }

/* --- type scale --- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--pop);
  border-radius: 50%;
  display: inline-block;
}
.eyebrow.on-dark { color: var(--snow-2); }

.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0;
}
.h-mega   { font-size: clamp(56px, 11vw, 180px); }
.h-huge   { font-size: clamp(48px, 8vw, 132px); }
.h-large  { font-size: clamp(40px, 6vw, 92px); }
.h-medium { font-size: clamp(28px, 3.6vw, 56px); letter-spacing: -0.02em; line-height: 1; }
.h-small  { font-size: clamp(22px, 2vw, 32px); letter-spacing: -0.015em; line-height: 1.08; }

p.lead {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0;
}
p.lead.on-dark { color: var(--snow); }

.body-l { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.body-m { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.body-s { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.muted-light { color: var(--ink-3); }
.muted-dark  { color: var(--snow-2); }

/* --- shell --- */
.shell { padding-inline: var(--shell-pad); }
.shell-wide { padding-inline: clamp(20px, 2.5vw, 40px); }

/* --- top fixed corner pieces --- */
.corner {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 calc(var(--shell-pad) + 4px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #F1EEE7;
}
.corner > * { pointer-events: auto; }
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  display: inline-block;
  width: 56px;
  height: 25px;
  background: url("../assets/copo-logo-white.png") no-repeat left center / contain;
}
.brand__c {
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: 0.6;
  font-weight: 500;
  font-family: var(--mono);
}

.corner .clock {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ========================================================
   VIEWPORT FRAME — thin border with corner registration marks
   (the "grafit edge" — but made our own)
   ======================================================== */
.viewport-frame {
  position: fixed;
  inset: 16px;
  pointer-events: none;
  z-index: 40;
  mix-blend-mode: difference;
}
.viewport-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(241, 238, 231, 0.18);
  border-radius: 1px;
}
.vf-mark {
  position: absolute;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F1EEE7;
}
/* corner bracket SVG inside marks */
.vf-mark svg { width: 100%; height: 100%; display: block; }
.vf-mark.tl { top: -1px; left: -1px; }
.vf-mark.tr { top: -1px; right: -1px; transform: scaleX(-1); }
.vf-mark.bl { bottom: -1px; left: -1px; transform: scaleY(-1); }
.vf-mark.br { bottom: -1px; right: -1px; transform: scale(-1, -1); }

/* edge ticks — small tickmarks on each side mid-edge, like a ruler */
.vf-tick {
  position: absolute;
  background: rgba(241, 238, 231, 0.22);
}
.vf-tick.top, .vf-tick.bottom { width: 1px; height: 8px; left: 50%; transform: translateX(-50%); }
.vf-tick.top { top: -8px; }
.vf-tick.bottom { bottom: -8px; }
.vf-tick.left, .vf-tick.right { height: 1px; width: 8px; top: 50%; transform: translateY(-50%); }
.vf-tick.left { left: -8px; }
.vf-tick.right { right: -8px; }

/* edge labels — tiny mono text on each side, like film leader callouts */
.vf-label {
  position: fixed;
  z-index: 41;
  mix-blend-mode: difference;
  color: #F1EEE7;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.55;
}
.vf-label.left { left: 22px; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left center; }
.vf-label.right { right: 22px; top: 50%; transform: rotate(90deg) translateX(-50%); transform-origin: right center; }
.vf-label.bottom-mid { bottom: 28px; left: 50%; transform: translateX(-50%); }

@media (max-width: 700px) {
  .viewport-frame { inset: 10px; }
  .vf-label { display: none; }
  .vf-tick { display: none; }
}

/* --- CTA buttons (Variant 2 — coral outline, gradient + eject circle on hover) --- */
.btn-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
  vertical-align: middle;
  line-height: 0;
}
.btn-wrap .btn-eject {
  width: 0;
  height: 36px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch' seed='9'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.95 -0.05'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -0.2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") repeat,
    var(--copo-gradient);
  background-size: 90px 90px, 200px 200px, 100% 100%;
  background-blend-mode: multiply, overlay, normal;
  filter: saturate(1.2) contrast(1.08);
  color: var(--snow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  overflow: hidden;
  transition: width .4s var(--ease-out), margin-left .4s var(--ease-out), opacity .25s var(--ease);
  flex-shrink: 0;
  margin-left: 0;
  pointer-events: none;
  position: relative;
}
.btn-wrap .btn-eject::after { display: none; }
.btn-wrap .btn-eject svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.btn-wrap:hover .btn-eject {
  width: 36px;
  margin-left: 10px;
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 24px;
  border-radius: 0;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--pop);
  background: transparent;
  border: 1.5px solid var(--pop);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
  line-height: 1;
  min-height: 40px;
}

/* gradient fill + dense layered grain (matches the orb's grain language) */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch' seed='9'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.95 -0.05'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -0.2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") repeat,
    var(--copo-gradient);
  background-size: 110px 110px, 240px 240px, 100% 100%;
  background-blend-mode: multiply, overlay, normal;
  opacity: 0;
  z-index: -1;
  transition: opacity .4s var(--ease);
  filter: saturate(1.2) contrast(1.08);
}

.btn::after { display: none; }

.btn .arrow {
  width: auto;
  height: auto;
  background: transparent !important;
  color: inherit !important;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.btn .arrow svg {
  width: 14px;
  height: 14px;
  color: inherit;
}

/* corner brackets — viewfinder language inside the button */
.btn .bc {
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  pointer-events: none;
  z-index: 3;
  transition: transform .35s var(--ease);
  background: transparent;
}
.btn .bc-tl { top: 3px;    left: 3px;    border-right-width: 0; border-bottom-width: 0; }
.btn .bc-tr { top: 3px;    right: 3px;   border-left-width: 0;  border-bottom-width: 0; }
.btn .bc-bl { bottom: 3px; left: 3px;    border-right-width: 0; border-top-width: 0; }
.btn .bc-br { bottom: 3px; right: 3px;   border-left-width: 0;  border-top-width: 0; }

/* hover state */
.btn-wrap:hover .btn,
.btn:hover {
  color: var(--snow);
  border-color: transparent;
}
.btn-wrap:hover .btn::before,
.btn:hover::before { opacity: 1; }
.btn-wrap:hover .btn .arrow,
.btn:hover .arrow {
  opacity: 0;
  transform: translateX(10px);
}
.btn-wrap:hover .btn .bc-tl, .btn:hover .bc-tl { transform: translate(-3px, -3px); }
.btn-wrap:hover .btn .bc-tr, .btn:hover .bc-tr { transform: translate( 3px, -3px); }
.btn-wrap:hover .btn .bc-bl, .btn:hover .bc-bl { transform: translate(-3px,  3px); }
.btn-wrap:hover .btn .bc-br, .btn:hover .bc-br { transform: translate( 3px,  3px); }

/* All variant classes inherit the same Variant 2 look — handled by .btn alone now */

/* --- common sections --- */
section { position: relative; }

.dark-skin { background: var(--void); color: var(--snow); }
.light-skin { background: var(--paper); color: var(--ink); }

.rule { border: 0; height: 1px; background: var(--rule-light); margin: 0; }
.rule.on-dark { background: var(--rule-dark); }

section, footer { scroll-margin-top: 80px; }

/* utility */
.row { display: flex; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 48px; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.center { align-items: center; }

/* --- image slot --- */
.media-placeholder {
  position: relative;
  background: var(--paper-2);
  overflow: hidden;
  border-radius: 4px;
}
.dark-skin .media-placeholder { background: var(--void-2); }
.media-placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  pointer-events: none;
}
.dark-skin .media-placeholder::after { color: var(--snow-3); }
.media-placeholder.has-img::after { display: none; }
.media-placeholder img { width: 100%; height: 100%; object-fit: cover; }

/* logo tile — black plate with the mark filled by the textured brand gradient */
.logo-tile {
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-tile__mark {
  width: 46%;
  aspect-ratio: 1 / 1;
  height: auto;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch' seed='9'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.95 -0.05'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -0.2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") repeat,
    var(--copo-gradient);
  background-size: 110px 110px, 240px 240px, 100% 100%;
  background-blend-mode: multiply, overlay, normal;
  filter: saturate(1.2) contrast(1.08);
  -webkit-mask: url("../assets/copo-logo-3d-v2.png") no-repeat center / contain;
          mask: url("../assets/copo-logo-3d-v2.png") no-repeat center / contain;
}

/* --- marquee --- */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
}
.marquee__track {
  display: flex;
  gap: 80px;
  padding-right: 80px;
  flex-shrink: 0;
  animation: scroll-x 38s linear infinite;
  align-items: center;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === sections === */

/* hero */
/* hero CTA: 80% black backing so it stays readable over the bright artwork */
.hero .btn-light { background: rgba(0, 0, 0, 0.8); }
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 64px;
  padding-bottom: 32px;
  position: relative;
  isolation: isolate;
}
.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 4px;
}
.hero__sub {
  padding-top: clamp(12px, 2vh, 24px);
}
.hero__headline {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(40px, 12vh, 180px);
  padding-bottom: clamp(28px, 4vh, 48px);
}
.hero__h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 12ch;
}

/* vertical edge labels — rotated mono captions on left & right */
.hero__edge {
  position: absolute;
  top: 50%;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--snow-3);
  opacity: 0.55;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}
.hero__edge--left {
  left: clamp(14px, 1.6vw, 24px);
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
}
.hero__edge--right {
  right: clamp(14px, 1.6vw, 24px);
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
}
@media (max-width: 900px) {
  .hero__edge { display: none; }
}
.hero__h .accent { color: var(--pop); }
.hero__h em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
}

.hero__meta {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--rule-dark);
  padding-top: 28px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .hero__meta { grid-template-columns: 1fr; gap: 24px; }
}
.hero__meta .col-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--snow-3);
  margin-bottom: 12px;
}
.hero__meta p { margin: 0; }

/* investor logo lockup under the Trusted by column */
.trusted-logos {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 28px);
  margin-top: 16px;
  flex-wrap: wrap;
}
.trusted-logos__mark {
  height: 22px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(1) brightness(1.15);
  transition: opacity .25s var(--ease);
}
.trusted-logos__mark--ventures { height: 28px; }
.trusted-logos__mark:hover { opacity: 1; }

/* trust strip */
.trust {
  padding-block: 28px;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
  display: flex;
  align-items: center;
  gap: 48px;
}
.trust__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--snow-3);
  white-space: nowrap;
  flex-shrink: 0;
}
.trust__items {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  overflow: hidden;
  flex: 1;
}
.client-mark {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.015em;
  color: var(--snow);
  opacity: 0.7;
  white-space: nowrap;
}

/* stats band */
.stats-band {
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch' seed='9'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.95 -0.05'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -0.2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") repeat,
    radial-gradient(140% 165% at 92% -5%,
      rgba(214,23,123,0.9) 0%,
      rgba(240,59,59,0.6) 28%,
      rgba(247,116,40,0.32) 50%,
      transparent 74%);
  background-size: 110px 110px, 240px 240px, 100% 100%;
  background-blend-mode: multiply, overlay, normal;
  filter: saturate(1.15) contrast(1.05);
}
.stats-band > * { position: relative; z-index: 1; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: clamp(48px, 7vw, 96px);
  gap: 0;
}
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr; }
}
.stat {
  padding: 0 clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--rule-dark);
}
.stat:last-child { border-right: 0; }
@media (max-width: 800px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--rule-dark); padding-block: 32px; }
  .stat:last-child { border-bottom: 0; }
}
.stat__num {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(64px, 9vw, 156px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}
.stat__num .unit {
  font-size: 0.4em;
  vertical-align: super;
  color: var(--snow-2);
  margin-left: 4px;
  font-weight: 500;
}
.stat__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--snow-3);
  margin-bottom: 12px;
}

/* deliverables */
.deliverables {
  padding-block: clamp(80px, 10vw, 160px);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(24px, 6vw, 96px);
  align-items: flex-end;
  padding-bottom: clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--rule-light);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.dark-skin .section-head { border-color: var(--rule-dark); }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; align-items: flex-start; }
}
.section-head__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section-head__num {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--ink-4);
}
.dark-skin .section-head__num { color: var(--snow-3); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule-light);
  border-top: 1px solid var(--rule-light);
  border-right: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}
@media (max-width: 900px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

.service {
  padding: clamp(28px, 3vw, 48px) clamp(20px, 2.5vw, 36px);
  background: var(--paper);
  position: relative;
  transition: background .35s var(--ease);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service:hover { background: var(--paper-2); }

/* === featured card: textured gradient (same recipe as button hover) === */
.service--gradient {
  position: relative;
  isolation: isolate;
  color: var(--snow);
  background: transparent;
  border-color: transparent;
  overflow: hidden;
}
.service--gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch' seed='9'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.95 -0.05'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -0.2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") repeat,
    var(--copo-gradient);
  background-size: 110px 110px, 240px 240px, 100% 100%;
  background-blend-mode: multiply, overlay, normal;
  filter: saturate(1.2) contrast(1.08);
  z-index: -1;
  pointer-events: none;
}
.service--gradient:hover { background: transparent; }
.service--gradient .service__num { color: rgba(255,255,255,0.7); }
.service--gradient .service__title { color: var(--snow); }
.service--gradient .service__desc { color: rgba(255,255,255,0.88); }
.service__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.1em;
  margin-bottom: 36px;
}
.service__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}
.service__head .service__num { margin-bottom: 0; }
.service__icon {
  width: 36px;
  height: 36px;
  color: var(--ink);
  flex-shrink: 0;
}
.service--gradient .service__icon { color: var(--snow); }

/* === Need more block — sits beneath the service grid === */
.need-more {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding: 56px 0 0;
  margin-top: 8px;
  border-top: 1px solid var(--rule-light);
}
.need-more__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
}
.need-more__copy {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 28ch;
  color: var(--ink);
}
@media (max-width: 700px) {
  .need-more { grid-template-columns: 1fr; align-items: start; }
}
.service__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.service__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0;
}

/* work showcase */
.work {
  padding-block: clamp(80px, 10vw, 160px);
}
.work__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 6vw, 96px);
  margin-bottom: clamp(60px, 8vw, 120px);
}
@media (max-width: 900px) { .work__intro { grid-template-columns: 1fr; } }
.work__intro h2 { max-width: 12ch; }

.project {
  margin-bottom: clamp(80px, 8vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
.project__media {
  position: relative;
  aspect-ratio: 16/11;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--void-2);
  max-height: 640px;
}
.project__media img { width: 100%; height: 100%; object-fit: cover; display:block; }
.project__meta {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 32px);
  align-items: flex-start;
  padding: 0;
  border-top: 0;
}
.project__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 20px;
  margin-top: auto;
  border-top: 1px solid var(--rule-dark);
}
.project__desc {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  max-width: 44ch;
}
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; gap: 28px; }
  .project__media { aspect-ratio: 16/10; }
}
.project__index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--snow-3);
}
.project__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
}
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--rule-dark);
  border-radius: 999px;
  color: var(--snow-2);
}
.light-skin .tag { border-color: var(--rule-light); color: var(--ink-3); }
.project__status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pop);
  display: flex;
  align-items: center;
  gap: 8px;
}
.project__cta {
  display: flex;
  justify-content: flex-end;
}

/* testimonials */
.testimonials {
  padding-block: clamp(80px, 10vw, 160px);
}
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
@media (max-width: 1000px) { .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .t-grid { grid-template-columns: 1fr; } }
.t-card {
  padding: clamp(28px, 3vw, 44px);
  border: 1px solid var(--rule-light);
  background: var(--paper);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.t-card:hover { background: var(--paper-2); border-color: var(--ink-4); }
.t-card--mvst { gap: 28px; }
.t-card--mvst .t-card__org { margin-bottom: 12px; }
.t-card__org {
  display: flex;
  align-items: center;
  gap: 14px;
}
.t-card__org-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.t-card__org-logo img { width: 100%; height: 100%; object-fit: cover; }
.t-card__org-name { font-weight: 500; font-size: 15px; margin: 0; line-height: 1.2; color: var(--ink); }
.t-card__org-role { font-size: 13px; color: var(--ink-3); margin: 2px 0 0; }

.t-card__quote {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin: 0;
}
.t-card__pull {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 1.4vw, 22px);
  letter-spacing: -0.01em;
  color: var(--pop);
  margin: 0 0 18px;
}
.t-card__person {
  display: flex;
  align-items: center;
  gap: 14px;
}
.t-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper-3);
  overflow: hidden;
  flex-shrink: 0;
}
.t-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-card__name { font-weight: 500; font-size: 15px; margin: 0; line-height: 1.2; }
.t-card__role { font-size: 13px; color: var(--ink-3); margin: 2px 0 0; }

/* --- LinkedIn-style profile card (third column) --- */
.t-card--profile {
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.t-profile {
  padding: clamp(20px, 1.6vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.t-profile__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.t-profile__plus {
  width: 28px;
  height: 28px;
  color: var(--ink-3);
}
.t-profile__icon {
  width: 28px;
  height: 28px;
}
.t-profile__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.1;
}
.t-profile__role {
  font-size: 14px;
  color: var(--ink-3);
  margin: 4px 0 0;
}
.t-profile__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--pop);
  font-size: 15px;
  margin-top: 6px;
  text-decoration: none;
}
.t-profile__link:hover { text-decoration: underline; }
.t-card__portrait {
  flex: 1;
  min-height: 240px;
  overflow: hidden;
  background: var(--void);
}
.t-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* about */
.about {
  padding-block: clamp(48px, 5vw, 84px);
}
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: stretch;
  height: auto;
}
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }
.about__copy {
  display: flex;
  flex-direction: column;
}
.about__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.about__copy h2 { max-width: 18ch; margin-bottom: 32px; }
.about__copy p { margin: 0 0 18px; max-width: 52ch; }
.about__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  min-height: 0;
  align-self: stretch;
}
.about__images .media-placeholder { min-height: 0; }
.about__images .media-placeholder:first-child { grid-column: 1 / 3; }
/* images positioned absolutely so they don't inflate the grid — it's driven by the copy column, images fill to match */
.about__images .media-placeholder { position: relative; overflow: hidden; }
.about__images .media-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__images .media-placeholder:last-child img { object-fit: contain; }
@media (max-width: 900px) {
  .about__images {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    align-items: start !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 10px;
  }
  /* top image spans full width, hugs its natural ratio */
  .about__images .media-placeholder:first-child { grid-column: 1 / 3 !important; aspect-ratio: auto !important; height: auto !important; min-height: 0 !important; overflow: hidden !important; }
  .about__images .media-placeholder:first-child img { position: static !important; width: 100% !important; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; display: block; }
  /* bottom row: two equal SQUARE tiles so they align */
  .about__images .media-placeholder:nth-child(2),
  .about__images .media-placeholder:last-child {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .about__images .media-placeholder:nth-child(2) img {
    position: absolute !important; inset: 0 !important;
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; display: block;
  }
  .about__images .media-placeholder:last-child {
    background: #000;
    display: flex; align-items: center; justify-content: center;
  }
  .about__images .media-placeholder:last-child img { position: static !important; width: 100% !important; height: 100% !important; object-fit: contain !important; padding: 16%; }
}

/* contact */
.contact {
  padding-block: clamp(80px, 10vw, 160px);
  position: relative;
  overflow: hidden;
}
.contact__h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 80px);
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
  max-width: 14ch;
}
.contact__h em { font-style: italic; font-weight: 400; }

/* mouse-following textured gradient — subtle, only near the cursor */
.contact__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s var(--ease);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch' seed='9'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.95 -0.05'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -0.2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") repeat,
    radial-gradient(circle 460px at var(--mx, 50%) var(--my, 50%),
      rgba(214,23,123,0.42) 0%,
      rgba(240,59,59,0.30) 30%,
      rgba(247,116,40,0.16) 52%,
      transparent 72%);
  background-size: 110px 110px, 240px 240px, 100% 100%;
  background-blend-mode: multiply, overlay, normal;
  -webkit-mask: radial-gradient(circle 460px at var(--mx, 50%) var(--my, 50%), #000 0%, #000 42%, transparent 72%);
          mask: radial-gradient(circle 460px at var(--mx, 50%) var(--my, 50%), #000 0%, #000 42%, transparent 72%);
  filter: saturate(1.1) contrast(1.05);
}
.contact:hover .contact__glow { opacity: 1; }
.contact > *:not(.contact__glow) { position: relative; z-index: 1; }
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: stretch;
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__copy {
  display: flex;
  flex-direction: column;
}
.contact__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.contact__copy p { max-width: 46ch; }
.contact form { display: flex; flex-direction: column; gap: 20px; justify-content: space-between; height: 100%; }
@media (max-width: 900px) { .contact form { height: auto; justify-content: flex-start; } }
.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--rule-dark);
  padding-bottom: 12px;
  transition: border-color .25s var(--ease);
}
.field:focus-within { border-color: var(--snow); }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--snow-3);
}
.field input,
.field textarea {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--snow);
  font-family: var(--body);
  font-size: 17px;
  resize: vertical;
  padding: 4px 0;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--snow-3); }
.field textarea { min-height: 80px; }

/* contact form — submitting / error / success states (functionality only) */
.contact form button[type="submit"][disabled] { opacity: 0.55; cursor: progress; }
.contact__error {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.55;
  color: var(--pop);
}
.contact__result { display: none; }
.contact form.is-sent .field,
.contact form.is-sent button[type="submit"],
.contact form.is-sent .btn-wrap,
.contact form.is-sent .contact__error { display: none; }
.contact form.is-sent .contact__result {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  justify-content: center;
}

/* boxed success — reuses the page-frame language (thin rule + corner
   registration brackets + tiny mono notch labels), tinted to the coral theme */
.contact__result-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2.2vw, 28px);
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid rgba(247, 79, 79, 0.24);
  border-radius: 1px;
}
.crf-mark {
  position: absolute;
  width: 16px;
  height: 16px;
  color: var(--pop);
  pointer-events: none;
}
.crf-mark svg { width: 100%; height: 100%; display: block; }
.crf-mark.tl { top: -1px; left: -1px; }
.crf-mark.tr { top: -1px; right: -1px; transform: scaleX(-1); }
.crf-mark.bl { bottom: -1px; left: -1px; transform: scaleY(-1); }
.crf-mark.br { bottom: -1px; right: -1px; transform: scale(-1, -1); }
.crf-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pop);
  opacity: 0.78;
  background: var(--void);
  padding: 0 8px;
  white-space: nowrap;
  pointer-events: none;
}
.crf-label--top { top: 0; left: clamp(22px, 4vw, 40px); transform: translateY(-50%); }
.crf-label--bottom { bottom: 0; right: clamp(22px, 4vw, 40px); transform: translateY(50%); }

/* refined coral check — drawn in, no enclosing circle */
.contact__result-mark {
  display: block;
  color: var(--pop);
}
.contact__result-mark svg { width: 34px; height: 34px; display: block; }
.contact__result-mark svg path { stroke-dasharray: 44; stroke-dashoffset: 44; }

.contact__result-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 0;
  color: var(--pop);
  outline: none;
}
/* branded textured gradient on the heading — same recipe as the logo /
   button hover (--copo-gradient + two-pass noise). Falls back to solid coral. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .contact__result-h {
    background-image:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch' seed='9'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.95 -0.05'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -0.2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
      linear-gradient(100deg, #B355CE 0%, #D6177B 28%, #F03B3B 52%, #F77428 78%, #F9B47A 100%);
    background-repeat: repeat, repeat, no-repeat;
    background-size: 110px 110px, 240px 240px, 100% 100%;
    background-blend-mode: multiply, overlay, normal;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: saturate(1.2) contrast(1.08);
  }
}

.contact__result-p {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: rgba(241, 238, 231, 0.6);
  max-width: 34ch;
}

.contact__reset {
  margin-top: clamp(4px, 1vw, 12px);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pop);
  transition: color .3s var(--ease);
}
.contact__reset-label {
  position: relative;
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .35s var(--ease);
}
.contact__reset:hover { color: #ff857b; }
.contact__reset:hover .contact__reset-label { background-size: 100% 1px; }
.contact__reset svg {
  width: 11px;
  height: 11px;
  transition: transform .35s var(--ease);
}
.contact__reset:hover svg { transform: translate(2px, -2px); }

/* entrance — restrained, staggered (no bounce, no flourish) */
.contact form.is-sent .contact__result-box { animation: contact-fade .6s var(--ease-out) both; }
.contact form.is-sent .contact__result-mark { animation: contact-fade .55s var(--ease-out) .05s both; }
.contact form.is-sent .contact__result-mark svg path { animation: contact-check .7s var(--ease-out) .14s forwards; }
.contact form.is-sent .contact__result-h { animation: contact-rise .7s var(--ease-out) .14s both; }
.contact form.is-sent .contact__result-p { animation: contact-rise .7s var(--ease-out) .24s both; }
.contact form.is-sent .contact__reset { animation: contact-rise .7s var(--ease-out) .34s both; }

@keyframes contact-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes contact-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes contact-check { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .contact form.is-sent .contact__result-box,
  .contact form.is-sent .contact__result-mark,
  .contact form.is-sent .contact__result-mark svg path,
  .contact form.is-sent .contact__result-h,
  .contact form.is-sent .contact__result-p,
  .contact form.is-sent .contact__reset { animation: none; }
  .contact__result-mark svg path { stroke-dashoffset: 0; }
}

@media (max-width: 900px) {
  .contact form.is-sent .contact__result { height: auto; justify-content: flex-start; padding: 4px 0; }
}

/* footer */
.footer {
  padding-block: clamp(40px, 5vw, 64px) clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--rule-dark);
}
.footer__main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(40px, 6vw, 110px);
  flex-wrap: wrap;
  padding-bottom: clamp(40px, 5vw, 72px);
}
.footer__main .footer__brand-h {
  flex: 1 1 420px;
  min-width: 280px;
  margin: 0;
  line-height: 0;
}
.footer__content {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  max-width: 360px;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.footer__nav a {
  font-size: 15px;
  transition: color .2s var(--ease);
}
.footer__nav a:hover { color: var(--pop); }
@media (max-width: 760px) {
  .footer__main { flex-direction: column; align-items: flex-start; }
  .footer__main .footer__brand-h { flex: none; width: 100%; }
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
.footer__brand-h {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(72px, 13vw, 220px);
  letter-spacing: -0.05em;
  line-height: 0.86;
  margin: 0;
}
.footer__col-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--snow-3);
  margin-bottom: 14px;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__list a { font-size: 15px; transition: color .2s var(--ease); display: inline-flex; align-items: center; gap: 10px; }
.footer__list a:hover { color: var(--pop); }
.footer__icon {
  width: 18px;
  height: 18px;
  color: var(--pop);
  flex-shrink: 0;
}
.footer__socials {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-dark);
  border-radius: 50%;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.footer__socials a:hover {
  background: var(--pop-soft);
  border-color: var(--pop);
  transform: translateY(-2px);
}
.footer__socials .footer__icon { width: 20px; height: 20px; }
.footer__logo {
  display: inline-block;
  width: 84px;
  height: 38px;
  background: url("../assets/copo-logo-white.png") no-repeat left center / contain;
  margin-bottom: 24px;
}
.footer__list a::after {
  content: "↗";
  font-size: 12px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.footer__list a:hover::after { opacity: 1; transform: translate(0,0); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 24px;
  border-top: 1px solid var(--rule-dark);
  flex-wrap: wrap;
  gap: 20px;
}
.footer__bottom small {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--snow-3);
}

/* === motion utilities === */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* "marquee headline" thing */
.marquee-band {
  border-block: 1px solid var(--rule-light);
  padding-block: 26px;
  overflow: hidden;
}
.dark-skin .marquee-band { border-color: var(--rule-dark); }
.marquee-band .marquee__track {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.025em;
  gap: 64px;
  padding-right: 64px;
  animation-duration: 42s;
}
.marquee-band .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--pop);
  border-radius: 50%;
  margin: 0 28px;
  vertical-align: middle;
}

/* ==========================================================================
   HERO ORB — large 3D logo behind hero text, shrinks + pins on scroll
   ========================================================================== */
.hero-orb {
  position: fixed;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: clamp(560px, 78vw, 1180px);
  height: clamp(560px, 78vw, 1180px);
  z-index: 1;
  pointer-events: none;
  opacity: 0; /* hidden in hero — the new neon background already shows the big logo */
  cursor: pointer;
  text-decoration: none;
  display: block;
  filter: drop-shadow(0 60px 140px rgba(214,23,123,0.42)) drop-shadow(0 0 100px rgba(247,116,40,0.25));
  transition:
    width 0.9s var(--ease-out),
    height 0.9s var(--ease-out),
    top 0.9s var(--ease-out),
    right 0.9s var(--ease-out),
    bottom 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    opacity 0.45s var(--ease-out),
    filter 0.9s var(--ease-out);
}
.hero-orb.is-pinned { 
  opacity: 1; 
  pointer-events: auto;
}
.hero-orb__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  display: block;
  animation: orb-float 7s ease-in-out infinite;
}
@keyframes orb-float {
  0%, 100% { transform: translateY(0)   rotate(0); }
  50%      { transform: translateY(-18px) rotate(-2deg); }
}

/* === pinned: smaller, bottom-right, MUCH higher z-index so no section can cover === */
.hero-orb.is-pinned {
  top: auto;
  bottom: 28px;
  right: 28px;
  transform: translateY(0);
  width: 92px;
  height: 92px;
  z-index: 95;
  filter: none;
}
.hero-orb.is-pinned .hero-orb__img {
  animation-duration: 3.5s;
}
.hero-orb.is-pinned:hover {
  transform: translateY(-6px) scale(1.06);
}

.hero-orb__tip {
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease) .15s, transform .35s var(--ease);
}
/* frame.js wraps the label in a .btn-wrap (position:relative, in-flow) which becomes
   the positioning parent — so position the WRAPPER to the left of the orb, vertically
   centered, and let the label sit normally inside it. */
.hero-orb .btn-wrap {
  position: absolute;
  right: calc(100% + 16px);
  left: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  white-space: nowrap;
  transition: transform .35s var(--ease);
}
.hero-orb .hero-orb__tip {
  position: static;
  right: auto;
  left: auto;
  top: auto;
  bottom: auto;
  transform: none;
  margin: 0;
  white-space: nowrap;
}
.hero-orb:not(.is-pinned) .btn-wrap,
.hero-orb:not(.is-pinned) .hero-orb__tip { display: none; }
/* Pinned: tip is ALWAYS visible so the floating logo doubles as the CTA */
.hero-orb.is-pinned .hero-orb__tip {
  opacity: 1;
  pointer-events: auto;
}
.hero-orb.is-pinned:hover .btn-wrap {
  transform: translateY(-50%) translateX(-4px);
}
/* Pinned orb CTA always renders like a hovered standard button:
   filled, inner arrow removed from layout, eject circle detached to the right */
.hero-orb.is-pinned .hero-orb__tip {
  color: var(--snow);
  border-color: transparent;
}
.hero-orb.is-pinned .hero-orb__tip::before { opacity: 1; }
.hero-orb.is-pinned .hero-orb__tip .arrow { display: none; }
.hero-orb.is-pinned .hero-orb__tip .bc-tl { transform: translate(-3px, -3px); }
.hero-orb.is-pinned .hero-orb__tip .bc-tr { transform: translate( 3px, -3px); }
.hero-orb.is-pinned .hero-orb__tip .bc-bl { transform: translate(-3px,  3px); }
.hero-orb.is-pinned .hero-orb__tip .bc-br { transform: translate( 3px,  3px); }
.hero-orb.is-pinned .btn-eject { display: none; }

@media (max-width: 900px) {
  .hero-orb { right: -20%; opacity: 0.7; }
  .hero-orb.is-pinned { width: 64px; height: 64px; bottom: 24px; right: 24px; opacity: 1; }
}

/* Hero background: neon-logo plate on right + dark scrim on left for headline legibility.
   Placed directly on .hero (rather than via pseudo-elements) so it renders cleanly in
   screenshots and avoids extra stacking layers. */
.hero {
  background:
    linear-gradient(90deg,
      rgba(10,10,10,0.85) 0%,
      rgba(10,10,10,0.55) 32%,
      rgba(10,10,10,0.15) 55%,
      rgba(10,10,10,0) 70%),
    url("../assets/hero-bg.png") 30% center / 108% no-repeat,
    var(--void) !important;
}

/* Section content above the orb */
.hero__top,
.hero__sub,
.hero__headline,
.hero__meta { position: relative; z-index: 5; }

/* ==========================================================================
   FOOTER WORDMARK as image
   ========================================================================== */
.footer__brand-h {
  margin: 0;
  line-height: 0;
}
.footer__brand-mark {
  display: block;
  width: clamp(260px, 44vw, 600px);
  aspect-ratio: 620 / 280;
  height: auto;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch' seed='9'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.95 -0.05'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") repeat,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -0.2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") repeat,
    var(--copo-gradient);
  background-size: 110px 110px, 240px 240px, 100% 100%;
  background-blend-mode: multiply, overlay, normal;
  filter: saturate(1.2) contrast(1.08);
  -webkit-mask: url("../assets/copo-logo-white.png") no-repeat left center / contain;
          mask: url("../assets/copo-logo-white.png") no-repeat left center / contain;
}

/* ==========================================================================
   MOBILE OPTIMISATION (≤768px) — overrides only, desktop untouched
   ========================================================================== */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { min-width: 0; }

  /* --- Hero: fill the viewport with the mobile bg asset --- */
  .hero {
    min-height: 100vh;
    padding-top: 56px;
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(10,10,10,0) 46%, rgba(10,10,10,0.55) 64%, var(--void) 78%),
      url("../assets/hero-bg-mobile.png") left 50% / 126% auto no-repeat,
      var(--void) !important;
  }
  /* push headline + body down so the enlarged logo gets breathing room above */
  .hero__headline { padding-top: 72px; padding-bottom: 14px; }
  .hero__h { font-size: clamp(34px, 11.5vw, 52px) !important; line-height: 0.94 !important; letter-spacing: -0.02em !important; max-width: 100% !important; }
  .hero__top { gap: 12px; padding-top: 0; }
  .hero__meta { gap: 20px; padding-top: 18px; }
  /* hide labels not needed on mobile (matches the mobile hero mockup) */
  .hero .hero-m-hide { display: none !important; }
  /* match the "trusted by" sentence to the body text size on mobile */
  .hero__meta .muted-dark { font-size: 16px !important; }

  /* --- Floating orb: hide the big decorative one; keep pinned icon, drop label --- */
  .hero-orb:not(.is-pinned) { display: none !important; }
  .hero-orb.is-pinned { width: 60px; height: 60px; bottom: 18px; right: 18px; }
  .hero-orb.is-pinned .btn-wrap { display: none !important; }

  /* --- Display headings (override inline 80px etc.) --- */
  section .display,
  .display.h-large,
  .work__intro h2,
  .about__title,
  .contact__h,
  .overview__h,
  .nextsteps__h,
  .process__h,
  .cs-hero__h,
  .next-project__h {
    font-size: clamp(30px, 8.4vw, 46px) !important;
    line-height: 1.06 !important;
    max-width: 100% !important;
  }
  .h-mega, .h-huge { font-size: clamp(40px, 12vw, 64px) !important; line-height: 1.02 !important; }

  /* --- Consistent section padding across all pages --- */
  section.shell:not(.hero) {
    padding-block: 56px !important;
    padding-inline: 20px !important;
  }
  .footer.shell { padding-block: 56px !important; padding-inline: 20px !important; }

  /* --- Stats --- */
  .stat { padding: 24px 0; }
  .stat__num { font-size: clamp(46px, 16vw, 76px); }

  /* --- Projects --- */
  .project { margin-bottom: 56px; }
  .project__footer { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* --- Footer --- */
  .footer__content { flex-direction: column; align-items: flex-start; gap: 26px; height: auto !important; }
  .footer__brand-mark { width: clamp(220px, 72vw, 340px); }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* --- Buttons: keep tidy, avoid overflow --- */
  .btn { font-size: 13px; }

  /* --- Marquee headline: smaller --- */
  .marquee-band .marquee__track { font-size: clamp(28px, 9vw, 44px); }

  /* About bento handled in the dedicated @media (max-width: 900px) block above */

  /* --- Testimonials: kill inline fixed heights so cards hug content & fill width --- */
  .testimonials { padding: 52px 20px !important; }
  .testimonials .section-head { height: auto !important; margin-bottom: 32px !important; }
  .t-grid { height: auto !important; padding: 0 !important; gap: 12px !important; }
  .t-card { padding: 26px !important; height: auto !important; gap: 20px !important; }
  .t-card__pull { font-size: clamp(24px, 6.6vw, 30px) !important; line-height: 1.12 !important; }
  .t-card__quote { font-size: 15px !important; }
  .t-card__portrait { min-height: 200px !important; aspect-ratio: 4 / 3; width: 100%; }

  /* --- Cuanto Design Thinking: reduce oversized box padding --- */
  .process__layout { padding: 22px !important; }

  /* --- Deliverables: extra bottom padding on mobile (higher specificity to beat section.shell:not(.hero)) --- */
  section.deliverables.shell:not(.hero),
  section.deliv.shell:not(.hero) { padding-bottom: 96px !important; }
}

/* Neutralise hard-coded inline pixel widths (index.html) below 1000px so they
   don't cause horizontal scroll in the 769–1000px tweener band */
@media (max-width: 1000px) {
  [style*="width: 1000px"],
  [style*="width: 800px"],
  [style*="width: 600px"],
  [style*="width: 480px"],
  .work__intro,
  .need-more__copy {
    width: 100% !important;
    max-width: 100% !important;
  }
  /* keep the decorative hero orb from poking past the viewport edge */
  .hero { overflow-x: clip; }
}
