/* ============================================================
   GRANITAS KG — Tobermore DNA
   Hanken Grotesk · Sharp · #fff/#000/#f2f2f2/#8a6a44
   ============================================================ */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f2f2f2;

  --text: #000000;
  --text-muted: #333333;
  --text-dim: #6b6b6b;
  --border: #c4c4c4;
  --border-soft: #e6e6e6;

  --accent: #8a6a44;
  --accent-hover: #6f5235;
  --accent-soft: #f5ede0;

  --shadow-md: rgba(0, 0, 0, 0.18) 4px 4px 6px 0px;
  --shadow-lg: rgba(0, 0, 0, 0.22) 6px 8px 16px 0px;

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 25px;
  --s-4: 35px;
  --s-5: 50px;
  --s-6: 70px;
  --s-7: 80px;
  --s-8: 120px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --t-base: 300ms var(--ease);

  --nav-h: 78px;
  --container: 1320px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-behavior removed — Lenis handles smooth scroll */
html, body { overflow-x: clip; }
body { max-width: 100vw; }
img, video, iframe { max-width: 100%; height: auto; }
body {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-base); }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }
summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: "Hanken Grotesk", sans-serif; color: var(--text); letter-spacing: -0.01em; }
h1 { font-size: 48px; font-weight: 300; line-height: 1.15; }
h2 { font-size: 36px; font-weight: 300; line-height: 1.2; }
h3 { font-size: 22px; font-weight: 500; line-height: 1.3; }
h4 { font-size: 16px; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.08em; }
p  { color: var(--text-muted); }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
}
.lead { font-size: 19px; color: var(--text-muted); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 60px);
  margin: 0 auto;
  padding: 0 30px;
}
.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

.section { padding: var(--s-8) 0; }
.section--alt { background: var(--surface-alt); }
.section__head { max-width: 720px; margin-bottom: var(--s-6); }
.section__head h2 { margin-bottom: var(--s-2); }
.section__lead { font-size: 19px; color: var(--text-muted); }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav__logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nav__logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--text); color: #fff;
  font-weight: 600; font-size: 12px; letter-spacing: 0.05em;
}
.nav__logo-word {
  font-weight: 500; font-size: 16px; line-height: 1; letter-spacing: 0.03em;
  display: flex; flex-direction: column; gap: 2px;
}
.nav__logo-word small { font-size: 10px; color: var(--accent); font-weight: 600; letter-spacing: 0.18em; }
.nav__logo-text {
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  font-weight: 500; font-size: 18px; line-height: 1; letter-spacing: 0.04em;
  color: inherit;
}

