/* ============================================================
   TWENTY TWO PROJECT / Design System
   Charcoal / warm paper / brand yellow #FFC300
   Fraunces (display) · Archivo (body) · IBM Plex Mono (labels)
   ============================================================ */

:root {
  /* Color tokens */
  --ink: #101315;
  --ink-2: #171b1e;
  --ink-3: #21262a;
  --paper: #f5f4f0;
  --white: #ffffff;
  --accent: #ffc300;
  --accent-soft: #ffd24a;
  --steel: #5f666c;
  --line-light: rgba(16, 19, 21, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --mist-70: rgba(255, 255, 255, 0.72);
  --mist-45: rgba(255, 255, 255, 0.45);
  --mist-30: rgba(255, 255, 255, 0.30);

  /* Typography */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --text-display: clamp(2.9rem, 1.4rem + 6.2vw, 6rem);
  --text-h1: clamp(2.5rem, 1.5rem + 4vw, 4.6rem);
  --text-h2: clamp(2rem, 1.35rem + 2.6vw, 3.4rem);
  --text-h3: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  --text-h4: 1.1875rem;
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-eyebrow: 0.75rem;

  /* Rhythm */
  --section-pad: clamp(5rem, 6vw + 2rem, 8.5rem);
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
  --radius-lg: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 0.6em; font-family: var(--font-display); font-weight: 570; line-height: 1.04; letter-spacing: -0.015em; }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--accent); color: var(--ink); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); }
.section--dark { background: var(--ink); color: var(--mist-70); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--raised { background: var(--ink-2); color: var(--mist-70); }
.section--raised h2, .section--raised h3 { color: var(--white); }
.section--white { background: var(--white); }

/* Accent word inside serif headings.
   Light surfaces: the word stays ink-dark and sits on a brand-yellow
   marker stroke, so the yellow is the real #FFC300 and the text keeps
   full contrast (no muddy dark yellow anywhere). Every dark surface
   (hero, page heroes, dark/raised sections, CTA band) sets the word
   itself in brand yellow. */
.accent-i {
  font-style: italic;
  color: inherit;
  padding-inline: 0.06em;
  background: linear-gradient(transparent 60%, var(--accent) 60%, var(--accent) 88%, transparent 88%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.section--dark .accent-i,
.section--raised .accent-i,
.hero .accent-i,
.page-hero .accent-i,
.cta-band .accent-i { color: var(--accent); background: none; padding-inline: 0; }

/* ---------- Signature: hazard stripe ---------- */
.hazard {
  height: 8px;
  background: repeating-linear-gradient(-45deg,
    var(--accent) 0 14px, var(--ink) 14px 28px);
}
.hazard--thin { height: 4px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.85rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--accent);
  flex: none;
}
.eyebrow .num { color: var(--ink); }
.section--dark .eyebrow, .section--raised .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--mist-70); }
.section--dark .eyebrow .num, .section--raised .eyebrow .num, .hero .eyebrow .num, .page-hero .eyebrow .num, .cta-band .eyebrow .num { color: var(--accent); }

.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lead { font-size: 1.125rem; color: var(--steel); }
.section--dark .section-head .lead, .section--raised .section-head .lead { color: var(--mist-70); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--accent); color: var(--ink); }
.btn--solid:hover { background: var(--accent-soft); }
.btn--ghost { border-color: var(--line-light); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost-dark { border-color: var(--line-dark); color: var(--white); }
.btn--ghost-dark:hover { border-color: var(--accent); color: var(--accent); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* Text link with yellow underline slide */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--ink);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  padding-bottom: 3px;
  transition: background-size 0.35s var(--ease);
}
.link-more:hover { background-size: 100% 2px; }
.section--dark .link-more, .section--raised .link-more { color: var(--white); }

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: var(--mist-45);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.5rem;
}
.topbar a { color: var(--mist-70); transition: color 0.25s; white-space: nowrap; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-group { display: flex; gap: 1.6rem; align-items: center; }
@media (max-width: 720px) { .topbar .tb-hide { display: none; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
  transition: box-shadow 0.4s;
}
.site-header.is-scrolled { box-shadow: 0 10px 40px -18px rgba(16, 19, 21, 0.35); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 92px;
}
/* The wordmark and its "Supplying the Quality" line are the brand, so the
   logo is sized to own the bar: ~400px wide on desktop, and on phones
   everything the menu button leaves free (the client asked for this). */
.brand { flex: none; display: block; }
.brand img { height: clamp(36px, 3.2vw, 46px); width: auto; }
@media (max-width: 1020px) {
  .site-header .container { height: 80px; gap: 0.75rem; }
  .site-header nav { display: none; }
  .brand img { height: auto; width: min(calc(100vw - 2 * var(--gutter) - 56px), 420px); }
}

.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 1.8vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  padding-bottom: 4px;
  transition: background-size 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background-size: 100% 2px; }
.nav-cta { display: inline-flex; }
@media (max-width: 1020px) {
  .nav-links, .nav-cta { display: none; }
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
@media (max-width: 1020px) { .nav-toggle { display: flex; } }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.mobile-menu a {
  display: block;
  padding: 0.55rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--white);
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s, color 0.3s;
}
.mobile-menu.is-open a { transform: none; opacity: 1; }
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--accent); }
.mobile-menu .mm-contact { margin-top: 2.2rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--mist-45); display: grid; gap: 0.5rem; }
.mobile-menu .mm-contact a { font-family: var(--font-mono); font-size: 0.8rem; transform: none; opacity: 1; padding: 0; color: var(--mist-70); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: min(92svh, 900px);
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: var(--mist-70);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16,19,21,0.55) 0%, rgba(16,19,21,0.12) 45%, rgba(16,19,21,0.92) 100%),
    linear-gradient(100deg, rgba(16,19,21,0.82) 0%, rgba(16,19,21,0.1) 65%);
}
.hero .container { position: relative; z-index: 1; width: 100%; padding-block: clamp(3.5rem, 7vw, 6rem) 0; }
.hero h1 {
  font-size: var(--text-display);
  font-weight: 480;
  color: var(--white);
  max-width: 14em;
  margin-bottom: 0.5em;
}
.hero__sub { max-width: 560px; font-size: 1.125rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: clamp(3rem, 6vw, 5rem); }

