:root {
  color-scheme: dark;
  --tf-red-900: #5b0f18;
  --tf-red-700: #7d1625;
  --tf-black: #0d0d0d;
  --tf-grey-950: #111111;
  --tf-grey-900: #1a1a1a;
  --tf-grey-750: #2a2a2a;
  --tf-grey-600: #666666;
  --tf-grey-400: #a4a4a4;
  --tf-grey-300: #d9d9d9;
  --tf-white: #f5f5f5;
  --tf-border: rgba(255, 255, 255, 0.08);
  --tf-border-strong: rgba(255, 255, 255, 0.16);
  --tf-container: min(100% - 48px, 1460px);
  --tf-gutter: clamp(24px, 5vw, 72px);
  --tf-shadow-red: 0 0 34px rgba(125, 22, 37, 0.24);
  --tf-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family:
    "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--tf-black);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(125, 22, 37, 0.18), transparent 28rem),
    var(--tf-black);
  color: var(--tf-white);
  font-size: 16px;
  line-height: 1.65;
}

body.is-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd,
ul {
  margin-top: 0;
}

p,
dd {
  color: var(--tf-grey-300);
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  transform: translateY(-160%);
  border: 1px solid var(--tf-red-700);
  background: var(--tf-white);
  color: var(--tf-black);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms var(--tf-ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 20px clamp(24px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.82), rgba(13, 13, 13, 0));
  transition:
    background 180ms var(--tf-ease),
    border-color 180ms var(--tf-ease),
    min-height 180ms var(--tf-ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  min-height: 72px;
  border-bottom: 1px solid var(--tf-border);
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  width: max-content;
}

.tf-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  color: var(--tf-red-700);
  fill: currentColor;
}

.brand-wordmark {
  color: var(--tf-white);
  font-size: clamp(0.86rem, 1.2vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1.35;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 58px);
}

.nav-links a,
.nav-cta,
.button,
.text-link,
.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--tf-white);
  transition: color 160ms var(--tf-ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
}

.nav-cta,
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 52px;
  border: 1px solid var(--tf-red-700);
  padding: 15px 28px;
  overflow: hidden;
  transition:
    border-color 180ms var(--tf-ease),
    background 180ms var(--tf-ease),
    box-shadow 180ms var(--tf-ease),
    transform 180ms var(--tf-ease);
}

.nav-cta {
  min-width: 174px;
  color: var(--tf-white);
}

.button {
  gap: 14px;
}

.button svg,
.text-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.button-primary {
  border-color: var(--tf-red-700);
  background: linear-gradient(135deg, var(--tf-red-900), var(--tf-red-700));
  color: var(--tf-white);
  box-shadow: var(--tf-shadow-red);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(13, 13, 13, 0.22);
  color: var(--tf-white);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
  border-color: #a82033;
  box-shadow: 0 0 28px rgba(125, 22, 37, 0.34);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--tf-white);
  outline-offset: 4px;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid rgba(125, 22, 37, 0.8);
  background: var(--tf-black);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.98) 0%, rgba(13, 13, 13, 0.88) 27%, rgba(13, 13, 13, 0.36) 58%, rgba(13, 13, 13, 0.78) 100%),
    linear-gradient(180deg, rgba(13, 13, 13, 0.42) 0%, rgba(13, 13, 13, 0.1) 46%, rgba(13, 13, 13, 0.84) 100%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.84;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
  width: var(--tf-container);
  min-height: 100svh;
  margin: 0 auto;
  padding: 132px 0 88px;
}

.hero-copy {
  max-width: 640px;
}

.section-kicker {
  position: relative;
  margin-bottom: 24px;
  color: #f04859;
}

.section-kicker::after {
  display: block;
  width: 32px;
  height: 1px;
  margin-top: 12px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3 {
  color: var(--tf-white);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3.6rem, 6.6vw, 7rem);
}

h1 span {
  color: #c82b3a;
}