.nav__menu {
  display: flex; align-items: center; gap: 28px;
}
.nav__menu a {
  font-size: 14px; font-weight: 500;
  color: var(--text);
  padding: 8px 0;
  position: relative;
}
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: 4px;
  height: 2px; width: 0; background: var(--accent);
  transition: width var(--t-base);
}
.nav__menu a:hover::after { width: 100%; }
.nav__cta { padding: 12px 22px; font-size: 14px; }
.nav__cta::after { display: none; }
.nav__cta:hover { color: #fff; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--text);
  position: relative;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px; background: var(--text);
  position: absolute; left: 11px;
  transition: transform var(--t-base), opacity var(--t-base), top var(--t-base);
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 28px; }
.nav.is-open .nav__burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px;
  font: 500 15px/1 "Hanken Grotesk", sans-serif;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--outline { background: #fff; color: var(--text); border-color: var(--text); }
.btn--outline:hover { background: var(--text); color: #fff; }
.btn--white { background: #fff; color: var(--text); border-color: #fff; }
.btn--white:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost-white { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost-white:hover { background: #fff; color: var(--accent); }

/* ---- HERO ---- */
.hero { padding: var(--s-7) 0 var(--s-8); }
.hero__row { align-items: center; gap: var(--s-6); }
.hero__h1 { margin: var(--s-2) 0 var(--s-3); }
.hero__lead {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: var(--s-4);
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: var(--s-5);
}
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
}
.trust li { display: flex; flex-direction: column; gap: 4px; }
.trust strong {
  font-size: 26px; font-weight: 300;
  color: var(--text);
  letter-spacing: -0.02em;
}
.trust span { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- Image frame ---- */
.img-frame {
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
}
.img-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.img-frame:hover img { transform: scale(1.03); }
.img-frame figcaption {
  position: absolute; left: 0; bottom: 0;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 16px;
}
.img-frame--tall { aspect-ratio: 4 / 5; }
.img-frame--gal { aspect-ratio: 4 / 3; }

/* ---- KPI ---- */
.kpi { background: var(--text); color: #fff; padding: var(--s-7) 0; }
.kpi__card {
  padding: var(--s-4) var(--s-3);
  border: 1px solid #2b2b2b;
  display: flex; flex-direction: column; gap: 12px;
  height: 100%;
  transition: border-color var(--t-base), background var(--t-base);
}
.kpi__card:hover { border-color: var(--accent); background: #0a0a0a; }
.kpi__card--accent { background: var(--accent); border-color: var(--accent); }
.kpi__card--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.kpi__num {
  font-size: 62px; font-weight: 300; line-height: 1;
  letter-spacing: -0.04em;
}
.kpi__label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #cfcfcf; }
.kpi__card--accent .kpi__label { color: #fff; }

/* ---- Catalog cards ---- */
.cards { row-gap: var(--s-5); }
.card {
  background: #fff;
  border: 1px solid var(--border-soft);
  display: flex; flex-direction: column;
  height: 100%;
  position: relative;
  transition: border-color var(--t-base), transform var(--t-base);
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card__media {
  aspect-ratio: 16 / 11;
  background: var(--surface-alt);
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: var(--s-3); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__meta { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.card__title { margin: 0; }
.card__desc { font-size: 15px; color: var(--text-muted); flex: 1; }
.card__link {
  font-size: 14px; font-weight: 500;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: color var(--t-base), border-color var(--t-base);
}
.card__link:hover { color: var(--accent); }
.card--featured { border-color: var(--text); }
.card__badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--text); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px;
  z-index: 2;
}

/* ---- Use Cases ---- */
.use-cases { row-gap: var(--s-4); }
.use-case {
  background: #fff;
  display: flex; flex-direction: column;
  border: 1px solid var(--border-soft);
  height: 100%;
  transition: border-color var(--t-base);
}
.use-case:hover { border-color: var(--accent); }
.use-case__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-alt); }
.use-case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.use-case:hover .use-case__media img { transform: scale(1.04); }
.use-case__body { padding: var(--s-4); display: flex; flex-direction: column; gap: 14px; flex: 1; }
.use-case__num {
  font-size: 14px; font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.use-case ul { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 4px; border-top: 1px solid var(--border-soft); margin-top: 8px; }
.use-case li {
  font-size: 14px; color: var(--text-muted);
  padding-left: 18px; position: relative;
}
.use-case li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 10px; height: 2px; background: var(--accent);
}

/* ---- Production split ---- */
.split { align-items: center; gap: var(--s-6); }
.split__text { display: flex; flex-direction: column; gap: var(--s-2); }
.split__text h2 { margin-bottom: 4px; }
.split__text .lead { margin-bottom: var(--s-2); }
.ticks { display: flex; flex-direction: column; gap: var(--s-2); margin: var(--s-3) 0; }
.ticks li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 0 16px 28px;
  border-top: 1px solid var(--border-soft);
  position: relative;
}
.ticks li:last-child { border-bottom: 1px solid var(--border-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 22px;
  width: 16px; height: 2px; background: var(--accent);
}
.ticks strong { font-weight: 500; font-size: 16px; color: var(--text); }
.ticks span { font-size: 14px; color: var(--text-muted); }

/* ---- Gallery ---- */
.gallery { row-gap: var(--s-4); }

/* ---- Video ---- */
.video {
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.video video { width: 100%; height: 100%; object-fit: cover; }

/* ---- Quotes ---- */
.quote {
  background: #fff;
  border: 1px solid var(--border-soft);
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-3);
  height: 100%;
  position: relative;
  transition: border-color var(--t-base);
}
.quote:hover { border-color: var(--accent); }
.quote::before {
  content: """;
  font-family: Georgia, serif;
  font-size: 100px;
  line-height: 0.7;
  color: var(--accent);
  font-weight: 400;
}
.quote blockquote {
  font-size: 19px; font-weight: 300; line-height: 1.5;
  color: var(--text);
}
.quote figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: var(--s-2); border-top: 1px solid var(--border-soft); }
.quote figcaption strong { font-size: 15px; font-weight: 500; color: var(--text); }
.quote figcaption span { font-size: 13px; color: var(--text-dim); }

/* ---- FAQ ---- */
.faq { max-width: 920px; }
.faq__item {
  border-top: 1px solid var(--border);
  padding: var(--s-3) 0;
}
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__item summary {
  font-size: 18px; font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-right: 4px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 28px; font-weight: 300;
  color: var(--accent);
  transition: transform var(--t-base);
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin-top: 14px; color: var(--text-muted); max-width: 760px; font-size: 16px; }

/* ---- Contacts ---- */
.contacts-info { display: flex; flex-direction: column; gap: var(--s-4); }
.contacts-list { background: #fff; border: 1px solid var(--border-soft); }
.contacts-list li {
  display: grid; grid-template-columns: 160px 1fr;
  gap: var(--s-2);
  padding: 18px var(--s-3);
  border-bottom: 1px solid var(--border-soft);
}
.contacts-list li:last-child { border-bottom: none; }
.contacts-list__k {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 500;
}
.contacts-list__v { font-weight: 500; font-size: 16px; color: var(--text); }
.contacts-list a.contacts-list__v { border-bottom: 1px dashed var(--accent); padding-bottom: 2px; }

.map {
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---- Form ---- */
.form {
  background: #fff;
  border: 1px solid var(--border-soft);
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.form__title { margin-bottom: var(--s-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 500;
}
.field input, .field select, .field textarea {
  border: 1px solid var(--border);
  background: #fff;
  padding: 14px 14px;
  font-size: 15px;
  transition: border-color var(--t-base);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.form__submit { align-self: flex-start; margin-top: var(--s-2); }
.form__hint { font-size: 12px; color: var(--text-dim); }
.form__ok {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
}

/* ---- CTA strip ---- */
.cta-strip {
  background: var(--accent);
  color: #fff;
  padding: var(--s-6) 0;
}
.cta-strip__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); flex-wrap: wrap;
}
.cta-strip__text { max-width: 680px; }
.cta-strip h2 { color: #fff; font-weight: 300; }
.cta-strip p { color: rgba(255,255,255,0.85); margin-top: 8px; font-size: 17px; }
.cta-strip__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer { background: var(--text); color: #c8c8c8; padding: var(--s-7) 0 var(--s-3); }
.footer__row { gap: var(--s-5); }
.footer h4 { color: #fff; margin-bottom: var(--s-2); font-size: 13px; letter-spacing: 0.14em; }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-2); }
.footer__brand .nav__logo-mark { background: #fff; color: var(--text); }
.footer__word { color: #fff; }
.footer__word small { color: var(--accent); }
.footer__about { font-size: 14px; color: #9a9a9a; line-height: 1.55; }
.footer__list { display: flex; flex-direction: column; gap: 8px; }
.footer__list a, .footer__list li { font-size: 14px; color: #9a9a9a; }
.footer__list a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: 1px solid #1f1f1f;
  display: flex; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap;
  font-size: 12px; color: #6b6b6b;
  letter-spacing: 0.05em;
}

/* ---- Reveal animation (legacy fallback, GSAP handles modern path) ---- */
.reveal { opacity: 1; transform: none; }

/* GSAP-controlled reveals — start hidden, GSAP animates in */
[data-reveal] { opacity: 0; }
.no-js [data-reveal], html.no-gsap [data-reveal] { opacity: 1; }

/* Lenis smooth-scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

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

/* Section header structure for char-reveal (data-style 13) */
.section-header { max-width: 720px; margin-bottom: var(--s-6); }
.section-header h2 { margin-bottom: var(--s-2); }

/* Subtle parallax wrapper — overflow hidden so scale doesn't leak */
[data-parallax] { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none; animation: none; }
  .reveal, [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  .section { padding: var(--s-7) 0; }
  .col-3 { grid-column: span 6; }
  .col-4 { grid-column: span 6; }
  .col-6 { grid-column: span 12; }
  .hero__row, .split { gap: var(--s-5); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .contacts-list li { grid-template-columns: 130px 1fr; }
}

@media (max-width: 720px) {
  :root { --container: 100%; }
  .container { padding: 0 20px; }

  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  body { font-size: 16px; }

  .section { padding: var(--s-6) 0; }
  .section__head { margin-bottom: var(--s-4); }
  .hero { padding: var(--s-5) 0 var(--s-6); }
  .hero__lead { font-size: 17px; }

  .row { gap: var(--s-3); }
  .col-3, .col-4, .col-6 { grid-column: span 12; }
  .trust { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
  .trust strong { font-size: 22px; }

  .kpi__num { font-size: 48px; }
  .kpi { padding: var(--s-5) 0; }

  /* Burger */
  .nav__burger { display: block; }
  .nav__menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-2) 20px var(--s-3);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 16px;
  }
  .nav__menu a:last-child { border-bottom: none; }
  .nav__menu a::after { display: none; }
  .nav__cta { margin-top: var(--s-2); justify-content: center; }

  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

  .cta-strip__row { flex-direction: column; align-items: flex-start; }
  .cta-strip__btns { width: 100%; }
  .cta-strip__btns .btn { flex: 1; }

  .footer__bottom { flex-direction: column; gap: 8px; }
  .contacts-list li { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
}