/* Stats bar */
.statbar {
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: transparent;
}
.statbar__item { padding: 1.6rem 1.4rem 2.2rem 0; }
.statbar__item + .statbar__item { padding-left: 1.6rem; border-left: 1px solid var(--line-dark); }
.statbar__value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 480;
  color: var(--white);
  line-height: 1;
}
.statbar__value .unit { color: var(--accent); font-style: italic; }
.statbar__label {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist-70);
}
@media (max-width: 900px) {
  .statbar { grid-template-columns: 1fr 1fr; }
  .statbar__item:nth-child(odd) { padding-left: 0; border-left: none; }
  .statbar__item:nth-child(even) { padding-left: 1.6rem; }
}
@media (max-width: 480px) {
  .statbar { grid-template-columns: 1fr 1fr; }
  .statbar__item { padding-block: 1.1rem 1.4rem; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--mist-70);
  padding-block: clamp(4.5rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.page-hero--img .page-hero__bg { position: absolute; inset: 0; }
.page-hero--img .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.page-hero--img .page-hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16,19,21,0.9) 20%, rgba(16,19,21,0.45) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-weight: 480; max-width: 16em; }
.page-hero .lead { max-width: 620px; font-size: 1.125rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist-45);
  list-style: none;
  padding: 0;
}
.breadcrumb a { color: var(--mist-70); transition: color 0.25s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.6rem; color: var(--mist-30); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Product / image card */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(16, 19, 21, 0.28);
  border-color: transparent;
}
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e6e0; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media .tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.3rem 0.7rem;
  background: rgba(16,19,21,0.82);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.card__body { display: flex; flex-direction: column; flex: 1; gap: 0.5rem; padding: 1.5rem 1.5rem 1.6rem; }
.card__body h3 { font-size: 1.3rem; margin: 0; }
.card__body p { font-size: var(--text-small); color: var(--steel); flex: 1; }
.card__body .link-more { margin-top: 0.4rem; }
.card--dark { background: var(--ink-2); border-color: var(--line-dark); }
.card--dark .card__body h3 { color: var(--white); }
.card--dark .card__body p { color: var(--mist-45); }

/* Icon / value card */
.icard {
  padding: 1.9rem 1.7rem;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.icard:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -22px rgba(16,19,21,0.25); }
.icard__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--steel);
  display: block;
  margin-bottom: 0.9rem;
}
.icard h3 { font-size: 1.25rem; }
.icard p { font-size: var(--text-small); color: var(--steel); margin: 0; }
/* Icon sits on a brand-yellow tile on light cards */
.icard__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.2rem;
  padding: 10px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 14px;
}
.icard__icon svg { width: 100%; height: 100%; }
.section--dark .icard, .section--raised .icard { background: rgba(255,255,255,0.03); border-color: var(--line-dark); }
.section--dark .icard h3, .section--raised .icard h3 { color: var(--white); }
.section--dark .icard p, .section--raised .icard p { color: var(--mist-70); }
.section--dark .icard__num,
.section--raised .icard__num { color: var(--accent); }
.section--dark .icard__icon,
.section--raised .icard__icon { color: var(--accent); background: rgba(255, 195, 0, 0.1); }

