/* TechLegal — design studies as pages (2026-09-28). Navy + gold, Figtree (self-hosted variable font). */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap; src: url(/next/fonts/figtree-latin.woff2) format('woff2'); }
:root { --navy: #0a1a38; --navy-2: #0e2247; --ink: #0c1b36; --ink-2: #3c4a63; --ink-3: #6a7790; --gold: #d8ae66; --gold-2: #c99a4e; --cream: #faf8f4; --line: rgba(12, 27, 54, .12);
  --pad: clamp(22px, 5vw, 72px); --max: 1360px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
body.theme-dark { background: var(--navy); color: #fff; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(40px, 5vw, 92px); }
h2 { font-size: clamp(32px, 4vw, 66px); }
h3 { font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -.015em; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.theme-light .hero .eyebrow, .page-guidance .hero .eyebrow { color: var(--navy); }
.page-about .hero .eyebrow { color: #b48a45; }
.lede { font-size: clamp(18px, 1.6vw, 23px); font-weight: 400; line-height: 1.45; color: rgba(255, 255, 255, .86); margin-top: 26px; max-width: 34em; }
.theme-light .lede, .lede-dark { color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; gap: 12px; background: var(--gold); color: var(--navy) !important; font-weight: 600; font-size: 15.5px; padding: 13px 24px; border-radius: 2px; transition: background .2s, transform .2s; white-space: nowrap; }
.btn:hover { background: #e3bd7b; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-lg { font-size: 17px; padding: 18px 30px; margin-top: 38px; }
.btn-lg svg { transition: transform .2s; } .btn-lg:hover svg { transform: translateX(4px); }

/* ── header ─────────────────────────────────────────────────────────────── */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 26px var(--pad); color: #fff; }
.nav-light { color: var(--navy); }
.brand { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; letter-spacing: .16em; }
.nav nav { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 56px); font-size: 16.5px; }
.nav nav > a:not(.btn), .droplink { opacity: .92; } .nav nav > a:not(.btn):hover, .droplink:hover { opacity: 1; color: var(--gold); }
.nav nav > a[aria-current] { color: var(--gold); }
.nav-light nav > a[aria-current] { color: #9a7132; }
.drop { position: relative; }
.droplink { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 6px 0; }
.droplink::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 9px; opacity: .7; }
.menu { position: absolute; top: 100%; left: -18px; min-width: 250px; background: #fff; color: var(--navy); border-radius: 4px; padding: 10px; box-shadow: 0 24px 60px rgba(4, 12, 28, .35); display: none; }
.drop:hover .menu, .drop:focus-within .menu, .drop.open .menu { display: grid; }
.menu a { padding: 10px 14px; border-radius: 3px; font-size: 15.5px; font-weight: 500; } .menu a:hover, .menu a[aria-current] { background: #f3eee3; color: #8a6430; }
.navtoggle, .burger { display: none; }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(100vh, 980px); display: flex; align-items: center; overflow: hidden; padding: 150px var(--pad) 110px; isolation: isolate; }
.hero-dark { background: var(--navy); color: #fff; }
.hero-light { background: var(--cream); color: var(--navy); }
.hero-img { position: absolute; inset: 0; z-index: -1; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-copy { position: relative; max-width: 900px; }
/* image on the right, navy on the left (support, infrastructure, AI, app dev) */
.hero-img-right { left: 34%; }
.hero-img-right::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(10, 26, 56, .8) 14%, rgba(10, 26, 56, .25) 36%, rgba(10, 26, 56, 0) 56%), linear-gradient(0deg, var(--navy) 0%, rgba(10, 26, 56, 0) 26%), linear-gradient(180deg, rgba(10, 26, 56, .55) 0%, rgba(10, 26, 56, 0) 22%); }
.hero-img-right.fade-white::after { background: linear-gradient(90deg, var(--navy) 0%, rgba(10, 26, 56, .8) 14%, rgba(10, 26, 56, .25) 36%, rgba(10, 26, 56, 0) 56%), linear-gradient(180deg, rgba(10, 26, 56, .55) 0%, rgba(10, 26, 56, 0) 22%); }
.page-infrastructure .hero { min-height: min(108vh, 1060px); padding-bottom: 230px; }
.page-infrastructure .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, #fbfbfd 0%, rgba(251, 251, 253, .92) 9%, rgba(251, 251, 253, .5) 18%, rgba(251, 251, 253, 0) 32%); }
.page-infrastructure .hero-img { z-index: -2; }
.page-infrastructure .hero-img-right { left: 40%; }
/* image on the left, cream on the right (guidance) */
.hero-left { justify-content: flex-end; }
.hero-left .hero-copy { max-width: 800px; }
.hero-img-left { right: 34%; }
.hero-img-left::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, var(--cream) 0%, rgba(250, 248, 244, .8) 14%, rgba(250, 248, 244, 0) 42%), linear-gradient(0deg, var(--cream) 0%, rgba(250, 248, 244, 0) 30%), linear-gradient(180deg, rgba(250, 248, 244, .75) 0%, rgba(250, 248, 244, 0) 18%); }
/* centred headline above a wide photo (about) */
.hero-center { flex-direction: column; justify-content: flex-start; text-align: center; padding-top: 150px; min-height: auto; }
.hero-center .hero-copy { margin: 0 auto; }
.hero-center .lede { margin-left: auto; margin-right: auto; color: var(--ink); }
.hero-img-center { position: relative; inset: auto; z-index: 0; width: calc(100% + 2 * var(--pad)); margin: 36px calc(-1 * var(--pad)) 0; height: clamp(320px, 52vw, 760px); order: 2; }
.hero-img-center::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 78% at 50% 55%, rgba(250, 248, 244, 0) 55%, var(--cream) 100%), linear-gradient(180deg, var(--cream) 0%, rgba(250, 248, 244, 0) 18%, rgba(250, 248, 244, 0) 80%, var(--cream) 100%); }
.hero-center .hero-copy { order: 1; }

/* ── second block ───────────────────────────────────────────────────────── */
.s2 { padding: clamp(70px, 8vw, 130px) var(--pad); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.s2-dark { color: #fff; } .s2-light { color: var(--navy); }
.page-infrastructure .s2 { background: #fbfbfd; max-width: none; margin: 0; padding-top: 10px; }
.page-infrastructure .s2 > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.s2-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 5vw, 90px); align-items: start; }
.page-infrastructure .s2-split { grid-template-columns: .9fr 2fr; }
.s2 .cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(26px, 4vw, 70px); }
.s2.n3 .cols { grid-template-columns: repeat(3, 1fr); }
.s2 .col h3 { margin: 6px 0 16px; }
.s2 .col p { color: rgba(255, 255, 255, .8); font-size: 18px; line-height: 1.55; }
.s2-light .col p { color: var(--ink-3); }
.s2-wide .cols { grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 5vw, 70px); }
.s2-center { text-align: center; padding-top: 30px; }
.s2-center h2 { font-size: clamp(30px, 3.8vw, 58px); }
.steps { list-style: none; padding: 0; margin: 38px 0 0; display: flex; justify-content: center; gap: clamp(22px, 4vw, 56px); flex-wrap: wrap; }
.steps li { font-size: 18px; letter-spacing: .14em; color: rgba(255, 255, 255, .85); position: relative; }
.steps li + li::before { content: ""; position: absolute; left: calc(-1 * clamp(11px, 2vw, 28px) - 3px); top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.s2-about { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 10px; }
.s2-about h2 { font-size: clamp(32px, 3.6vw, 54px); }
.s2-about .lede-dark { font-size: clamp(18px, 1.6vw, 23px); margin-top: 18px; max-width: 30em; }
.s2-about .btn-lg { margin-top: 0; }
.tags { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: clamp(26px, 5vw, 90px); flex-wrap: wrap; font-size: clamp(19px, 1.7vw, 25px); color: rgba(255, 255, 255, .9); }
.tags li { padding-top: 14px; border-top: 1px solid rgba(216, 174, 102, .6); min-width: 190px; }

/* ── detail cards ───────────────────────────────────────────────────────── */
.detail { padding: clamp(60px, 7vw, 110px) var(--pad); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.page-infrastructure .detail { background: #fbfbfd; max-width: none; color: var(--navy); }
.page-infrastructure .detail > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.detail-head { display: flex; flex-direction: column; margin-bottom: clamp(30px, 4vw, 54px); }
.detail-head h2 { font-size: clamp(28px, 3.2vw, 46px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.n4 { grid-template-columns: repeat(4, 1fr); }
.card { border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .035); padding: 30px 28px 34px; border-radius: 3px; transition: border-color .25s, transform .25s; }
.card:hover { border-color: rgba(216, 174, 102, .55); transform: translateY(-2px); }
.theme-light .card, .page-infrastructure .card { border-color: var(--line); background: #fff; }
.card .num { display: block; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--gold); margin-bottom: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.theme-light .card p, .page-infrastructure .card p { color: var(--ink-3); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.stats div { padding: 30px 28px 6px 0; } .stats b { display: block; font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.03em; color: var(--gold); line-height: 1; }
.stats span { display: block; margin-top: 10px; color: rgba(255, 255, 255, .7); font-size: 15px; }
.note { margin-top: 30px; padding-left: 18px; border-left: 2px solid var(--gold); max-width: 56em; color: rgba(255, 255, 255, .82); font-size: 17px; }
.theme-light .note { color: var(--ink-2); }

/* ── closing band ───────────────────────────────────────────────────────── */
.band { background: var(--navy-2); color: #fff; padding: clamp(70px, 8vw, 120px) var(--pad); display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: end; }
.theme-dark .band { background: linear-gradient(180deg, var(--navy) 0%, #0f2550 100%); border-top: 1px solid rgba(255, 255, 255, .07); }
.band h2 { font-size: clamp(32px, 4vw, 60px); max-width: 15em; }
.band p { margin-top: 20px; color: rgba(255, 255, 255, .75); max-width: 36em; font-size: 18px; }
.more { display: grid; gap: 2px; }
.more a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 18px; font-weight: 500; }
.more a:hover { color: var(--gold); }

/* ── footer ─────────────────────────────────────────────────────────────── */
.foot { background: #07142c; color: rgba(255, 255, 255, .7); padding: 64px var(--pad) 32px; font-size: 15px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.foot .brand { color: #fff; font-size: 24px; } .foot p { margin-top: 16px; max-width: 26em; }
.foot h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.foot-top > div > a:not(.brand) { display: block; padding: 5px 0; } .foot a:hover { color: #fff; }
.foot-bot { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; font-size: 13.5px; flex-wrap: wrap; }

/* ── index of the six ───────────────────────────────────────────────────── */
.index-hero { padding: 180px var(--pad) 60px; max-width: var(--max); margin: 0 auto; }
.studies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 20px var(--pad) 110px; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
.study { display: flex; flex-direction: column; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 3px; overflow: hidden; transition: border-color .25s, transform .25s; }
.study:hover { border-color: rgba(216, 174, 102, .6); transform: translateY(-3px); }
.study img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.study .eyebrow { margin: 24px 26px 10px; font-size: 11.5px; } .study b { margin: 0 26px; font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.study em { font-style: normal; margin: 12px 26px 28px; color: rgba(255, 255, 255, .7); font-size: 15.5px; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cards.n4 { grid-template-columns: repeat(2, 1fr); }
  .s2-split, .page-infrastructure .s2-split { grid-template-columns: 1fr; }
  .studies { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .burger { display: block; width: 30px; height: 22px; position: relative; cursor: pointer; z-index: 12; }
  .burger span, .burger span::before, .burger span::after { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; content: ""; }
  .burger span { top: 10px; } .burger span::before { top: -8px; } .burger span::after { top: 8px; }
  .nav nav { display: none; position: absolute; top: 76px; left: 14px; right: 14px; flex-direction: column; align-items: stretch; gap: 0; background: #fff; color: var(--navy); border-radius: 6px; padding: 12px; box-shadow: 0 24px 60px rgba(4, 12, 28, .35); }
  .navtoggle:checked ~ nav { display: flex; }
  .nav nav > a, .droplink { padding: 12px 10px; text-align: left; } .nav nav > a[aria-current] { color: #8a6430; }
  .drop .menu { position: static; display: grid; box-shadow: none; padding: 0 0 6px 10px; min-width: 0; }
  .droplink::after { display: none; } .nav nav .btn { justify-content: center; margin-top: 8px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { min-height: auto; flex-direction: column; align-items: stretch; padding: 0 0 70px; }
  .hero-img, .hero-img-right, .hero-img-left, .page-infrastructure .hero-img-right { position: relative; inset: auto; left: 0; right: 0; height: 62vw; min-height: 260px; }
  .hero-img-right::after, .hero-img-right.fade-white::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(10, 26, 56, 0) 45%), linear-gradient(180deg, rgba(10, 26, 56, .8) 0%, rgba(10, 26, 56, 0) 35%); }
  .hero-img-left::after { background: linear-gradient(0deg, var(--cream) 0%, rgba(250, 248, 244, 0) 45%), linear-gradient(180deg, rgba(250, 248, 244, .85) 0%, rgba(250, 248, 244, 0) 35%); }
  .hero-copy { padding: 0 var(--pad); margin-top: -30px; }
  .hero-center { padding-top: 110px; } .hero-center .hero-copy { margin-top: 0; }
  .hero-img-center { height: 70vw; }
  .page-infrastructure .hero { padding-bottom: 80px; background: var(--navy); }
  .page-infrastructure .hero::after { display: none; }
  .page-infrastructure .s2 { padding-top: 60px; }
  .s2 .cols, .s2.n3 .cols, .s2-wide .cols, .cards, .cards.n4, .stats, .band, .foot-top, .studies { grid-template-columns: 1fr; }
  .s2-about { flex-direction: column; align-items: flex-start; }
  .steps { gap: 18px 34px; }
  .nav { padding: 18px var(--pad); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
