:root {
  --emerald: #063F36;
  --emerald-2: #0A5246;
  --gold: #E9B44C;
  --gold-2: #F3CB72;
  --teal: #159B83;
  --charcoal: #19272D;
  --white: #F7F9F6;
  --cream: #FBF8F1;
  --muted: #5B6B70;
  --line: #E7E3D8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(6, 63, 54, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.gold { color: var(--gold); }
.teal { color: var(--teal); }

.skip-link { position: absolute; inset-inline-start: 8px; top: 8px; transform: translateY(-200%); background: var(--gold); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { transform: none; }

.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.eyebrow.dark { color: var(--teal); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 Inter, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s, color .2s;
}
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-2); box-shadow: 0 8px 24px rgba(233, 180, 76, .35); transform: translateY(-1px); }
.btn-ghost { color: var(--white); border-color: rgba(247, 249, 246, .3); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: .65em 1.2em; font-size: .85rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(6, 63, 54, .92); backdrop-filter: blur(12px); box-shadow: 0 4px 20px rgba(0, 0, 0, .15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--white); font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; }
.brand img { width: auto; height: 38px; }
.brand b { color: var(--gold); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { color: rgba(247, 249, 246, .85); text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(1200px 600px at 80% 40%, #0B5A4B 0%, var(--emerald) 45%, #04302A 100%);
  padding: 150px 0 110px;
}
.hero-glow { position: absolute; width: 520px; height: 520px; right: 6%; top: 18%; background: radial-gradient(circle, rgba(233, 180, 76, .22), transparent 65%); filter: blur(10px); }
.hero-waves { position: absolute; inset: auto 0 0; width: 100%; height: 55%; }
.hero-waves path { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .35; }
.hero-waves path:nth-child(2) { stroke: var(--teal); opacity: .4; }
.hero-waves path:nth-child(3) { opacity: .18; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.lead { font-size: 1.12rem; color: rgba(247, 249, 246, .78); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.2rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .88rem; color: rgba(247, 249, 246, .7); }
.hero-points li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-inline-end: .55rem; vertical-align: middle; }
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.orbit { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(233, 180, 76, .3); animation: spin 60s linear infinite; }
.orbit::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 16px var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Hero AI animation */
.neural { position: absolute; inset: -8%; width: 116%; height: 116%; }
.hero-pine { position: relative; width: 56%; overflow: visible; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)) drop-shadow(0 0 40px rgba(233, 180, 76, .25)); animation: float 6s ease-in-out infinite; }
.pine-crown { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
.pine-flow path { stroke-dasharray: 2 9; animation: flow 1.1s linear infinite; }
.pine-flow path:nth-child(2) { animation-duration: .9s; }
.pine-flow path:nth-child(3) { animation-duration: 1.3s; }
.pine-nodes circle { fill: #F7F9F6; animation: node 2.4s ease-in-out infinite; }
.pine-nodes circle:nth-child(2) { animation-delay: .6s; }
.pine-nodes circle:nth-child(3) { animation-delay: 1.2s; }
.pine-nodes circle:nth-child(4) { animation-delay: 1.8s; }
.pine-lattice { animation: lattice 4.8s ease-in-out infinite; }
.pine-shine { animation: shine 5.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes flow { to { stroke-dashoffset: -22; } }
@keyframes node { 0%, 70%, 100% { fill: #F7F9F6; } 35% { fill: #6FE3C8; } }
@keyframes lattice { 50% { opacity: .8; } }
@keyframes shine { 0%, 55% { transform: skewX(-18deg) translateX(0); } 100% { transform: skewX(-18deg) translateX(200px); } }

.ai-chip {
  position: absolute; z-index: 2; display: grid; gap: .25rem; padding: .55rem .8rem; border-radius: 12px;
  background: rgba(4, 40, 35, .78); border: 1px solid rgba(233, 180, 76, .28); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: float 7s ease-in-out infinite;
}
.chip-label { display: flex; align-items: center; gap: .45rem; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.chip-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: blink 1.6s ease-in-out infinite; }
.chip-line { display: block; min-width: 17ch; min-height: 1.3em; font: 500 .78rem/1.3 ui-monospace, "SF Mono", Menlo, monospace; color: var(--white); white-space: nowrap; text-align: left; }
.chip-line::after { content: "▍"; color: var(--teal); animation: blink 1s steps(1) infinite; }
.chip-a { top: 6%; inset-inline-start: -6%; }
.chip-b { top: 44%; inset-inline-end: -6%; animation-delay: -2.5s; }
.chip-c { bottom: 4%; inset-inline-start: 2%; animation-delay: -4.5s; }
@keyframes blink { 50% { opacity: .2; } }

/* Sections */
.section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 3.5rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }
.section-head.light p:last-child { color: rgba(247, 249, 246, .72); }

/* About */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.about-grid p { color: var(--muted); }
.about h2 { color: var(--emerald); }
.about-visual { position: relative; }
.about-card {
  border-radius: 24px; padding: 3.5rem 2rem; text-align: center; color: var(--white);
  background: linear-gradient(150deg, var(--emerald-2), var(--emerald) 55%, #04302A);
  box-shadow: 0 30px 60px rgba(6, 63, 54, .25); position: relative; overflow: hidden;
}
.about-card::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%; background: radial-gradient(ellipse, rgba(233, 180, 76, .18), transparent 70%); }
.about-logo { width: 120px; margin: 0 auto 1.2rem; position: relative; }
.about-grid .about-word { font-size: 2.4rem; font-weight: 600; letter-spacing: -.03em; margin: 0; position: relative; color: var(--white); }
.about-word b { color: var(--gold); font-weight: 600; }
.about-tag { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(247, 249, 246, .7) !important; position: relative; }
.about-badge { position: absolute; inset-inline-end: -18px; bottom: -18px; display: flex; align-items: center; gap: .6rem; background: var(--gold); color: var(--charcoal); font-weight: 700; padding: .8rem 1.2rem; border-radius: 14px; box-shadow: var(--shadow); }
.about-badge .dot { width: 22px; height: 2px; background: var(--charcoal); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; padding: 1.5rem 0; border-block: 1px solid var(--line); }
.stats strong { display: block; font-size: 2rem; color: var(--emerald); line-height: 1.1; }
.stats span { font-size: .82rem; color: var(--muted); }

/* Services */
.services h2 { color: var(--emerald); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
  transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(21, 155, 131, .35); }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card a { font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--emerald); }
.card a:hover { color: var(--teal); }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.4rem; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i-emerald { background: var(--emerald); color: var(--gold); }
.i-charcoal { background: var(--charcoal); color: var(--white); }
.i-gold { background: #FCF1D9; color: var(--emerald); border: 1px solid #F1DDB0; }
.i-teal { background: #E2F4F0; color: var(--teal); border: 1px solid #C5E8E0; }

/* Process */
.process { background: var(--emerald); color: var(--white); position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; width: 700px; height: 700px; left: -250px; top: -250px; background: radial-gradient(circle, rgba(21, 155, 131, .25), transparent 65%); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.steps li { padding: 2rem 1.6rem; border-radius: var(--radius); background: rgba(247, 249, 246, .05); border: 1px solid rgba(247, 249, 246, .1); transition: background .25s, border-color .25s; }
.steps li:hover { background: rgba(247, 249, 246, .08); border-color: rgba(233, 180, 76, .4); }
.num { display: block; font-size: 2.4rem; font-weight: 700; color: var(--gold); margin-bottom: 1rem; }
.steps p { color: rgba(247, 249, 246, .7); font-size: .94rem; margin: 0; }

/* Use cases */
.use-cases h2 { color: var(--emerald); }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chip { background: #fff; padding: 1.8rem; transition: background .2s; }
.chip:hover { background: var(--cream); }
.chip h4 { font-size: 1.02rem; color: var(--emerald); margin-bottom: .4rem; position: relative; padding-inline-start: 1.1rem; }
.chip h4::before { content: ""; position: absolute; inset-inline-start: 0; top: .4em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.chip p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Case study */
.case { background: var(--emerald); color: var(--white); position: relative; overflow: hidden; }
.case::before { content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -200px; background: radial-gradient(circle, rgba(233, 180, 76, .16), transparent 65%); }
.case .container { position: relative; }
.case .section-head { max-width: 760px; }
.case-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(247, 249, 246, .12); border: 1px solid rgba(247, 249, 246, .12); border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; }
.case-stats div { background: var(--emerald); padding: 1.6rem; }
.case-stats strong { display: block; font-size: 2.6rem; line-height: 1; color: var(--gold); margin-bottom: .6rem; }
.case-stats strong.bad { color: #F08A6B; }
.case-stats small { font-size: 1rem; opacity: .7; margin-left: 2px; }
.case-stats span { font-size: .88rem; color: rgba(247, 249, 246, .72); }
.case-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.case-card {
  position: relative; display: flex; flex-direction: column; padding: 2rem; border-radius: var(--radius);
  background: rgba(247, 249, 246, .05); border: 1px solid rgba(247, 249, 246, .12);
  transition: transform .25s, border-color .25s, background .25s;
}
.case-card:hover { transform: translateY(-4px); border-color: rgba(233, 180, 76, .5); background: rgba(247, 249, 246, .08); }
.case-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.case-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.case-num { font-size: .8rem; font-weight: 700; letter-spacing: .14em; color: var(--gold); }
.case-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.case-tags li { font-size: .72rem; font-weight: 500; padding: .25em .7em; border-radius: 999px; border: 1px solid rgba(247, 249, 246, .2); color: rgba(247, 249, 246, .8); }
.case-card h3 { font-size: 1.45rem; line-height: 1.2; color: var(--white); margin-bottom: .8rem; }
.case-card p { color: rgba(247, 249, 246, .72); font-size: .95rem; }
.case-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.2rem 0; margin: .4rem 0 1.2rem; border-block: 1px solid rgba(247, 249, 246, .12); }
.case-mini strong { display: block; font-size: 1.8rem; line-height: 1; color: var(--gold); margin-bottom: .4rem; }
.case-mini strong.bad { color: #F08A6B; }
.case-mini small { font-size: .8rem; opacity: .7; }
.case-mini span { font-size: .78rem; color: rgba(247, 249, 246, .65); }
.case-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: auto 0 0; font-size: .82rem !important; }
.case-more { color: var(--gold); font-weight: 600; white-space: nowrap; }
.case-card:hover .case-more span { display: inline-block; transform: translateX(3px); transition: transform .2s; }
.case-card-next { border-style: dashed; border-color: rgba(233, 180, 76, .4); background: transparent; justify-content: center; align-items: flex-start; }
.case-card-next .case-num { margin-bottom: 1.2rem; color: rgba(247, 249, 246, .4); }
.case-card-next .btn { margin-top: .6rem; }
.case-takeaway { border-inline-start: 3px solid var(--gold); padding-inline-start: 1rem; color: var(--white); font-size: .98rem; margin-bottom: 1.6rem; }

/* Case study page */
.cs-page { background: #fff; }
.cs-hero { padding-bottom: 80px; }
.cs-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.cs-hero .lead { max-width: none; }
.cs-narrow { max-width: 960px; }
.cs-flush { padding: 0; margin: 0 auto 2rem; }
.cs-back { display: inline-block; color: rgba(247, 249, 246, .7); text-decoration: none; font-size: .88rem; margin-bottom: 1.8rem; }
.cs-back:hover { color: var(--gold); }
.cs-meta { list-style: none; padding: 0; margin: 1.6rem 0 2.6rem; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(247, 249, 246, .6); }
.cs-hero-stats { margin-bottom: 0; position: relative; }
.cs-hero-stats div { background: rgba(4, 48, 42, .85); }
.cs-section { padding: 90px 0; }
.cs-alt { background: var(--cream); }
.cs-section h2 { color: var(--emerald); }
.cs-section .cs-narrow > p:not(.eyebrow) { color: var(--muted); font-size: 1.03rem; }
.cs-takeaway { color: var(--charcoal) !important; font-weight: 500; }

.cs-cats, .cs-score { display: grid; gap: 1rem; margin-top: 2rem; }
.cs-cat { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; font-size: .93rem; }
.cs-cat b { font-variant-numeric: tabular-nums; color: var(--emerald); }
.cs-cat i { grid-column: 1 / -1; display: flex; height: 10px; border-radius: 99px; background: #E9E6DC; overflow: hidden; }
.cs-cat em { width: var(--w); }
.ok { --c: var(--teal); } .part { --c: var(--gold); } .fail { --c: #D2644A; }
.cs-cat em, .cs-legend span { background: var(--c); }
.cs-legend { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .82rem; color: var(--muted); }
.cs-legend span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .5rem; vertical-align: -1px; }

.cs-versus { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.cs-vs { border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); background: #fff; border-top: 4px solid var(--c); }
.cs-vs.good { --c: var(--teal); } .cs-vs.bad { --c: #D2644A; }
.cs-vs-label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cs-vs strong { display: block; font-size: 3.2rem; line-height: 1; color: var(--c); margin-bottom: 1rem; }
.cs-vs p { color: var(--muted); font-size: .95rem; }
.cs-vs blockquote { margin: 0 0 1rem; font-style: italic; color: var(--charcoal); border-inline-start: 3px solid var(--c); padding-inline-start: 1rem; }
.cs-vs .small { font-size: .82rem; margin: 1rem 0 0; }
.cs-bill { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.cs-bill td { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.cs-bill td:last-child { text-align: end; }
.cs-bill .total td { font-weight: 700; color: var(--emerald); border-bottom: 0; }

.cs-convos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.cs-convo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.cs-convo h3 { color: var(--emerald); margin: .8rem 0 1rem; }
.cs-convo > p { color: var(--muted); font-size: .92rem; margin: 0; }
.chat { display: grid; gap: .55rem; margin-bottom: 1.1rem; }
.chat p { margin: 0; font-size: .88rem; padding: .7rem .9rem; border-radius: 12px; max-width: 92%; }
.chat .u { background: var(--emerald); color: var(--white); justify-self: end; border-end-end-radius: 4px; }
.chat .u small { opacity: .6; margin-inline-start: .3rem; }
.chat .a { background: var(--cream); border: 1px solid var(--line); justify-self: start; border-end-start-radius: 4px; }
.chat .gap, .chat .note { background: none; padding: 0; justify-self: center; font-size: .75rem; color: var(--muted); letter-spacing: .08em; }
.chat .note { justify-self: end; letter-spacing: 0; font-style: italic; }
.chat .btnish { justify-self: start; border: 1px dashed var(--teal); color: var(--teal); font-size: .8rem; padding: .4rem .8rem; border-radius: 999px; }
.tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3em .7em; border-radius: 6px; white-space: nowrap; }
.t-ok { background: #E2F4F0; color: #0E6E5D; }
.t-part { background: #FCF1D9; color: #8A5D12; }
.t-fail { background: #FBE4DE; color: #A8402A; }

.cs-pipe { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; counter-reset: s; }
.cs-pipe li { position: relative; padding: 1.1rem 1rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c); font-size: .82rem; }
.cs-pipe li::before { counter-increment: s; content: "0" counter(s); display: block; font-weight: 700; color: var(--c); margin-bottom: .4rem; }
.cs-pipe b { display: block; color: var(--charcoal); margin-bottom: .3rem; font-size: .9rem; }
.cs-pipe span { color: var(--muted); }

.cs-langs { list-style: none; padding: 0; margin: 2rem 0 1.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; }
.cs-langs li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.cs-langs span { color: var(--teal); text-align: end; }
.cs-langs .warn span { color: #8A5D12; }

.cs-tests { display: grid; gap: .8rem; }
.cs-test { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cs-test summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem; padding: 1.1rem 1.4rem; font-weight: 600; color: var(--emerald); }
.cs-test summary::-webkit-details-marker { display: none; }
.cs-test summary::after { content: "+"; font-size: 1.3rem; color: var(--gold); margin-inline-start: auto; }
.cs-test[open] summary::after { content: "–"; }
.cs-test summary small { font-weight: 500; color: var(--muted); font-size: .82rem; }
.cs-table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.cs-test table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .85rem; }
.cs-test th { text-align: start; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: .8rem; background: var(--cream); }
.cs-test td { padding: .8rem; border-top: 1px solid var(--line); vertical-align: top; }
.cs-test td:first-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.cs-test .mode { font-size: .72rem; font-weight: 600; color: var(--teal); white-space: nowrap; }
.cs-fine { font-size: .82rem !important; color: var(--muted); max-width: 960px; margin: 1.6rem auto 0; }

.cs-findings { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
.cs-findings article { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); border-inline-start: 4px solid #D2644A; }
.cs-findings article.good { border-inline-start-color: var(--teal); background: #F2FAF8; }
.cs-findings h3 { color: var(--emerald); }
.cs-findings p { color: var(--muted); font-size: .92rem; margin: 0; }

.cs-recs, .cs-try { padding: 0; margin: 2rem 0 0; list-style: none; counter-reset: r; display: grid; gap: .9rem; }
.cs-recs li, .cs-try li { counter-increment: r; position: relative; padding-block: 1.1rem; padding-inline: 4rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: .95rem; }
.cs-recs li::before, .cs-try li::before { content: counter(r); position: absolute; inset-inline-start: 1.1rem; top: 1rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--emerald); color: var(--gold); font-weight: 700; font-size: .85rem; }
.cs-recs b, .cs-try b { color: var(--charcoal); }
.cs-try li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; }
.cs-try span { color: var(--teal); }
.cs-cta { padding: 100px 0; }

@media (max-width: 980px) {
  .cs-pipe { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .cs-versus, .cs-convos, .cs-findings, .cs-langs { grid-template-columns: 1fr; }
  .cs-pipe { grid-template-columns: repeat(2, 1fr); }
  .cs-section { padding: 70px 0; }
  .cs-recs li, .cs-try li { padding-inline-start: 3.6rem; }
}

/* Story */
.story { background: var(--cream); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.story h2 { color: var(--emerald); }
.story p { color: var(--muted); }
.story-logo { background: #fff; border-radius: 24px; padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.values { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.values li { padding: .45em 1em; border-radius: 999px; border: 1px solid var(--gold); color: var(--emerald); font-size: .85rem; font-weight: 500; background: #fff; }

/* Contact */
.contact { background: linear-gradient(160deg, var(--charcoal), #0E1D1F 60%, var(--emerald)); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; color: rgba(247, 249, 246, .85); }
.contact-list li { display: flex; align-items: center; gap: .8rem; }
.contact-list svg { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold); }
.form { background: var(--white); color: var(--charcoal); border-radius: 20px; padding: 2.2rem; display: grid; gap: 1.1rem; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font: 400 .95rem Inter, sans-serif; color: var(--charcoal); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: .8em .9em; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(21, 155, 131, .15); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form-note { margin: 0; font-size: .88rem; min-height: 1.2em; color: var(--teal); }
.form-note.error { color: #B3402F; }

/* Footer */
.footer { background: #04302A; color: rgba(247, 249, 246, .7); padding: 2.5rem 0; font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.footer .brand { font-size: 1.2rem; }
.footer .brand img { height: 32px; }
.footer .tagline { margin: 0; letter-spacing: .15em; text-transform: uppercase; font-size: .72rem; }
.footer nav { display: flex; gap: 1.5rem; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--gold); }
.footer .copy { margin: 0; width: 100%; border-top: 1px solid rgba(247, 249, 246, .1); padding-top: 1.2rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-pine, .pine-crown, .pine-flow path, .pine-nodes circle, .pine-lattice, .pine-shine, .orbit, .ai-chip, .chip-label i, .chip-line::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* Language switch & Arabic (RTL) */
.lang-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(247, 249, 246, .25); border-radius: 999px; }
.nav-links .lang-switch a { padding: .2em .65em; border-radius: 999px; font-size: .78rem; font-weight: 600; color: rgba(247, 249, 246, .75); text-decoration: none; }
.nav-links .lang-switch a:hover { color: var(--gold); }
.nav-links .lang-switch a[aria-current="page"] { background: var(--gold); color: var(--charcoal); }
html[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", Inter, system-ui, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.35; }
[dir="rtl"] .eyebrow, [dir="rtl"] .tagline, [dir="rtl"] .about-tag, [dir="rtl"] .chip-label, [dir="rtl"] .case-num, [dir="rtl"] .project-step { letter-spacing: 0; }
[dir="rtl"] .eyebrow { font-size: .85rem; }
[dir="rtl"] .cs-meta, [dir="rtl"] .cs-vs-label, [dir="rtl"] .cs-test th, [dir="rtl"] .case-meta, [dir="rtl"] .tag { letter-spacing: 0; }
[dir="rtl"] .cs-test table { direction: rtl; }
[dir="rtl"] .case-stats strong, [dir="rtl"] .case-mini strong, [dir="rtl"] .cs-vs strong, [dir="rtl"] .cs-cat b { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .case-stats strong, [dir="rtl"] .case-mini strong, [dir="rtl"] .cs-vs strong { text-align: right; }
[dir="rtl"] .btn:hover span { transform: translateX(-3px); }
[dir="rtl"] .brand, [dir="rtl"] .about-word { direction: ltr; }
[dir="rtl"] .form input[type="email"] { direction: ltr; text-align: right; }

/* Responsive */
@media (max-width: 980px) {
  .cards, .chips { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .case-stats { grid-template-columns: repeat(2, 1fr); }
  .case-list { grid-template-columns: 1fr; }
  .about-visual { max-width: 460px; }
}
@media (max-width: 1100px) {
  .nav-links { gap: 1.4rem; }
  .chip-b { inset-inline-end: 0; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: flex-start; gap: 1.2rem;
    padding: 1.5rem 16px 2rem; background: rgba(6, 63, 54, .98);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: transform .3s, opacity .3s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { font-size: 1.05rem; }
  .nav.menu-open { background: rgba(6, 63, 54, .98); }
  .hero { padding: 120px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 1rem; }
  .hero-art { max-width: 340px; margin: 0 auto; order: 2; }
}
@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .cards, .chips, .steps, .case-stats { grid-template-columns: 1fr; }
  .case-card { padding: 1.6rem; }
  .case-mini strong { font-size: 1.5rem; }
  .form .row { grid-template-columns: 1fr; }
  .form { padding: 1.6rem; }
  .about-badge { inset-inline-end: 12px; bottom: -16px; }
  .chip-a { inset-inline-start: -2%; }
  .chip-b { top: auto; bottom: 0; inset-inline-end: -2%; }
  .chip-c { display: none; }
  .chip-a { top: 0; }
  .ai-chip { padding: .45rem .65rem; }
  .chip-line { font-size: .7rem; min-width: 15ch; }
  .stats strong { font-size: 1.6rem; }
  .footer nav { flex-wrap: wrap; gap: .8rem 1.2rem; }
}