h2 {
  margin-bottom: 26px;
  font-size: clamp(2.35rem, 4.5vw, 5.2rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.hero-copy > p:not(.section-kicker) {
  max-width: 560px;
  margin-bottom: 34px;
  color: #c9c9c9;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.ticket-stack {
  position: relative;
  min-height: 470px;
}

.factory-ticket {
  position: absolute;
  width: min(310px, 36vw);
  min-height: 430px;
  padding: 34px 34px 30px;
  color: var(--tf-black);
  clip-path: polygon(0 0, 44% 0, 48% 5%, 56% 5%, 60% 0, 100% 0, 100% 100%, 60% 100%, 56% 95%, 48% 95%, 44% 100%, 0 100%);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.factory-ticket::before {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.2) 25%, transparent 25%);
  background-size: 7px 7px;
  content: "";
  pointer-events: none;
}

.ticket-red {
  top: 18px;
  right: 230px;
  transform: rotate(-3deg);
  background: linear-gradient(145deg, #a92a36, #67111b);
}

.ticket-paper {
  top: 62px;
  right: 0;
  transform: rotate(6deg);
  background: linear-gradient(145deg, #e1d8ca, #afa695);
}

.ticket-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
  color: var(--tf-black);
  font-weight: 700;
}

.ticket-logo {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.factory-ticket strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 26px;
  color: var(--tf-black);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.18;
  text-transform: uppercase;
}

.factory-ticket p,
.factory-ticket small,
.factory-ticket span,
.factory-ticket li {
  position: relative;
  z-index: 1;
  color: var(--tf-black);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.factory-ticket p {
  border-top: 1px dashed rgba(13, 13, 13, 0.7);
  border-bottom: 1px dashed rgba(13, 13, 13, 0.7);
  padding: 18px 0;
  font-size: 1.08rem;
  line-height: 1.32;
}

.factory-ticket small {
  display: block;
  font-size: 0.76rem;
  line-height: 1.45;
}

.ticket-paper > span {
  display: block;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(13, 13, 13, 0.7);
  padding-bottom: 12px;
  font-size: 0.86rem;
}

.ticket-paper > strong {
  margin-bottom: 14px;
  font-size: 0.94rem;
  letter-spacing: 0.14em;
}

.ticket-paper ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.ticket-paper li {
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 1rem;
  line-height: 1.3;
}

.ticket-paper li::before {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  border: 2px solid var(--tf-black);
  content: "";
}

.ticket-paper small {
  border: 1px solid rgba(13, 13, 13, 0.7);
  padding: 12px 14px;
}

.services,
.work,
.process,
.mission,
.insights,
.contact {
  position: relative;
  width: var(--tf-container);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 132px) 0;
}

.services::before,
.work::before,
.insights::before {
  position: absolute;
  inset: 0 calc((100vw - 100%) / -2);
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 92%);
  content: "";
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: var(--tf-gutter);
}

.section-intro {
  max-width: 390px;
}

.section-intro > p:not(.section-kicker),
.mission > p,
.contact p {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  color: #f04859;
  transition: color 160ms var(--tf-ease), transform 160ms var(--tf-ease);
}

.text-link:hover {
  color: var(--tf-white);
  transform: translateX(3px);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--tf-border);
}

.pillar-card {
  min-height: 310px;
  border-right: 1px solid var(--tf-border);
  padding: clamp(24px, 3vw, 42px);
  transition:
    background 180ms var(--tf-ease),
    transform 180ms var(--tf-ease),
    border-color 180ms var(--tf-ease);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
}

.icon {
  width: 52px;
  height: 52px;
  margin-bottom: 38px;
  fill: none;
  color: #d12a3a;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.pillar-card h3 {
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pillar-card p {
  min-height: 96px;
  margin-bottom: 0;
}

.pillar-card .text-link {
  font-size: 0.74rem;
}

.section-heading {
  max-width: 840px;
}

.process {
  border-top: 1px solid var(--tf-border);
  border-bottom: 1px solid var(--tf-border);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 46px 0;
}

.timeline::before {
  position: absolute;
  top: 20px;
  right: 7%;
  left: 7%;
  height: 1px;
  background: var(--tf-red-700);
  content: "";
}

.timeline-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  justify-items: center;
  border: 0;
  background: transparent;
  color: var(--tf-grey-400);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.timeline-step span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--tf-red-700);
  border-radius: 50%;
  background: var(--tf-black);
  color: var(--tf-white);
  transition:
    background 160ms var(--tf-ease),
    box-shadow 160ms var(--tf-ease),
    transform 160ms var(--tf-ease);
}

.timeline-step:hover span,
.timeline-step.is-active span {
  transform: translateY(-2px);
  background: var(--tf-red-700);
  box-shadow: var(--tf-shadow-red);
}