/* ---------- Feature split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5/4; }
.split__media::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--ink) 14px 28px);
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Counters ---------- */
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3rem); }
@media (max-width: 800px) { .counters { grid-template-columns: 1fr 1fr; } }
.counter { border-top: 1px solid var(--line-dark); padding-top: 1.4rem; }
.counter__value { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 480; color: var(--white); line-height: 1; }
.counter__value .unit { color: var(--accent); font-style: italic; }
.counter__label { margin-top: 0.7rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist-70); }

/* ---------- Logo marquee ---------- */
.marquee { overflow: hidden; position: relative; padding-block: 0.5rem; }
.marquee__track { display: flex; gap: clamp(2.5rem, 6vw, 5rem); width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; justify-content: center; height: 88px; flex: none; }
.marquee__item img { max-height: 72px; width: auto; max-width: 200px; object-fit: contain; filter: grayscale(1); opacity: 0.62; transition: filter 0.35s, opacity 0.35s; }
.marquee__item:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  /* the loop copies exist only for the scroll; a static row shows each logo once */
  .marquee__item[aria-hidden="true"] { display: none; }
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--ink); color: var(--mist-70); overflow: hidden; }
.cta-band .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.cta-band h2 { color: var(--white); max-width: 15em; margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.cta-band p { margin: 0.8rem 0 0; max-width: 460px; color: var(--mist-70); }
.cta-band__rail {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--ink) 14px 28px);
}

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 0.8rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--ink);
  transition: transform 0.3s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 1.5rem 1.3rem; color: var(--steel); font-size: var(--text-small); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: var(--text-small);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.25);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--mist-45); font-size: var(--text-small); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 6vw, 5rem) 3rem;
}
@media (max-width: 980px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand img { width: min(100%, 340px); height: auto; margin-bottom: 1.4rem; }
.site-footer__social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist-70);
  transition: border-color 0.25s, color 0.25s;
}
.site-footer__social a:hover { border-color: var(--accent); color: var(--accent); }
.site-footer__social svg { width: 16px; height: 16px; flex: none; }
.site-footer__brand p { max-width: 320px; }
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.site-footer a { color: var(--mist-70); transition: color 0.25s; }
.site-footer a:hover { color: var(--accent); }
.site-footer address { font-style: normal; display: grid; gap: 0.65rem; }
.site-footer__bar {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--mist-45);
}
.site-footer__bar a { color: var(--mist-70); }

/* ---------- Product range (mirrors tascorail.com/urunler) ----------
   Name and description on top, the photo below; the photo opens that
   product's gallery, the link goes to the detail page. */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
