/* TNT Studio — 2026 redesign
   Dark, editorial. Self-contained (no build step).
   Polished against the impeccable design detector. */

:root {
  --bg:        #08090d;
  --bg-2:      #0c0e14;
  --surface:   #101219;
  --surface-2: #151824;
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.16);
  --text:      #f0f2f7;
  --muted:     #aab1c0;
  --muted-2:   #8b93a4;
  --red:       #ff5560;      /* spark only: primary CTA + heart */
  --red-btn:   #cc1f2b;      /* accessible CTA background */
  --blue:      #3e9bce;      /* lead accent: refined deep azure (not AI cyan) */
  --blue-2:    #7ec4e8;      /* lighter lead accent for small text/labels */
  --radius:    16px;
  --maxw:      1280px;
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --font:      'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display:   'Schibsted Grotesk', 'Hanken Grotesk', sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

/* Soft ambient wash (single, restrained — no tiled grid) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(940px 580px at 82% -8%, rgba(62, 155, 206, 0.12), transparent 62%),
    radial-gradient(700px 540px at 6% 2%, rgba(62, 155, 206, 0.05), transparent 58%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* Section kicker: a quiet caption, not a tracked-caps pill */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--blue-2);
  margin-bottom: 4px;
}
.kicker .idx { color: var(--muted-2); }
.kicker .bar { width: 22px; height: 1px; background: var(--border-2); }