.timeline-step.is-active {
  color: var(--tf-white);
}

.process-panel {
  max-width: 840px;
  border: 1px solid var(--tf-border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  padding: clamp(28px, 5vw, 56px);
}

.process-label {
  margin-bottom: 18px;
  color: #f04859;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.process-panel h3 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3.4vw, 3.5rem);
}

.process-panel p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 1.1rem;
}

.work-list {
  display: grid;
  gap: 20px;
}

.work-card,
.insight-grid article {
  border: 1px solid var(--tf-border);
  background: var(--tf-grey-900);
  transition:
    transform 180ms var(--tf-ease),
    border-color 180ms var(--tf-ease),
    background 180ms var(--tf-ease);
}

.work-card:hover,
.insight-grid article:hover {
  transform: translateY(-4px);
  border-color: var(--tf-border-strong);
  background: #202020;
}

.work-card {
  padding: clamp(26px, 4vw, 44px);
}

.work-card > span,
.insight-grid span {
  display: block;
  margin-bottom: 16px;
  color: #f04859;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.work-card h3 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.work-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-bottom: 0;
}

.work-card dt {
  margin-bottom: 8px;
  color: var(--tf-white);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-card dd {
  margin-left: 0;
}

.mission {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: var(--tf-gutter);
  align-items: end;
  border-top: 1px solid var(--tf-border);
  border-bottom: 1px solid var(--tf-border);
}

.mission h2 {
  max-width: 950px;
}

.mission > p {
  margin-bottom: 28px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.insight-grid article {
  min-height: 250px;
  padding: clamp(24px, 3vw, 36px);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--tf-gutter);
  align-items: end;
}

.contact h2 {
  max-width: 920px;
}

.contact p {
  max-width: 650px;
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: var(--tf-container);
  margin: 0 auto;
  border-top: 1px solid var(--tf-border);
  padding: 28px 0 38px;
  color: var(--tf-grey-400);
  font-size: 0.92rem;
}

.brand-small .tf-mark {
  width: 36px;
  height: 36px;
}

.brand-small .brand-wordmark {
  font-size: 0.72rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .nav-links {
    justify-content: end;
    gap: 24px;
  }

  .nav-cta {
    min-width: 150px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .ticket-stack {
    display: none;
  }

  .pillar-grid,
  .work-card dl,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-card:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --tf-container: min(100% - 32px, 1460px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
    min-height: 72px;
    padding: 16px;
  }

  .brand-wordmark {
    font-size: 0.8rem;
    letter-spacing: 0.24em;
  }

  .tf-mark {
    width: 40px;
    height: 40px;
  }

  .menu-toggle {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--tf-border-strong);
    background: rgba(13, 13, 13, 0.6);
    color: var(--tf-white);
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--tf-border);
    border-bottom: 1px solid var(--tf-border);
    background: rgba(13, 13, 13, 0.98);
    padding: 12px 16px;
    transform: translateY(-130%);
    visibility: hidden;
    transition:
      transform 200ms var(--tf-ease),
      visibility 200ms var(--tf-ease);
  }

  .site-header.is-open .nav-links {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-links a {
    border-bottom: 1px solid var(--tf-border);
    padding: 18px 0;
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-cta {
    display: none;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(13, 13, 13, 0.97), rgba(13, 13, 13, 0.72)),
      linear-gradient(180deg, rgba(13, 13, 13, 0.18), rgba(13, 13, 13, 0.86));
  }

  .hero-inner {
    min-height: 100svh;
    padding-top: 112px;
  }

  .section-grid,
  .mission,
  .contact {
    grid-template-columns: 1fr;
  }

  .section-intro {
    max-width: 720px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 20px;
    width: 1px;
    height: auto;
  }

  .timeline-step {
    grid-template-columns: 42px 1fr;
    justify-items: start;
    text-align: left;
  }

  .work-card dl,
  .insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(3.15rem, 14vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.5rem);
  }

  .hero-actions,
  .button,
  .contact .button {
    width: 100%;
  }

  .contact .button {
    padding-inline: 16px;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
    border-left: 0;
  }

  .pillar-card,
  .pillar-card:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--tf-border);
    padding-inline: 0;
  }

  .pillar-card:last-child {
    border-bottom: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
