:root {
  --red: #b1001f;
  --red-bright: #e0173a;
  --navy: #0a1a2f;
  --navy-2: #0f2540;
  --navy-3: #16345a;
  --blue: #0a5582;
  --ink: #101a26;
  --text: #2b3645;
  --muted: #5f6b7b;
  --light: #eef2f7;
  --light-muted: #9fb0c6;
  --paper: #f6f7f9;
  --line: #e1e5eb;
  --line-dark: rgba(238, 242, 247, .12);
  --sans: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -.025em; }
p { margin: 0; }
img, svg { display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.red { color: var(--red); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 24px; border-radius: 10px; font: 600 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 12px 28px -12px rgba(177, 0, 31, .8); }
.btn-red:hover { background: #c4062a; }
.btn-line { color: var(--light); border-color: rgba(238, 242, 247, .25); }
.btn-line:hover { border-color: rgba(238, 242, 247, .55); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 9px; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-word { display: grid; line-height: 1; }
.logo-word b { font-weight: 800; font-size: 17px; letter-spacing: .08em; color: var(--red); }
.logo-word i { font-style: normal; font-weight: 500; font-size: 11.5px; letter-spacing: .36em; color: var(--blue); margin-top: 3px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .3s, box-shadow .3s; }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav .logo-word b { color: #fff; }
.nav .logo-word i { color: var(--light-muted); }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); font-size: 14.5px; font-weight: 500; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--light-muted); transition: color .2s; }
.nav nav a:not(.btn):hover { color: #fff; }
.nav.scrolled { background: rgba(10, 26, 47, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-dark); }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: var(--light); background: radial-gradient(90% 80% at 80% 20%, var(--navy-3) 0%, var(--navy-2) 35%, var(--navy) 75%); }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(238, 242, 247, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(238, 242, 247, .05) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(80% 80% at 70% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(80% 80% at 70% 40%, #000 30%, transparent 80%); }
/* The chart fades in from the left (and out at the bottom) so it never shows a hard cut-off edge */
.chart { position: absolute; right: 0; bottom: 0; width: min(92vw, 1500px); height: 74%; opacity: .95;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 18%, #000 42%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 18%, #000 42%), linear-gradient(0deg, transparent 0%, #000 22%); mask-composite: intersect; }
.chart-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.6s cubic-bezier(.6, .05, .25, 1) .3s forwards; filter: drop-shadow(0 0 10px rgba(224, 23, 58, .55)); }
.chart-area { opacity: 0; animation: fade 1.4s ease 1.6s forwards; }
.chart-dot { opacity: 0; transform-origin: 770px 72px; animation: fade .4s ease 2.8s forwards, pulse 2.4s ease-in-out 3.2s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: 120px; }
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--light-muted); margin-bottom: 22px; }
.hero h1 { color: #fff; font-size: clamp(40px, 6.6vw, 88px); line-height: 1.02; font-weight: 800; max-width: 13ch; }
.hero h1 .red { color: var(--red-bright); }
.lede { margin-top: 24px; max-width: 46ch; font-size: clamp(17px, 1.6vw, 20px); color: #c3cfdf; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Shared section bits */
section { scroll-margin-top: 76px; }
.kicker { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; font-weight: 800; max-width: 18ch; }
.body { font-size: 17px; color: var(--muted); max-width: 56ch; margin-top: 20px; }

/* Intro + stages */
.intro { padding: clamp(80px, 11vw, 140px) 0; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: end; }
.intro-body p { font-size: 18px; color: var(--muted); }
.intro-body p + p { margin-top: 14px; }
.stages { list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stages li { position: relative; overflow: hidden; padding: 32px 28px 30px; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.stages li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.stages li:hover { transform: translateY(-4px); box-shadow: 0 26px 44px -30px rgba(10, 26, 47, .45); }
.stages li:hover::after { transform: scaleX(1); }
.stage-num { display: block; font-size: 44px; font-weight: 500; color: var(--line); line-height: 1; margin-bottom: 30px; transition: color .3s; }
.stages li:hover .stage-num { color: var(--red); }
.stages h3 { font-size: 21px; margin-bottom: 8px; }
.stages p { color: var(--muted); }

/* Approach */
.approach { padding: clamp(80px, 11vw, 140px) 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.approach-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.values { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.values li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.values li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.pull { margin: 0; padding: clamp(32px, 4vw, 48px); border-radius: 24px; color: #fff; background: radial-gradient(120% 120% at 100% 0%, var(--navy-3), var(--navy) 70%); position: relative; overflow: hidden; }
.pull::before { content: "“"; position: absolute; right: 18px; top: -40px; font-size: 220px; line-height: 1; color: rgba(224, 23, 58, .25); font-weight: 800; }
.pull p { position: relative; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.pull footer { margin-top: 22px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--light-muted); }

/* What makes us different */
.different { padding: clamp(80px, 11vw, 140px) 0; }
.cards { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 28px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(177, 0, 31, .25); box-shadow: 0 26px 44px -30px rgba(10, 26, 47, .45); }
.card-wide { grid-column: 1 / -1; display: flex; gap: 24px; align-items: center; background: linear-gradient(120deg, #fff 55%, #fbeef0); }
.card-wide .c-ic { margin-bottom: 0; }
.card-wide p { max-width: 80ch; }
.c-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(177, 0, 31, .08); margin-bottom: 22px; flex: none; }
.c-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Companies */
.companies { padding: clamp(80px, 11vw, 140px) 0; background: var(--navy); color: var(--light); }
.companies h2 { color: #fff; }
.companies .red { color: var(--red-bright); }
.companies .kicker { color: #ff6b81; }
.companies .body { color: var(--light-muted); margin-top: 0; }
.companies-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: end; }
.portfolio { margin-top: clamp(44px, 6vw, 70px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.group-label { display: flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--light-muted); margin-bottom: 14px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; animation: ring 2s infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .5); } 80%, 100% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } }
.logos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.logo-card { margin: 0; display: grid; place-items: center; height: 140px; border-radius: 18px; background: rgba(238, 242, 247, .04); border: 1px solid var(--line-dark); transition: transform .3s, background .3s, border-color .3s; }
.logo-card:hover { transform: translateY(-4px); background: rgba(238, 242, 247, .08); border-color: rgba(238, 242, 247, .22); }
.logo-card img { max-width: 64%; max-height: 46px; width: auto; height: auto; }
/* Workoid's logo, rebuilt from workoid.com: gold mark + "Work" / gold "oid" in Bricolage Grotesque */
.workoid { display: inline-flex; align-items: center; gap: 9px; font: 800 30px/1 "Bricolage Grotesque", var(--sans); letter-spacing: -.03em; color: #ecf5f0; }
.workoid svg { width: 30px; height: 30px; }
.workoid b { font-weight: 800; color: #e8b44c; }

/* Contact */
.contact { padding: clamp(80px, 11vw, 140px) 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.details { margin: 36px 0 0; display: grid; gap: 22px; }
.details dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.details dd { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.6; }
.details a { text-decoration: none; }
.details a:hover { color: var(--red); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(10, 26, 47, .35); }
.field { display: grid; gap: 7px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 11px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(177, 0, 31, .12); }
.field .invalid { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 4px; }
.status { font-size: 15px; }
.status.ok { color: #1a8a5a; }
.status.err { color: var(--red); }
.status a { color: inherit; }

/* Footer */
.footer { background: var(--navy); color: var(--light-muted); padding: 30px 0 36px; font-size: 14px; border-top: 1px solid var(--line-dark); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .logo-word b { color: #fff; }
.footer .logo-word i { color: var(--light-muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.stages .reveal:nth-child(2), .cards .reveal:nth-child(2), .logos .reveal:nth-child(2) { transition-delay: .08s; }
.stages .reveal:nth-child(3), .cards .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chart-line { animation: none; stroke-dashoffset: 0; }
  .chart-area, .chart-dot { animation: none; opacity: 1; }
  .pulse { animation: none; }
}

@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .portfolio { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .intro-grid, .approach-grid, .companies-head, .contact-grid { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
  .chart { width: 130vw; height: 52%; opacity: .7; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card-wide { flex-direction: column; align-items: flex-start; }
  .card-wide .c-ic { margin-bottom: 0; }
  .form { grid-template-columns: 1fr; }
  .logo-card { height: 110px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
