/* ─────────────────────────────────────────────────────────────
   T-Shell — landing styles
   Single dark theme, deliberately committed to: this is a studio
   page, not a document, and a consistent look reads as intent.
   No external fonts or assets — the page must render fully on a
   cold connection from a phone in Da Nang.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg:        #08090c;
  --bg-alt:    #0b0d12;
  --surface:   #10131a;
  --surface-2: #141822;
  --line:      rgba(255,255,255,.09);
  --line-soft: rgba(255,255,255,.05);
  --text:      #e9ebef;
  --text-dim:  #b3bac6;
  --muted:     #838c9b;
  --accent:    #5ee9c0;
  --accent-dim:#2c9d81;
  --glow:      rgba(94,233,192,.10);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --wrap: 1140px;
  --r: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #04120e;
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Nav ──────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,9,12,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in {
  display: flex; align-items: center; gap: 28px;
  height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 650; letter-spacing: -.01em;
  font-size: 17px; flex: none;
}
.brand-mark {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--accent), var(--accent-dim));
  color: #04120e;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: -.5px;
  box-shadow: 0 0 0 1px rgba(94,233,192,.25), 0 6px 18px -8px var(--accent);
}
.brand-mark.small { width: 22px; height: 22px; font-size: 10px; border-radius: 6px; }

.nav-links {
  display: flex; gap: 26px; margin-left: auto;
  font-size: 15px;
}
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  transition: color .16s ease;
}
.nav-links a:hover { color: var(--text); }

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px;
  background: var(--accent); color: #04120e;
  font-weight: 600; font-size: 15px;
  border-radius: 10px; text-decoration: none;
  border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 8px 26px -12px var(--accent);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -12px var(--accent); }
.btn-sm { padding: 8px 15px; font-size: 14px; border-radius: 8px; flex: none; }
.btn-lg { padding: 16px 34px; font-size: 18px; font-family: var(--mono); letter-spacing: -.02em; }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line); box-shadow: none;
}
.btn-ghost:hover { background: rgba(255,255,255,.04); box-shadow: none; }

/* ── Type ─────────────────────────────────────────────────── */

.eyebrow, .kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.kicker::before { content: "// "; opacity: .55; }

h1 {
  margin: 0 0 22px;
  /* Sized for the half-width hero column, not the full page — the ceiling
     dropped from 3.6rem when the image took the other half. */
  font-size: clamp(2.05rem, 3.6vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 640;
}
.h2 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 620;
}
h3 { letter-spacing: -.015em; }

.lede {
  margin: 0 0 34px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 62ch;
  line-height: 1.6;
}
.section-lede {
  margin: 0 0 46px;
  color: var(--muted);
  max-width: 64ch;
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(74px, 11vw, 130px) 0 clamp(60px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -40% 0 auto -10%;
  width: 70%; height: 620px;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }

/* Full width, above the split — in the narrow copy column this one-liner wrapped
   onto a second line and read as a sentence instead of a label. */
.hero .eyebrow { margin-bottom: 26px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 52px;
  align-items: center;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-shot {
  margin: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  /* The render is already dark and teal-lit, so it needs separating from the
     page rather than lighting: a deep shadow to lift it off the background and
     a hairline of accent so its edge reads as deliberate. */
  box-shadow:
    0 36px 90px -34px rgba(0,0,0,.95),
    0 0 0 1px rgba(94,233,192,.09),
    0 0 70px -30px var(--glow);
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
/* The image's own top-left is its brightest area and sits nearest the
   headline; this fades that corner back into the page so the two do not
   compete for the same eye. */
.hero-shot::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(8,9,12,.42), transparent 46%);
  pointer-events: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 22px;
  margin: 62px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}
.stats div { margin: 0; }
.stats dt {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--accent);
  letter-spacing: -.03em;
}
.stats dd {
  margin: 5px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

/* ── Bands ────────────────────────────────────────────────── */

.band { padding: clamp(64px, 8.5vw, 104px) 0; }
.band-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line-soft);
}

