/* Thomson public pages: the homepage ("The shop is the product."), /contact, /privacy and the
   not-found page.
   Brand (Drive: Thomson HQ › 05 — Brand › BRAND CURRENT ALWAYS USE): black #0E0E0E, off-white #ECE8E3,
   orange #FF5536 as a field (one block per view, black text on it), Geist + Geist Mono, square corners. */

@font-face {
  font-family: "Geist";
  src: url("/frontier/fonts/Geist-Variable.woff2") format("woff2-variations"), url("/frontier/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/frontier/fonts/GeistMono-Variable.woff2") format("woff2-variations"), url("/frontier/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0e0e0e;
  --graphite: #1e1e1e;
  --paper: #ece8e3;
  --orange: #ff5536;
  --stone: #a39f99;
  --slate: #66625c;
  --rule-dark: rgba(236, 232, 227, 0.18);
  --rule-light: rgba(14, 14, 14, 0.16);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4.2vw, 64px);
  --section-y: clamp(72px, 9.5vw, 156px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; }
::selection { background: var(--orange); color: var(--black); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.frontier :focus-visible { outline-color: var(--black); }

.skip { position: fixed; top: -100px; left: 12px; z-index: 100; background: var(--paper); color: var(--black); padding: 12px 16px; font: 500 14px/1 var(--sans); }
.skip:focus { top: 12px; }

.label {
  font: 500 11px/1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
sup { line-height: 0; }
sup a { font: 500 0.6em/0 var(--mono); margin-left: 3px; opacity: 0.8; }
sup a:hover { opacity: 1; }

/* ---------- Header ----------
   Transparent over the hero. With frontier.js running (html.nav-live) it stays fixed: solid further down, it slides
   away while you read on and comes back the moment you scroll up (data-solid, data-hidden). Without JS it simply
   scrolls away with the hero. */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 84px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease-out), background-color 0.3s, border-color 0.3s, height 0.3s var(--ease);
}
.nav-live .site-header { position: fixed; }
.nav-live .site-header[data-solid="true"] { height: 68px; background: rgba(14, 14, 14, 0.92); border-bottom-color: var(--rule-dark); }
.nav-live .site-header[data-hidden="true"] { transform: translate3d(0, -101%, 0); }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand-mark { width: 40px; height: 22px; color: var(--orange); fill: currentColor; }
.brand-word { width: 118px; height: 15px; color: var(--paper); fill: currentColor; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 232, 227, 0.8);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--paper); }
.site-nav .nav-contact { border: 1px solid rgba(236, 232, 227, 0.45); padding: 11px 14px; color: var(--paper); transition: background 0.2s, color 0.2s; }
.site-nav .nav-contact:hover { background: var(--paper); color: var(--black); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(236, 232, 227, 0.45);
  background: transparent;
  place-content: center;
  gap: 6px;
}
.menu-toggle span { display: block; width: 18px; height: 1px; background: currentColor; transition: transform 0.3s var(--ease); }
.site-header[data-open="true"] .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header[data-open="true"] .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Opening: shared parts (the heat film itself is in heat.css) ---------- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: clamp(32px, 4vw, 52px);
  animation: rise 1s var(--ease) 0.7s both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-width: 248px;
  padding: 19px 20px;
  border: 0;
  border-radius: 0;
  font: 500 16px/1 var(--sans);
  letter-spacing: -0.01em;
  transition: background 0.2s, color 0.2s;
}
.button span { transition: transform 0.25s var(--ease); }
.button:hover span { transform: translate(3px, -3px); }
.button-orange { background: var(--orange); color: var(--black); }
.button-orange:hover { background: var(--paper); }
.button-black { background: var(--black); color: var(--paper); }
.button-black:hover { background: var(--graphite); }
.link-arrow {
  display: inline-flex;
  gap: 28px;
  padding: 18px 0 16px;
  border-bottom: 1px solid rgba(236, 232, 227, 0.5);
  font: 500 16px/1 var(--sans);
  letter-spacing: -0.01em;
  transition: border-color 0.2s;
}
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover { border-color: var(--paper); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Shared section parts ----------
   A hairline opens each black section and each page's first block. */
.steel::before, .join::before, .contact::before, .page-top::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: clamp(48px, 7vw, 104px);
  background: var(--rule-dark);
}
.lead { max-width: 44ch; margin-top: clamp(24px, 3vw, 40px); font: 400 clamp(17px, 1.45vw, 21px)/1.5 var(--sans); color: var(--stone); }

/* ---------- For builders: structural steel ----------
   Black, like the film above it: one idea, one number, one action, and one line for shops. */
.steel { background: var(--black); color: var(--paper); padding: var(--section-y) var(--gutter); }
.steel h2 { max-width: 11.5em; font: 500 clamp(40px, 5.6vw, 98px)/0.97 var(--sans); letter-spacing: -0.05em; text-wrap: balance; }
.steel .lead { max-width: 50ch; }
.steel-cta { margin-top: clamp(40px, 5vw, 72px); }
.steel-shops { display: flex; width: fit-content; margin-top: clamp(26px, 3vw, 40px); }