@media (max-width: 980px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pgrid { grid-template-columns: 1fr; } }
.pcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
}
.pcard__text { flex: 1; padding: 1.6rem 1.5rem 1.3rem; }
.pcard__text h3 { font-size: 1.3rem; margin-bottom: 0.55rem; }
.pcard__text h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pcard__text p { margin: 0; font-size: var(--text-small); color: var(--steel); }
.pcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e6e0; }
.pcard__media a { display: block; height: 100%; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.pcard__media a:hover img { transform: scale(1.04); }
.pcard__media--white { background: var(--white); border-top: 1px solid var(--line-light); }
.pcard__media--white img { object-fit: contain; padding: 5%; }
.pcard__count {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.3rem 0.65rem;
  background: rgba(16, 19, 21, 0.82);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
  pointer-events: none;
}
.pcard > .link-more { align-self: center; margin: 1.1rem 0 1.3rem; }
.beinei-intro { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; color: var(--steel); }
.beinei-intro img { width: 100%; height: auto; margin-bottom: 1.8rem; border-radius: var(--radius); }
/* white-background product shots keep the whole machine in small cards */
.card__media--white { background: var(--white); }
.card__media--white img { object-fit: contain; padding: 5%; }

/* ---------- Gallery / lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
/* Small galleries shouldn't leave a lone thumbnail in a 3-up grid */
.gallery:has(> a:only-child) { grid-template-columns: minmax(0, 760px); }
.gallery:has(> a:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 380px)); }
@media (max-width: 720px) {
  .gallery, .gallery:has(> a:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
  .gallery:has(> a:only-child) { grid-template-columns: 1fr; }
}
.gallery a { border-radius: var(--radius-lg); overflow: hidden; display: block; position: relative; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform 0.6s var(--ease); }
.gallery a:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(10, 12, 13, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.25s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,195,0,0.25); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav--prev { left: 1.2rem; }
.lightbox__nav--next { right: 1.2rem; }

/* ---------- Hero photo drift ----------
   A slow push-in on the real photo. It replaced an AI video loop that
   drifted away from the still underneath (double image) and rewrote the
   lettering on the machine. */
.hero__bg img { transform-origin: 62% 45%; animation: hero-drift 26s ease-in-out infinite alternate; }
@keyframes hero-drift { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .hero__bg img { animation: none; } }

/* ---------- Scroll progress hairline ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 200;
  pointer-events: none;
}

/* ---------- Hero word-by-word reveal ---------- */
.wr { display: inline-block; overflow: hidden; vertical-align: bottom; }
.wr > span {
  display: inline-block;
  transform: translateY(110%);
  animation: wr-up 0.9s var(--ease) forwards;
  animation-delay: var(--wr-d, 0s);
}
/* When the opening screen plays, the headline rises as it lifts
   (main.js shortens --intro-t if the visitor taps the screen away) */
.has-intro .wr > span { animation-delay: calc(var(--wr-d, 0s) + var(--intro-t, 3.75s)); }
@keyframes wr-up { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .wr > span { transform: none; animation: none; }
}

/* ---------- Opening screen (home page) ----------
   Carried over from the 2024 site at the client's request, unchanged:
   a black screen, SUPPLYING / THE / QUALITY appearing one under the other,
   then the white wordmark. Fonts, sizes and timings copy the original
   Webflow interaction (a-94): words at 0.1s / 0.6s / 0.8s, wordmark at
   2.3s, screen lifts at 3.7s. The original meant to fade out over 0.5s
   (Webflow cut it short with display:none); here the fade is kept. */
.intro { display: none; }
.has-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  cursor: pointer;
  animation: intro-out 0.5s linear 3.7s forwards;
}
.intro__words { display: flex; flex-direction: column; align-items: center; animation: intro-hide 0.01s linear 2.3s forwards; }
.intro__w {
  display: block;
  margin-top: 25px;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: normal;
  color: #fff;
  opacity: 0;
}
.intro__w--1 { animation: intro-in 0.5s ease-in 0.1s forwards; }
.intro__w--2 { animation: intro-in 0.2s ease-in 0.6s forwards; }
.intro__w--3 { color: #ffc300; animation: intro-in 0.4s ease-in 0.8s forwards; }
.intro__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(74vw, 1436px);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: intro-in 0.9s ease-out 2.3s forwards;
}
@media (max-width: 479px) {
  .intro__w { margin-top: 10px; font-size: 32px; }
}
@keyframes intro-in { to { opacity: 1; } }
@keyframes intro-hide { to { opacity: 0; visibility: hidden; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Card tilt & parallax hooks ---------- */
.card { will-change: transform; }
.card.is-tilting { transition: none; }
.split__media { overflow: hidden; }
.split__media img { will-change: transform; transition: transform 0.2s linear; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(26px); filter: blur(5px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; filter: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .scroll-progress { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Product detail ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.checklist li { display: flex; gap: 0.9rem; align-items: flex-start; }
.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  border-radius: 999px;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23101315" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-10"/></svg>') center / 12px no-repeat,
    var(--accent);
}
/* Contact list: plain link rows, no checkmarks */
.contact-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.7rem; font-size: var(--text-small); }
.contact-list li { display: flex; align-items: center; gap: 0.7rem; }
.contact-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 2px;
  background: var(--accent);
}
.contact-list a {
  font-weight: 500;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size 0.3s var(--ease);
}
.contact-list a:hover { background-size: 100% 2px; }

.sidebar-panel {
  position: sticky;
  top: 110px;
  padding: 1.8rem 1.7rem;
  background: var(--ink);
  color: var(--mist-70);
  border-radius: var(--radius-lg);
}
.sidebar-panel h3 { color: var(--white); font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }
.sidebar-panel .mono-label { color: var(--mist-45); }
.sidebar-panel ul { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 0.55rem; font-size: var(--text-small); }
.sidebar-panel li { padding-left: 1.1rem; position: relative; }
.sidebar-panel li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 2px; background: var(--accent); }
.sidebar-panel .standards {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--mist-45);
}
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 940px) { .detail-grid { grid-template-columns: 1fr; } .sidebar-panel { position: static; } }

/* ---------- Utilities ---------- */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}
.section--dark .mono-label, .section--raised .mono-label { color: var(--mist-45); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 0.8rem 1.4rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

@media print {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .topbar, .site-header, .mobile-menu, .nav-toggle, .scroll-progress, .intro, .cta-band__rail { display: none !important; }
  .hero, .page-hero, .section--dark, .section--raised, .cta-band, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1, .section--dark h2, .section--dark h3, .cta-band h2 { color: #000 !important; }
  .hero__bg, .page-hero__bg { display: none; }
}
