/* --------------------------------------------------------------------------
   Headline font: Filming (Rajesh Rajput). Drop the font file(s) in
   assets/fonts/ with one of the names below and the site picks it up.
   Until then the browser falls back to Bebas Neue (Google Fonts).
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Filming";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/Filming-Regular.otf") format("opentype");
}

/* ==========================================================================
   PHONOCUT — company site 2026
   Built from the Figma frame "Phonocut forward 2" (1688px wide, 1240px grid)
   ========================================================================== */

:root {
  --paper: #ececea;
  --ink: #282828;
  --ink-soft: #9a9a9a;
  --ink-faint: #d0d0d0;
  --yellow: #eeff00;
  --white: #ffffff;
  --nav: #c8c8c8;
  --line: #282828;

  --font-display: "Filming", "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1240px;
  --col-left: 311px;
  --col-gap: 72px;
  --header-h: 85px;

  --fs-body: 17px;
  --lh-body: 28px;
  --fs-h2: 62px;
  --lh-h2: 48px;
  --fs-h3: 41px;
  --fs-hero: 118px;
}

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

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

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--paper) url("../assets/img/paper.jpg") repeat;
  background-size: 1024px auto;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 var(--lh-body); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 400; }
em { font-style: italic; }

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.h-display,
.section h2,
.section h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
}

.section h3 {
  font-size: var(--fs-h3);
  line-height: 48px;
  margin-bottom: 14px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 6px;
  padding: 0 5px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 1.76px;
  text-transform: uppercase;
}

.text-soft { color: var(--ink-soft); }