/* ---------- Frontier 01 (the orange card) ---------- */
.frontier {
  background: var(--orange);
  color: var(--black);
  min-height: 100svh;
  padding: clamp(28px, 3vw, 44px) var(--gutter) clamp(26px, 2.8vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.card-mark { width: clamp(52px, 5.2vw, 76px); height: auto; aspect-ratio: 495 / 270; fill: currentColor; }
.card-details { text-align: right; font: 500 11.5px/1.65 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.frontier-body { max-width: 760px; margin: clamp(56px, 11vh, 150px) 0 clamp(40px, 6vh, 80px); }
.frontier h2 { font: 500 clamp(40px, 5.4vw, 92px)/0.97 var(--sans); letter-spacing: -0.05em; text-wrap: balance; }
.frontier-body p { max-width: 40ch; margin: 24px 0 36px; font: 400 clamp(17px, 1.45vw, 21px)/1.5 var(--sans); }
.frontier-date {
  display: flex;
  justify-content: space-between;
  gap: 0.2em;
  font: 600 clamp(64px, 14.6vw, 290px)/0.86 var(--sans);
  letter-spacing: -0.065em;
  white-space: nowrap;
}

/* ---------- Careers ---------- */
.join { background: var(--black); color: var(--paper); padding: var(--section-y) var(--gutter); }
.contact h2 { font: 500 clamp(52px, 7.6vw, 136px)/0.92 var(--sans); letter-spacing: -0.056em; }
.join h2 { max-width: 13.5em; font: 500 clamp(40px, 5.4vw, 98px)/0.97 var(--sans); letter-spacing: -0.05em; text-wrap: balance; }
.join .lead { max-width: 52ch; }
.roles { list-style: none; margin: clamp(52px, 6.5vw, 96px) 0 0; padding: 0; border-bottom: 1px solid var(--rule-dark); }
.roles a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 48px;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--rule-dark);
  transition: padding 0.3s var(--ease), background 0.2s;
}
.roles a:hover { padding-left: 14px; padding-right: 14px; background: var(--graphite); }
.role { font: 500 clamp(22px, 2.4vw, 38px)/1.08 var(--sans); letter-spacing: -0.035em; }
.role-meta { font: 500 11.5px/1.55 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); }
.role-arrow { justify-self: end; font-size: 28px; line-height: 1; transition: transform 0.25s var(--ease); }
.roles a:hover .role-arrow { transform: translate(4px, -4px); }

/* ---------- Contact ---------- */
.contact { background: var(--black); color: var(--paper); padding: var(--section-y) var(--gutter); }
.inquiry-direct { margin-top: 14px; font: 400 15px/1.5 var(--sans); color: var(--stone); }
.inquiry-direct a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
#homepage-inquiry { position: relative; max-width: 980px; margin-top: clamp(52px, 6.5vw, 96px); }
.inquiry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 40px; }
.inquiry-grid label { display: flex; flex-direction: column; gap: 12px; font: 500 11px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.inquiry-grid input, .inquiry-grid select, .inquiry-grid textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(236, 232, 227, 0.3);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font: 400 18px/1.4 var(--sans);
  letter-spacing: -0.005em;
  text-transform: none;
  transition: border-color 0.2s;
}
.inquiry-grid input:focus, .inquiry-grid select:focus, .inquiry-grid textarea:focus { border-color: var(--paper); }
.inquiry-grid select {
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ECE8E3' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.inquiry-grid select option { background: var(--graphite); color: var(--paper); }
.inquiry-grid textarea { resize: vertical; }
.inquiry-wide { grid-column: 1 / -1; }
.inquiry-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-privacy { margin: 28px 0; font: 400 13px/1.5 var(--sans); color: var(--stone); }
.inquiry-privacy a { text-decoration: underline; text-underline-offset: 3px; }
.inquiry-submit:disabled { opacity: 0.6; cursor: default; }
#inquiry-status { max-width: 60ch; margin-top: 20px; font: 400 15px/1.5 var(--sans); }
#inquiry-status:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--paper); padding: 0 var(--gutter) clamp(22px, 2.6vw, 36px); }
.sources {
  margin: 0;
  padding: clamp(40px, 5vw, 72px) 0 0 1.4em;
  border-top: 1px solid var(--rule-dark);
  columns: 2;
  column-gap: 56px;
  font: 400 11.5px/1.6 var(--mono);
  color: var(--stone);
}
.sources li { margin-bottom: 8px; break-inside: avoid; }
.sources a, .credits a { text-decoration: underline; text-underline-offset: 2px; }
.credits { margin: 8px 0 clamp(40px, 5vw, 72px); font: 400 11.5px/1.6 var(--mono); color: var(--stone); }
.footer-card { padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--rule-dark); }
.footer-card .card-mark { color: var(--orange); }
.footer-card .card-details a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* The mission, said once, quietly, above the name. */
.footer-mission { max-width: 14em; margin-top: clamp(64px, 10vw, 168px); font: 500 clamp(30px, 4.2vw, 72px)/1 var(--sans); letter-spacing: -0.045em; color: var(--paper); text-wrap: balance; }
.footer-mission + .footer-word { margin-top: clamp(40px, 6vw, 96px); }
.footer-word { width: 100%; height: auto; aspect-ratio: 706.32 / 90; margin-top: clamp(72px, 13vw, 220px); fill: currentColor; color: var(--paper); }
.footer-legal { margin-top: 18px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }

