:root {
  --black: #000000;
  --ink: #111111;
  --panel: #171717;
  --line: #303030;
  --paper: #f4f1eb;
  --white: #ffffff;
  --muted: #aaa8a4;
  --red: #fc3f1d;
  --red-dark: #d92d10;
  --yellow: #ffcc00;
  --radius: 26px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 8% 2%, rgba(255, 204, 0, .08), transparent 28rem),
    radial-gradient(circle at 92% 11%, rgba(252, 63, 29, .08), transparent 32rem),
    var(--black);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.06; overflow-wrap: anywhere; hyphens: none; text-wrap: balance; }
h1 { font-size: clamp(3.2rem, 7.8vw, 7.5rem); margin-bottom: 1.8rem; }
h2 { font-size: clamp(2.2rem, 4.7vw, 4.9rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.3rem, 2vw, 2rem); margin-bottom: .8rem; }
p { color: var(--muted); }

.shell { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: .8rem 1rem; background: var(--white); color: var(--black); border-radius: 10px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(0, 0, 0, .88); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px); }
.header-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-weight: 780; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--black); background: linear-gradient(135deg, var(--yellow), #ffe86a); font-weight: 900; box-shadow: 0 0 34px rgba(255,204,0,.25); }
.nav-list { display: flex; align-items: center; gap: 1.8rem; margin: 0; padding: 0; list-style: none; }
.nav-list a { color: #dedede; text-decoration: none; font-size: .94rem; font-weight: 650; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--yellow); }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 999px; padding: .65rem 1rem; color: var(--white); background: var(--panel); cursor: pointer; }

.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 8vw, 8rem) 0 0; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 48vw; height: 48vw; min-width: 500px; min-height: 500px; right: -18vw; top: -22vw; border: clamp(60px, 8vw, 120px) solid rgba(252,63,29,.16); border-radius: 50%; }
.hero::after { content: ""; position: absolute; z-index: -2; width: 340px; height: 340px; left: -120px; bottom: 40px; border-radius: 50%; background: rgba(255,204,0,.18); filter: blur(110px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: clamp(2rem, 4vw, 4rem); align-items: end; }
.hero-grid > * { min-width: 0; }
.hero-copy h1 { max-width: 100%; font-size: clamp(3.2rem, 6vw, 5rem); }
.hero-copy h1 span, .page-hero h1 span { color: var(--yellow); }
.hero-lead { max-width: 760px; font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: #c5c4c1; }
.kicker { margin-bottom: 1rem; color: var(--yellow); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .85rem 1.35rem; border: 1px solid var(--yellow); border-radius: 999px; color: var(--black); background: var(--yellow); text-decoration: none; font-weight: 800; box-shadow: 0 14px 44px rgba(255,204,0,.12); transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: #ffe05c; }
.button-ghost { border-color: #444; background: transparent; }
.button-ghost { color: var(--white); box-shadow: none; }
.button-ghost:hover { color: var(--white); background: #151515; }
.button-black { border-color: var(--black); color: var(--white); background: var(--black); }
.hero-panel { overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); background: rgba(23,23,23,.82); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.hero-panel-top { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; color: var(--black); background: var(--red); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-metric { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .9rem; align-items: center; min-height: 112px; padding: 1rem 1.25rem; border-top: 1px solid #303030; }
.hero-metric b { font-size: 2.5rem; letter-spacing: -.07em; }
.hero-metric span { color: #b9b9b9; }
.skill-ribbon { display: flex; overflow-x: auto; gap: 0; margin-top: clamp(4rem, 7vw, 7rem); scrollbar-width: none; border-block: 1px solid var(--line); background: #0c0c0c; }
.skill-ribbon::-webkit-scrollbar { display: none; }
.skill-ribbon div { flex: 1 0 auto; padding: 1.25rem 2rem; border-right: 1px solid var(--line); color: #d7d7d7; font-size: .8rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.section { padding: clamp(5rem, 9vw, 9rem) 0; }
.section-paper { color: var(--black); background: var(--paper); }
.section-paper p { color: #5b5752; }
.section-red { color: var(--black); background: linear-gradient(120deg, var(--red), #ff6549 68%, var(--yellow)); }
.section-red p, .section-red .kicker { color: #2b0b05; }
.split-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .75fr); gap: clamp(3rem, 8vw, 9rem); align-items: start; }
.intro-copy { padding-top: .4rem; font-size: clamp(1.05rem, 1.4vw, 1.22rem); }
.intro-copy strong { color: var(--white); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.6rem; }
.section-heading > div { max-width: 850px; }
.dark-heading h2 { color: var(--black); }
.text-link { flex: 0 0 auto; color: var(--black); font-weight: 850; text-decoration: none; border-bottom: 2px solid var(--red); }
.text-link span { color: var(--red); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project-card { position: relative; isolation: isolate; display: grid; min-height: 430px; padding: clamp(1.5rem, 3vw, 2.3rem); border-radius: var(--radius); overflow: hidden; }
.project-card::after { content: ""; position: absolute; z-index: 0; pointer-events: none; width: 230px; height: 230px; right: -110px; bottom: -110px; border: 42px solid rgba(255,255,255,.09); border-radius: 50%; }
.project-card > * { position: relative; z-index: 1; min-width: 0; }
.project-card-red { color: var(--black); background: var(--red); }
.project-card-red p { color: #3d1009; }
.project-card-dark { color: var(--white); background: linear-gradient(145deg, rgba(30,30,30,.96), rgba(12,12,12,.96)); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px); }
.project-card-dark p { color: #aaa; }
.project-card-light { color: var(--black); background: linear-gradient(145deg, var(--yellow), #ffe77a); }
.project-card-light p { color: #555; }
.project-index { align-self: start; font-size: .8rem; font-weight: 850; letter-spacing: .12em; }
.project-card > div:nth-child(2) { align-self: end; }
.project-card h3 { max-width: 560px; font-size: clamp(1.7rem, 2.7vw, 3rem); }
.project-kind { margin-bottom: .7rem; font-size: .74rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; align-self: end; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.tag-list li { padding: .43rem .72rem; border: 1px solid currentColor; border-radius: 999px; font-size: .75rem; font-weight: 700; }

.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.process-grid article { min-height: 270px; padding: 1.8rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-grid article:first-child { border-left: 1px solid var(--line); }
.process-grid span { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 4rem; border-radius: 50%; color: var(--black); background: var(--yellow); font-weight: 900; box-shadow: 0 0 28px rgba(255,204,0,.18); }
.process-grid p { margin-bottom: 0; }
.contact-block { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .65fr); gap: clamp(3rem, 8vw, 9rem); align-items: end; }
.contact-block .button { margin-top: 1rem; }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(5rem, 10vw, 9rem) 0; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; z-index: 0; pointer-events: none; width: 460px; height: 460px; right: -180px; bottom: -280px; border: 78px solid rgba(255,204,0,.15); border-radius: 50%; filter: blur(2px); }
.page-hero > .shell { position: relative; z-index: 1; }
.page-hero h1 { max-width: 1120px; font-size: clamp(3.2rem, 7vw, 7rem); }
.page-hero > .shell > p:last-child { max-width: 760px; font-size: 1.2rem; }
.page-hero-red { color: var(--black); background: var(--red); }
.page-hero-red::after { border-color: rgba(0,0,0,.13); }
.page-hero-red .kicker, .page-hero-red p { color: #310d07; }
.page-hero-red h1 span { color: var(--black); }

.case-study { padding: clamp(5rem, 9vw, 9rem) 0; border-bottom: 1px solid var(--line); }
.case-study-paper { color: var(--black); background: var(--paper); }
.case-study-paper p { color: #59544e; }
.case-header { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); margin-bottom: 3.5rem; }
.case-number { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--black); background: var(--yellow); font-weight: 900; box-shadow: 0 0 38px rgba(255,204,0,.18); }
.case-header h2 { max-width: 980px; }
.case-lead { max-width: 820px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.case-grid article { padding: clamp(1.5rem, 3vw, 2.2rem); background: var(--black); }
.case-grid article p { margin: 0; }
.case-study-paper .case-grid { border-color: #d5d0c9; background: #d5d0c9; }
.case-study-paper .case-grid article { background: var(--paper); }
.case-proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 1px; background: linear-gradient(110deg, var(--yellow), #ffe268 56%, var(--red)); }
.case-proof div { min-height: 150px; padding: 1.4rem; border-right: 1px solid rgba(0,0,0,.22); color: var(--black); }
.case-proof b { display: block; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.07em; }
.case-proof span { display: block; margin-top: .65rem; font-size: .82rem; font-weight: 700; }
.case-tags { margin-top: 1.5rem; }

.capability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.capability-card { min-width: 0; padding: clamp(1.5rem, 3vw, 2.4rem); border-radius: var(--radius); color: var(--black); background: var(--white); }
.capability-card h2 { font-size: clamp(2rem, 2.7vw, 3rem); line-height: 1.08; }
.capability-card p { color: #5b5752; }
.capability-card-dark { color: var(--white); background: linear-gradient(145deg, #232323, #0f0f0f); box-shadow: 0 26px 70px rgba(0,0,0,.2); }
.capability-card-dark p { color: #aaa; }
.capability-card-red { color: var(--black); background: var(--red); }
.capability-card-red p { color: #3d1009; }
.capability-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 4rem; border: 1px solid currentColor; border-radius: 50%; font-weight: 900; }
.evidence-list { margin: 2rem 0 0; padding: 0; list-style: none; border-top: 1px solid currentColor; }
.evidence-list li { padding: 1rem 0; border-bottom: 1px solid rgba(127,127,127,.35); }
.evidence-list b, .evidence-list span { display: block; }
.evidence-list span { margin-top: .2rem; font-size: .86rem; opacity: .72; }
.stack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.stack-grid article { min-height: 230px; padding: clamp(1.5rem, 3vw, 2.4rem); background: var(--black); }
.application-list { border-top: 1px solid #cbc6bf; }
.application-list a { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(260px, 1fr) 50px; gap: 1.5rem; align-items: center; padding: 1.5rem .2rem; border-bottom: 1px solid #cbc6bf; color: var(--black); text-decoration: none; }
.application-list a:hover span { color: var(--red); }
.application-list span { font-size: clamp(1.05rem, 1.8vw, 1.45rem); font-weight: 850; overflow-wrap: anywhere; hyphens: auto; }
.application-list b { color: #6b655e; font-size: .86rem; overflow-wrap: anywhere; }
.application-list i { color: var(--red); font-style: normal; font-weight: 900; text-align: right; }

.site-footer { border-top: 1px solid var(--line); background: var(--black); }
.footer-row { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-row p { margin: 0; font-size: .88rem; }
.footer-row p:first-child { color: var(--white); font-weight: 850; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--yellow); }

@media (max-width: 980px) {
  .hero-grid, .split-intro, .contact-block { grid-template-columns: 1fr; }
  .hero-panel { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-panel-top { grid-column: 1 / -1; }
  .hero-metric { grid-template-columns: 1fr; align-content: center; border-right: 1px solid var(--line); }
  .project-grid, .stack-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 0 1.5rem; }
  .capability-card .capability-icon { grid-row: 1 / 5; margin: 0; }
  .capability-card .evidence-list { grid-column: 2; }
}

@media (max-width: 840px) {
  .case-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1240px); }
  h1, .hero-copy h1, .page-hero h1 { font-size: clamp(2.25rem, 10vw, 3.4rem); }
  h2 { font-size: clamp(2.1rem, 10vw, 3.6rem); }
  .header-row { min-height: 68px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 68px 14px auto; padding: .7rem; border: 1px solid var(--line); border-radius: 18px; background: #111; box-shadow: var(--shadow); }
  .site-nav[data-open="true"] { display: block; }
  .nav-list { display: grid; gap: .15rem; }
  .nav-list a { display: block; padding: .85rem 1rem; border-radius: 12px; }
  .nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--black); background: var(--yellow); }
  .hero { padding-top: 4rem; }
  .hero-grid { gap: 3rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-panel { display: block; }
  .hero-metric { grid-template-columns: max-content minmax(0, 1fr); min-height: 88px; border-right: 0; }
  .skill-ribbon div { padding: 1rem 1.25rem; }
  .section-heading { display: block; }
  .section-heading .text-link { display: inline-block; margin-top: .7rem; }
  .project-grid, .case-grid, .case-proof, .process-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 390px; }
  .process-grid article { min-height: auto; }
  .process-grid span { margin-bottom: 2rem; }
  .case-header { grid-template-columns: 1fr; }
  .case-proof div { min-height: 110px; border-bottom: 1px solid rgba(0,0,0,.22); }
  .capability-card { display: block; }
  .capability-card .capability-icon { margin-bottom: 3rem; }
  .capability-card .evidence-list { grid-column: auto; }
  .application-list a { grid-template-columns: 1fr 40px; gap: .35rem 1rem; }
  .application-list a b { grid-column: 1; grid-row: 2; }
  .application-list a i { grid-column: 2; grid-row: 1 / 3; }
  .footer-row { display: grid; gap: .25rem; align-content: center; }
}

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