.section { padding: 104px 0; position: relative; }
.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(31px, 4.4vw, 47px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 14px 0 14px;
}
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.accent { color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #fff;
  background: var(--red-btn);
  border-color: rgba(255, 255, 255, 0.14);
}
.btn-primary:hover { transform: translateY(-2px); background: #d92533; }
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 9, 13, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(8, 9, 13, 0.86); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; font-size: 18px; }
.brand svg { width: 30px; height: 30px; }
.brand .studio { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 60px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 40px; align-items: center;
}
.hero-copy { max-width: 620px; }
.hero .breadcrumb {
  font-family: var(--mono); font-size: 13px; color: var(--muted-2);
  letter-spacing: 0.01em; margin-bottom: 22px;
}
.hero .breadcrumb b { color: var(--blue-2); font-weight: 500; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 5.3vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 22px;
}
.hero .lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.stats {
  display: flex; flex-wrap: wrap; gap: 40px;
  margin-top: 50px; padding-top: 34px;
  border-top: 1px solid var(--border);
}
.stat .num { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.stat .num .u { color: var(--blue); }
.stat .label { color: var(--muted); font-size: 13.5px; margin-top: 3px; letter-spacing: 0.01em; }

/* ---------- Hero visual (capability constellation) ---------- */
.hero-visual { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1 / 1; margin: 0 0 0 auto; }
.hero-visual .orb {
  position: absolute; inset: 15%; border-radius: 50%;
  background: radial-gradient(circle at 50% 44%, rgba(62,155,206,.36), rgba(62,155,206,.12) 48%, transparent 70%);
  filter: blur(42px);
  animation: orbPulse 7s var(--ease) infinite;
}
@keyframes orbPulse { 0%,100% { transform: scale(.92); opacity: .68; } 50% { transform: scale(1.05); opacity: .9; } }

.hero-visual .rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-visual .rings circle { stroke: rgba(255,255,255,.09); stroke-width: 1; }
.hero-visual .rings .spin {
  stroke: rgba(123,214,246,.28); stroke-dasharray: 2 10;
  transform-origin: 50% 50%; animation: spin 46s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-visual .net { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-visual .net .lines line { stroke: url(#netgrad); stroke-width: 1.2; opacity: .4; }
.hero-visual .net .nodes circle {
  fill: #dce9f2; transform-box: fill-box; transform-origin: center;
  animation: nodePulse 3.2s ease-in-out infinite;
}
@keyframes nodePulse { 0%,100% { transform: scale(.7); opacity: .5; } 50% { transform: scale(1.2); opacity: .95; } }

.hero-visual .core {
  position: absolute; top: 50%; left: 50%;
  width: 104px; height: 104px; border-radius: 50%; z-index: 2;
  animation: coreFloat 6s ease-in-out infinite;
}
/* sun corona — soft lighting via gradient, not a box-shadow halo */
.hero-visual .core::before {
  content: ""; position: absolute; inset: -54%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(62,155,206,.46), rgba(62,155,206,.16) 48%, transparent 72%);
  filter: blur(18px);
  animation: orbPulse 6s var(--ease) infinite;
}
.hero-visual .core svg {
  width: 104px; height: 104px; border-radius: 50%; display: block; position: relative;
  border: 1px solid rgba(255,255,255,.22);
}
@keyframes coreFloat { 0%,100% { transform: translate(-50%,-53%); } 50% { transform: translate(-50%,-47%); } }

.hpill {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em; color: var(--text);
  padding: 8px 13px; border-radius: 999px; white-space: nowrap;
  background: rgba(18,20,28,.86); border: 1px solid var(--border-2);
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.8);
  animation: pillFloat var(--fd, 7s) ease-in-out infinite;
}
.hpill i { width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.hpill.p1 { top: 7%;  left: -4%;  --fd: 6.4s; }
.hpill.p2 { top: 26%; right: -8%; --fd: 7.6s; }
.hpill.p3 { bottom: 24%; left: -8%; --fd: 8.1s; }
.hpill.p4 { bottom: 7%; right: -2%; --fd: 6.9s; }
@keyframes pillFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Cards / services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-2); }

.card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.svc-ico { color: var(--red-2); flex: none; }
.svc-ico svg { width: 26px; height: 26px; display: block; }
.card h3 { font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag {
  font-size: 12px; font-weight: 500; color: var(--muted);
  padding: 4px 10px; border-radius: 7px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
}

/* ---------- Selected work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work-card {
  display: flex; flex-direction: column;
  padding: 32px 32px 34px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .35s;
}
.work-card:hover { transform: translateY(-5px); border-color: var(--border-2); }
.work-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.work-cat { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--blue-2); }
.work-arrow { width: 20px; height: 20px; color: var(--muted-2); transition: color .25s, transform .25s var(--ease); flex: none; }
.work-card:hover .work-arrow { color: var(--text); transform: translate(2px, -2px); }
.work-card h3 { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 9px; }
.work-card p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Testimonial ---------- */
.quote {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 52px 54px;
  position: relative;
  max-width: 900px; margin: 0 auto;
}
.quote .mark { font-size: 84px; line-height: .6; color: var(--blue); font-family: Georgia, serif; opacity: .5; height: 40px; }
.quote blockquote {
  margin: 0 0 30px; font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; color: #e4e7ef;
}
.quote .by { display: flex; align-items: center; gap: 15px; }
.quote .avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border-2);
}
.quote .who .n { font-weight: 700; }
.quote .who .t { color: var(--muted); font-size: 14px; }

/* ---------- OSS / TNTSearch ---------- */
.oss {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 54px;
  display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.oss h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.025em; margin: 14px 0 14px; }
.oss p { color: var(--muted); font-size: 17.5px; margin: 0 0 28px; max-width: 460px; }
.oss .terminal {
  background: #06070a; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
}
.oss .term-bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1){ background:#ff5f57; } .term-bar i:nth-child(2){ background:#febc2e; } .term-bar i:nth-child(3){ background:#28c840; }
.oss .term-body { padding: 20px 20px 24px; font-family: var(--mono); font-size: 13.5px; line-height: 1.9; }
.term-body .c { color: var(--muted-2); }
.term-body .p { color: var(--blue-2); }
.term-body .g { color: #6ee7a0; }
.dl-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-weight: 700; font-size: 15px;
  padding: 9px 15px; border-radius: 10px; margin-bottom: 6px;
  background: rgba(62,155,206,.14); border: 1px solid rgba(62,155,206,.40); color: var(--blue-2);
}

/* ---------- Articles ---------- */
.article-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s;
}
.article-card:hover { transform: translateY(-5px); border-color: var(--border-2); }
.article-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.article-card:hover .thumb img { transform: scale(1.04); }
.article-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.article-card .meta { color: var(--blue-2); font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; margin-bottom: 11px; font-family: var(--mono); }
.article-card h3 { font-family: var(--display); font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.article-card:hover h3 { color: #fff; }
.articles-foot { text-align: center; margin-top: 44px; }

/* ---------- CTA ---------- */
.cta-band { text-align: center; max-width: 760px; margin: 0 auto; }
.cta-band h2 { font-family: var(--display); font-size: clamp(32px, 5vw, 54px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 16px 0 18px; }
.cta-band p { color: var(--muted); font-size: 19px; margin: 0 auto 34px; max-width: 540px; }
.cta-mail {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--text);
  padding: 15px 26px; border-radius: 14px;
  border: 1px solid var(--border-2); background: rgba(255,255,255,.03);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.cta-mail:hover { border-color: var(--blue); background: rgba(62,155,206,.10); transform: translateY(-2px); }
.socials { display: flex; justify-content: center; gap: 14px; margin-top: 30px; }
.socials a {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  color: var(--muted); border: 1px solid var(--border); background: rgba(255,255,255,.02);
  transition: color .2s, border-color .2s, transform .2s var(--ease), background .2s;
}
.socials a:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-2px); background: rgba(255,255,255,.05); }
.socials svg { width: 19px; height: 19px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; background: var(--bg-2); }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 34px; }
.footer .brand { font-size: 17px; }
.footer .made { color: var(--muted); font-size: 14.5px; }
.footer .made .heart { color: var(--red); }
.legal { color: var(--muted-2); font-size: 12.5px; line-height: 1.85; border-top: 1px solid var(--border); padding-top: 26px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .oss { grid-template-columns: 1fr; padding: 40px 30px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 72px; left: 0; right: 0;
    padding: 22px 24px 26px; background: #06070a;
    border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px -20px rgba(0,0,0,.9);
  }
  .section { padding: 76px 0; }
  .quote { padding: 38px 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { gap: 28px; }
  .nav-cta .btn-primary { display: none; }
  .oss { padding: 32px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .spin, .nodes circle, .core, .core::before, .hpill { animation: none !important; }
}