/* ---------- Pages without the film: /contact, /privacy, not found ----------
   The header sits over the first block, as it does over the hero, so that block is black and clears it. */
.page-top { background: var(--black); color: var(--paper); padding: calc(84px + clamp(36px, 5vw, 80px)) var(--gutter) var(--section-y); }
.page-top h1 { max-width: 11em; font: 500 clamp(52px, 7.6vw, 136px)/0.92 var(--sans); letter-spacing: -0.056em; text-wrap: balance; }
.page-top .hero-actions { animation: none; }
.direct { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: clamp(52px, 6.5vw, 96px) 0 0; border-top: 1px solid var(--rule-dark); }
.direct > div { padding: 22px 32px 0 0; }
.direct > div + div { padding-left: 32px; border-left: 1px solid var(--rule-dark); }
.direct dt { font: 500 11px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.direct dd { margin-top: 18px; font: 500 clamp(20px, 1.8vw, 28px)/1.2 var(--sans); letter-spacing: -0.025em; overflow-wrap: anywhere; }
.direct dd span { display: block; margin-top: 8px; font: 400 15.5px/1.5 var(--sans); letter-spacing: 0; color: var(--stone); }
.direct a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(236, 232, 227, 0.4); }
.direct a:hover { text-decoration-color: var(--paper); }
.policy { background: var(--paper); color: var(--black); padding: var(--section-y) var(--gutter); }
.policy-list { max-width: 980px; }
.policy-list section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 40px; padding: 30px 0; border-top: 1px solid var(--rule-light); }
.policy-list section:last-child { border-bottom: 1px solid var(--rule-light); }
.policy-list h2 { font: 500 clamp(20px, 1.8vw, 28px)/1.15 var(--sans); letter-spacing: -0.03em; }
.policy-list p { max-width: 62ch; font: 400 16px/1.6 var(--sans); color: var(--slate); }
.policy-foot { max-width: 980px; margin-top: 28px; font: 400 13px/1.6 var(--mono); color: var(--slate); }
.policy-foot a { text-decoration: underline; text-underline-offset: 3px; }
.not-found { min-height: 78vh; min-height: 78svh; }

/* ---------- Scroll-linked details (frontier.js sets --p from 0 to 1) ---------- */
.scrub-ready .frontier-date span { will-change: transform; }
.scrub-ready .frontier-date span:first-child { transform: translate3d(calc((1 - var(--p, 1)) * -22vw), 0, 0); }
.scrub-ready .frontier-date span:last-child { transform: translate3d(calc((1 - var(--p, 1)) * 22vw), 0, 0); }
.scrub-ready .footer-word { clip-path: inset(calc((1 - var(--p, 1)) * 100%) 0 0 0); transform: translate3d(0, calc((1 - var(--p, 1)) * 18%), 0); }

/* ---------- Scroll reveal (enabled by frontier.js) ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 1s var(--ease-out), transform 1.25s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.07) translateY(-1%); } }
@keyframes lift { from { background-color: rgba(14, 14, 14, 1); } to { background-color: rgba(14, 14, 14, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(5%, -6%); }
  60% { transform: translate(-3%, -2%); }
  80% { transform: translate(6%, 5%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-header { height: 68px; gap: 16px; }
  .brand-word { width: 104px; height: 13px; }
  .menu-toggle { display: grid; }
  .site-nav { display: none; }
  .site-header[data-open="true"], .nav-live .site-header[data-open="true"] { position: fixed; background: var(--black); border-bottom: 1px solid var(--rule-dark); }
  .site-header[data-open="true"] .site-nav {
    display: flex;
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 28px;
    background: var(--black);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  }
  .site-header[data-open="true"] .site-nav a { padding: 20px 0; border-bottom: 1px solid var(--rule-dark); font-size: 13px; }
  .site-header[data-open="true"] .site-nav .nav-contact { margin-top: 20px; border: 1px solid rgba(236, 232, 227, 0.45); padding: 18px 16px; text-align: center; }
  .page-top { padding-top: calc(68px + 36px); }
  .direct { grid-template-columns: 1fr; }
  .direct > div, .direct > div + div { padding: 24px 0 28px; border-left: 0; border-bottom: 1px solid var(--rule-dark); }
  .policy-list section { grid-template-columns: 1fr; padding: 26px 0; }
  .frontier-date { flex-direction: column; gap: 0; font-size: 25vw; line-height: 0.88; }
  .roles a { grid-template-columns: minmax(0, 1fr) 32px; gap: 10px 16px; }
  .role-meta { grid-column: 1; grid-row: 2; }
  .role-arrow { grid-column: 2; grid-row: 1 / span 2; }
  .inquiry-grid { grid-template-columns: 1fr; gap: 26px; }
  .sources { columns: 1; }
}
@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { min-width: 0; width: 100%; }
  .link-arrow { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
