@import url("tokens.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--deep-space);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout primitives ---------- */

.section {
  padding: clamp(72px, 9vw, 140px) clamp(24px, 6vw, 96px);
}

.section-intro {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 68px);
}

.section-intro h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: 18px;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-muted);
  max-width: 62ch;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(24px, 6vw, 96px);
  background: rgba(247, 243, 238, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(21, 34, 56, 0.08);
}

.brand img {
  width: 190px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.nav a:hover {
  color: var(--technavity-blue);
  border-bottom-color: var(--ember);
}

.nav .nav-cta {
  background: var(--deep-space);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  transition: background 0.18s ease;
}

.nav .nav-cta:hover {
  background: var(--technavity-blue);
  color: #fff;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ember);
  color: #23150f;
}

.btn-primary:hover {
  background: var(--ember-deep);
  color: #fff;
}

.btn-ghost {
  border: 1.5px solid rgba(21, 34, 56, 0.28);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--technavity-blue);
  color: var(--technavity-blue);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.7fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(36px, 5vw, 72px) clamp(24px, 6vw, 96px) clamp(40px, 6vw, 80px);
}

.hero-copy {
  max-width: none;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  margin-bottom: 22px;
  max-width: 12ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--ember);
}

.hero-support {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--ink-muted);
  max-width: 54ch;
  margin-bottom: 38px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-index {
  padding-top: 8px;
  border-top: 3px solid var(--ember);
}

.hero-index-kicker {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin: 16px 0 22px;
}

.hero-index ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: practice;
}

.hero-index li {
  counter-increment: practice;
  border-top: 1px solid rgba(21, 34, 56, 0.1);
}

.hero-index a {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 8px;
  align-items: baseline;
  text-decoration: none;
  padding: 11px 0;
  font-weight: 500;
  font-size: 0.98rem;
}

.hero-index a::before {
  content: counter(practice, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ember);
}

.hero-index a:hover {
  color: var(--technavity-blue);
}

.services {
  padding-top: clamp(48px, 6vw, 88px);
}

/* ---------- Services ---------- */

.services {
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(21, 34, 56, 0.09);
  border: 1px solid rgba(21, 34, 56, 0.09);
}

.service {
  background: var(--paper);
  padding: clamp(28px, 3vw, 44px);
  transition: background 0.2s ease;
}

.service:hover {
  background: var(--sand);
}

.service-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ember);
  display: block;
  margin-bottom: 18px;
}

.service h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* ---------- Approach ---------- */

.approach {
  background: var(--deep-space);
  color: var(--ink-inverse);
}

.approach .eyebrow {
  color: var(--ember);
}

.approach .lede {
  color: var(--ink-inverse-muted);
}

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 3vw, 48px);
}

.pillars li {
  border-top: 2px solid var(--ember);
  padding-top: 22px;
}

.pillars strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 10px;
}

.pillars span {
  color: var(--ink-inverse-muted);
  font-size: 0.98rem;
}

/* ---------- Culture ---------- */

.culture {
  background: var(--sand);
}

.culture-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.culture-inner .section-intro {
  margin-bottom: 0;
}

.film {
  margin: 0;
}

.film-frame {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--technavity-blue), var(--deep-space));
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: clamp(22px, 3vw, 36px);
  position: relative;
  overflow: hidden;
}

.film-frame::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 12px solid rgba(255, 106, 61, 0.5);
  right: -70px;
  top: -90px;
}

.film-badge {
  position: absolute;
  top: clamp(18px, 2.4vw, 28px);
  left: clamp(22px, 3vw, 36px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ember);
  color: #23150f;
  padding: 6px 14px;
  border-radius: 999px;
}

.film-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  line-height: 1.15;
  position: relative;
}

.film-note {
  color: var(--ink-inverse-muted);
  font-size: 0.95rem;
  position: relative;
}

.film video {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.film figcaption {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.values li {
  background: var(--paper);
  border-radius: 12px;
  padding: clamp(24px, 2.6vw, 34px);
}

.values strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  display: block;
  margin-bottom: 10px;
}

.values span {
  color: var(--ink-muted);
  font-size: 0.97rem;
}

/* ---------- Careers ---------- */

.careers {
  background: var(--paper);
}

.roles {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  border-top: 1px solid rgba(21, 34, 56, 0.14);
}

.role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(21, 34, 56, 0.14);
}

.role h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.role p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.role-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
  border: 1px solid rgba(21, 34, 56, 0.2);
  border-radius: 999px;
  padding: 5px 14px;
}

.role-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--technavity-blue);
  border-bottom: 2px solid var(--ember);
  padding-bottom: 2px;
}

.roles-footnote {
  color: var(--ink-muted);
  font-size: 0.96rem;
}

.roles-footnote a {
  color: var(--technavity-blue);
}

/* ---------- Contact ---------- */

.contact {
  background: var(--sand);
}

.contact-panel {
  background: var(--deep-space);
  color: var(--ink-inverse);
  border-radius: 18px;
  padding: clamp(36px, 5vw, 76px);
}

.contact-panel .eyebrow {
  color: var(--ember);
}

.contact-panel h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  margin-bottom: 18px;
}

.contact-panel .lede {
  color: var(--ink-inverse-muted);
  margin-bottom: 36px;
}

.contact-details {
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.contact-details dt {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-inverse-muted);
  margin-bottom: 6px;
}

.contact-details dd {
  margin: 0;
  font-size: 1rem;
}

.contact-details a {
  color: #fff;
  text-decoration-color: var(--ember);
  text-underline-offset: 4px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--graphite);
  color: var(--ink-inverse-muted);
  padding: clamp(40px, 5vw, 64px) clamp(24px, 6vw, 96px);
  display: grid;
  gap: 12px;
  font-size: 0.92rem;
}

.site-footer img {
  width: 150px;
  height: auto;
  margin-bottom: 10px;
}

.footer-tagline {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero,
  .culture-inner {
    grid-template-columns: 1fr;
  }

  .hero-index {
    max-width: 420px;
  }

  .nav {
    gap: 16px;
    font-size: 0.88rem;
  }
}

@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .role {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