.grid { display: grid; gap: 18px; }
.cards  { grid-template-columns: repeat(3, minmax(0,1fr)); }
.work   { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.engage { grid-template-columns: repeat(3, minmax(0,1fr)); }

/* ── Icons ────────────────────────────────────────────────── */

/* The sprite is markup, not a picture: it must occupy no space and stay out of
   the accessibility tree, while remaining referenceable by <use>. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  display: block;
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 15px; height: 15px; stroke-width: 1.7; }

.icon-box {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  color: var(--accent);
  background: linear-gradient(158deg, rgba(94,233,192,.14), rgba(94,233,192,.02));
  border: 1px solid rgba(94,233,192,.2);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover .icon-box {
  border-color: rgba(94,233,192,.46);
  box-shadow: 0 0 26px -12px var(--accent);
  transform: translateY(-1px);
}

/* ── Service cards ────────────────────────────────────────── */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 26px 24px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.card:hover {
  border-color: rgba(94,233,192,.34);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-dim);
  letter-spacing: .08em;
}
.card h3 {
  margin: 0 0 12px;
  font-size: 1.19rem;
  line-height: 1.28;
  font-weight: 620;
}
.card p {
  margin: 0 0 20px;
  color: var(--text-dim);
  font-size: 15.2px;
  line-height: 1.62;
}
.card code {
  font-family: var(--mono);
  font-size: .88em;
  background: rgba(94,233,192,.09);
  color: var(--accent);
  padding: 1px 5px;
  border-radius: 4px;
}
.card em { color: var(--text); font-style: italic; }

/* Seven cards in a three-column grid leave a single orphan on the last row.
   Rather than pad the section to eight, the seventh spans the full width and
   splits internally — the odd count becomes deliberate, and the newest thing
   we offer gets the emphasis instead of the leftover slot. */
.card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
  gap: 28px 46px;
  align-items: start;
}
.card-wide .card-head { margin-bottom: 18px; }
.card-wide h3 { margin-bottom: 0; font-size: 1.35rem; }
.card-wide-note {
  margin: 16px 0 0 !important;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.8px !important;
  color: var(--muted) !important;
}
.card-wide-body p:last-of-type { margin-bottom: 20px; }

.chips {
  display: flex; flex-wrap: wrap; gap: 7px;
  list-style: none; margin: 0; padding: 0;
}
.chips li {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* ── Work cards ───────────────────────────────────────────── */

.wcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px;
  display: flex; flex-direction: column;
}
.wcard header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.wcard h3 { margin: 0; font-size: 1.28rem; font-weight: 620; }
.tag {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  background: rgba(94,233,192,.08);
  border: 1px solid rgba(94,233,192,.2);
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}
/* Figures pulled out of the prose. A technical buyer scans numbers before
   sentences, and every one of these is sourced from the system it describes —
   there are no outcome metrics here we cannot point at. */
.kpis {
  display: flex; flex-wrap: wrap; gap: 12px 30px;
  list-style: none; margin: 0 0 18px; padding: 0;
}
.kpis li { display: grid; gap: 1px; }
.kpis b {
  font-family: var(--mono);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--accent);
}
.kpis span { font-size: 12px; color: var(--muted); line-height: 1.35; }

.wcard > p {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 15.4px;
  line-height: 1.63;
}
.facts {
  list-style: none; margin: auto 0 0; padding: 0;
  display: grid; gap: 9px;
}
.facts li {
  position: relative;
  padding-left: 22px;
  font-size: 14.4px;
  color: var(--muted);
  line-height: 1.5;
}
.facts li::before {
  content: "▸";
  position: absolute; left: 4px; top: -1px;
  color: var(--accent-dim);
  font-size: 12px;
}