.small { font-size: 13px; line-height: 21px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  height: 40px;
  padding: 0 24px 0 5px;
  border: 0;
  border-radius: 30px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.btn::before {
  content: "";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  background: url("../assets/svg/button-icon.svg") no-repeat center / contain;
}

.btn:hover { transform: translateX(3px); }
.btn:active { transform: translateX(3px) scale(.98); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 29px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .3s ease, backdrop-filter .3s ease;
}

/* Transparent over the hero (as in Figma); once the hero is scrolled past,
   a dark backdrop keeps the light nav readable on the paper background. */
.site-header.is-scrolled {
  background: rgba(5, 5, 5, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand { display: flex; flex-direction: column; align-items: center; gap: 3px; line-height: 0; }
.brand-mark { width: 46px; height: 46px; display: block; }
.brand-word { width: 51px; height: 6px; display: block; }

.site-nav { display: flex; align-items: center; }

.nav-group {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-group + .nav-group {
  margin-left: 29px;
  padding-left: 29px;
  border-left: 1px solid #3a3a3a;
}

.site-nav a {
  color: var(--nav);
  font-size: 10px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .15s;
}

.site-nav a:hover { color: var(--white); }

/* Mobile menu */
.menu-toggle {
  display: none;
  position: relative;
  width: 34px;
  height: 28px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transition: .25s;
}

.menu-toggle::before { top: 5px; }
.menu-toggle span { top: 13px; }
.menu-toggle::after { top: 21px; }

.menu-toggle.open::before { top: 13px; transform: rotate(45deg); }
.menu-toggle.open span { opacity: 0; }
.menu-toggle.open::after { top: 13px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 110px 28px 40px;
  background: #050505;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s ease;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  padding: 10px 0;
  border-bottom: 1px solid #1e1e1e;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
}

.mobile-nav .nav-group {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.mobile-nav .nav-group + .nav-group {
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-left: 0;
  border-top: 1px solid #3a3a3a;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 1217px;
  background: #000 url("../assets/img/hero-bg.jpg") center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero-machine {
  position: absolute;
  top: -99px;
  left: 50%;
  width: 1750px;
  max-width: none;
  margin-left: -906px; /* image x=-62 in a 1688 frame → centre offset */
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 215px;
}

.hero-logo { width: 105px; margin-bottom: 46px; }
.hero-logo-mark { width: 105px; height: 105px; } /* rotation lives inside the SVG (vector, re-rendered per frame) */
.hero-logo-word { width: 105px; height: 13px; margin-top: 0; }


.hero h1 {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 90px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-sub {
  margin: 0 0 21px;
  color: #bdbdbd;
  font-size: 17px;
  letter-spacing: .68px;
}

.hero-phase {
  margin: 0 0 51px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 1.98px;
  text-transform: uppercase;
}

.hero-usps {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 82px;
  z-index: 1;
}

.hero-usps ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-usps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--yellow);
  font-size: 16px;
  font-weight: 400;
  line-height: 17px;
  text-transform: uppercase;
}

.hero-usps li::before {
  content: "";
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin-top: -5px;
  background: url("../assets/svg/usp-icon.svg") no-repeat center / contain;
}

.hero-usps li span { max-width: 260px; padding-top: 5px; }

/* --------------------------------------------------------------------------
   Sections (two-column grid: heading column + text column)
   -------------------------------------------------------------------------- */

.section { padding: 88px 0; }

.section + .section { border-top: 0; }

.rule {
  width: 100%;
  max-width: var(--container);
  height: 1px;
  margin: 0 auto;
  background: var(--line);
}

.grid {
  display: grid;
  grid-template-columns: var(--col-left) minmax(0, 1fr);
  column-gap: var(--col-gap);
  row-gap: 48px;
  align-items: start;
}

.grid > .full { grid-column: 1 / -1; }

/* Figma: body text top aligns with the heading top, the eyebrow sits above the
   heading. When a column starts with an eyebrow, push the text column down by
   the eyebrow's height so the heading and the first line of text line up. */
.grid:has(> :first-child > .eyebrow:first-child) > :nth-child(2) { padding-top: 31px; }

.grid .lead { max-width: 900px; }

.figure {
  margin: 0;
  overflow: hidden;
}

.figure img { width: 100%; }

.figure--wide {
  width: calc(100% + 40px);
  margin-left: -33px;
}

.figure--photo img { aspect-ratio: 3 / 2; object-fit: cover; }

/* Mission: image with heading overlay */
.media-head {
  position: relative;
  margin: 0;
}

.media-head img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.media-head .overlay {
  position: absolute;
  top: 46px;
  left: 33px;
  width: var(--col-left);
}

.media-head .overlay h2 { color: var(--ink-soft); }
.media-head .overlay .eyebrow { background: none; color: var(--yellow); padding: 0; margin-top: 2px; }

/* Quote block */
.quote p { font-style: italic; }
.quote .cite { font-style: normal; font-size: 13px; line-height: 21px; }

/* --------------------------------------------------------------------------
   Spec blocks (yellow panel with heading overlapping the left edge)
   -------------------------------------------------------------------------- */

.specs .container { position: relative; }

.specs-panel {
  position: relative;
  padding: 36px 0 30px;
}

.specs-panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 101px;
  right: -33px;
  background: var(--yellow);
  z-index: 0;
}

.specs-panel .grid { position: relative; z-index: 1; }

.specs-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 38px;
  margin: 0;
}

.specs-list > div { break-inside: avoid; }

.specs-list dt {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: -.51px;
}

.specs-list dd {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 22px;
}

.specs-list dd:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Editions (white panel behind the right column)
   -------------------------------------------------------------------------- */

.edition .container { position: relative; }

.edition .grid { position: relative; z-index: 1; }

.edition .container::before {
  content: "";
  position: absolute;
  top: -42px;
  bottom: -60px;
  left: 139px;
  right: 114px;
  background: var(--white);
  z-index: 0;
}

.edition-card {
  position: relative;
  padding-top: 40px;
}

.edition-card .card-media {
  position: relative;
  margin: 0 0 42px;
}

.edition-card .card-media img { width: 100%; aspect-ratio: 850 / 417; object-fit: cover; }

.edition-card .card-media .card-title {
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  padding: 0 24px;
  margin: 0;
  color: #f1f1f1;
  font-size: 26px;
  font-weight: 300;
  line-height: 30px;
  letter-spacing: -.78px;
}

/* --------------------------------------------------------------------------
   Timeline (History)
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  padding: 57px 0 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -77px;
  width: 217px;
  background: var(--yellow);
  z-index: 0;
}

.timeline > * { position: relative; z-index: 1; }

.timeline-head {
  display: grid;
  grid-template-columns: 206px 1fr;
  align-items: end;
  margin-bottom: 36px;
}

.timeline-head .eyebrow { background: none; padding: 0; }

.timeline ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 206px 1fr;
  padding: 32px 0 30px;
  border-bottom: 1px solid var(--line);
}

.timeline .year {
  font-size: 26px;
  line-height: 43px;
  margin-top: -8px;
}

.timeline li p { max-width: 860px; }
.timeline li p + p { margin-top: 10px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form { max-width: 520px; }

.form .field {
  display: block;
  width: 100%;
  margin: 0 0 15px;
  padding: 14px 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 19px;
  outline: none;
  border-radius: 0;
}

.form .field::placeholder { color: var(--ink); opacity: 1; }
.form .field:focus { border-bottom-color: #000; }

.form-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 21px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 48px 0 56px;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* teenage engineering logo */
.site-footer .partner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.site-footer .partner img { display: block; height: 28px; width: auto; }

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  :root {
    --fs-h2: 52px;
    --lh-h2: 42px;
    --fs-hero: 96px;
    --col-left: 260px;
    --col-gap: 48px;
  }

  .hero { min-height: 1000px; }
  .hero-machine { width: 1400px; margin-left: -640px; top: 0; }
  .hero h1 { line-height: 76px; }

  .site-nav { display: none; }
  .menu-toggle { display: block; }

  .figure--wide { width: 100%; margin-left: 0; }
  .specs-panel::before { right: -24px; }
  .edition .container::before { left: 100px; right: 0; }
  .specs-list { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: -24px; width: 180px; }
  .timeline-head, .timeline li { grid-template-columns: 170px 1fr; }
}

@media (max-width: 760px) {
  :root {
    --fs-body: 16px;
    --lh-body: 26px;
    --fs-h2: 42px;
    --lh-h2: 36px;
    --fs-h3: 30px;
    --fs-hero: 64px;
    --header-h: 72px;
  }

  .container { padding: 0 20px; }

  .site-header { height: var(--header-h); padding: 0 20px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-word { width: 40px; height: 5px; }

  .hero { min-height: 0; padding-bottom: 60px; }
  .hero-machine {
    position: relative;
    top: auto;
    left: auto;
    width: 130%;
    max-width: none;
    margin: 0 0 -40px -15%;
  }
  .hero-inner { padding-top: 110px; }
  .hero-logo { width: 72px; margin-bottom: 24px; }
  .hero-logo-mark { width: 72px; height: 72px; }
  .hero-logo-word { width: 72px; height: 9px; }
  .hero h1 { line-height: 56px; margin-bottom: 20px; }
  .hero-phase { margin-bottom: 28px; }
  .hero-usps { position: static; margin-top: 48px; }
  .hero-usps ul { grid-template-columns: 1fr; gap: 20px; }

  .section { padding: 56px 0; }
  .grid { grid-template-columns: 1fr; row-gap: 28px; }
  .grid:has(> :first-child > .eyebrow:first-child) > :nth-child(2) { padding-top: 0; }

  .section h3 { line-height: 1.05; }

  .media-head .overlay { top: 20px; left: 20px; width: auto; right: 20px; }

  .specs-panel { padding: 28px 0 24px; }
  .specs-panel::before { left: -20px; right: -20px; }
  .specs-list { grid-template-columns: 1fr; }
  .specs-list dd { margin-bottom: 22px; }

  .edition .container::before { left: -20px; right: -20px; top: -28px; bottom: -40px; }
  .edition-card { padding-top: 0; }
  .edition-card .card-media .card-title { top: 20px; font-size: 20px; line-height: 24px; padding: 0 16px; }

  .timeline { padding-top: 32px; }
  .timeline::before { left: -20px; width: 110px; }
  .timeline-head, .timeline li { grid-template-columns: 1fr; row-gap: 6px; }
  .timeline-head { margin-bottom: 24px; }
  .timeline li { padding: 22px 0; }
  .timeline .year { margin-top: 0; line-height: 32px; }
  .timeline-head h2 { padding-left: 0; }

  .btn { font-size: 15px; }
}

/* Utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

ol { padding-left: 22px; margin: 0 0 var(--lh-body); }
ol li { padding-left: 4px; }