.also {
  margin: 34px 0 0;
  padding: 22px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--r);
  color: var(--muted);
  font-size: 14.8px;
  line-height: 1.75;
}

/* ── Process ──────────────────────────────────────────────── */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px 44px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 26px 0 26px 66px;
  border-top: 1px solid var(--line-soft);
}
.steps li::before {
  content: "0" counter(step);
  position: absolute; left: 0; top: 26px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  border: 1px solid rgba(94,233,192,.25);
  border-radius: 8px;
  padding: 5px 9px;
  line-height: 1;
}
.steps h3 { margin: 0 0 9px; font-size: 1.12rem; font-weight: 620; }
.steps p  { margin: 0; color: var(--muted); font-size: 15.2px; line-height: 1.65; }

/* ── Stack ────────────────────────────────────────────────── */

.stack-band { padding-block: clamp(52px, 6vw, 76px); }
.stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 26px 40px;
}
.stack h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.stack p {
  margin: 0;
  color: var(--muted);
  font-size: 14.8px;
  line-height: 1.6;
}

/* ── Engagement ───────────────────────────────────────────── */

.ecard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px 26px;
  display: flex; flex-direction: column;
}
.ecard.featured {
  border-color: rgba(94,233,192,.32);
  background: linear-gradient(180deg, rgba(94,233,192,.06), transparent 55%), var(--surface);
}
.ecard h3 { margin: 0 0 12px; font-size: 1.18rem; font-weight: 620; }
.ecard p  { margin: 0 0 16px; color: var(--text-dim); font-size: 15.2px; line-height: 1.62; }
.ecard-when {
  margin: auto 0 0 !important;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.6px !important;
  color: var(--muted) !important;
}
.ecard-when span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-right: 6px;
}

/* ── CTA ──────────────────────────────────────────────────── */

.cta {
  position: relative;
  padding: clamp(72px, 9vw, 112px) 0;
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: auto -20% -60% 20%;
  height: 520px;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
  pointer-events: none;
}
.cta-in { position: relative; text-align: center; }
.cta h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: -.03em;
  font-weight: 640;
}
.cta p {
  margin: 0 auto 32px;
  max-width: 58ch;
  color: var(--text-dim);
}
.cta-note {
  margin: 20px auto 0 !important;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted) !important;
}

/* ── Footer ───────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-alt);
  padding: 28px 0;
  font-size: 14.5px;
}
.foot-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.foot-in > div:first-child {
  display: inline-flex; align-items: center; gap: 9px;
}
.muted { color: var(--muted); }
.foot-links { display: flex; gap: 22px; }
.foot-links a {
  color: var(--muted); text-decoration: none;
  transition: color .16s ease;
}
.foot-links a:hover { color: var(--accent); }

/* ── Legal pages ──────────────────────────────────────────── */

.doc { padding: clamp(56px, 7vw, 88px) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { max-width: none; font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.doc .updated {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  margin: 0 0 40px;
}
.doc h2 {
  margin: 40px 0 12px;
  font-size: 1.2rem; font-weight: 620; letter-spacing: -.015em;
}
.doc p, .doc li { color: var(--text-dim); font-size: 16px; line-height: 1.7; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent); }

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Matches the portrait render swapped in by the <picture> media query — the
     ratio has to move with the file, or object-fit crops the new image back
     into the old shape. */
  .hero-shot img { aspect-ratio: 4 / 5; }
  .stats { margin-top: 48px; }
  .cards, .engage, .stack { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .work { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .nav-links { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px 18px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .cards, .engage, .stack { grid-template-columns: 1fr; }
  /* Stacked, the two halves need a real gap — at gap 0 the standalone-design
     note ran straight into the first paragraph and read as one block. */
  .card-wide { grid-template-columns: 1fr; gap: 22px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .btn-lg { width: 100%; font-size: 16px; padding: 15px 20px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .wcard header { flex-direction: column; align-items: flex-start; gap: 8px; }
}
