/* ============================================================
   WELT — Landing layout
   Imports tokens from ../../colors_and_type.css
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--bg-1); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

/* Selection — tasteful B&W */
::selection { background: var(--welt-black); color: var(--welt-white); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-narrow {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Section base ---------- */
section { padding-top: var(--s-11); padding-bottom: var(--s-11); }
section.tight { padding-top: var(--s-9); padding-bottom: var(--s-9); }
section.paper { background: var(--bg-2); }
section.dark { background: var(--bg-inverse); color: var(--fg-on-dark); }
section.dark p { color: var(--fg-on-dark-2); }
section.dark .eyebrow { color: var(--fg-on-dark-2); }

@media (max-width: 768px) {
  section { padding-top: var(--s-9); padding-bottom: var(--s-9); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header .inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  gap: var(--s-5);
}
.site-header nav {
  display: flex;
  gap: var(--s-6);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
}
.site-header nav a:hover { color: var(--fg-1); }
.site-header .nav-left { justify-self: start; }
.site-header .nav-right { justify-self: end; display: flex; gap: var(--s-5); align-items: center; }
.site-header .logo-mark {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: var(--welt-ink);
  display: inline-block;
  /* Optical alignment: caps in this serif sit slightly above the em-box midline,
     so nudge down a hair to centre against neighbouring buttons. */
  transform: translateY(1px);
}

@media (max-width: 768px) {
  .site-header nav { display: none; }
  /* Two-column layout on mobile: logo on the left (mirrors button on the right),
     keeps the centre clear for the device notch. */
  .site-header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-template-columns: none;
    height: 60px;
  }
  .site-header .logo-mark {
    font-size: 18px;
    padding-left: 0;
    letter-spacing: 0.36em;
  }
  .site-header .nav-right { justify-self: end; }
  .site-header .hide-sm { display: none; }
  .site-header .btn--sm { padding: 9px 14px; font-size: 10px; letter-spacing: 0.12em; }
}
@media (max-width: 480px) {
  .site-header .btn--sm .desktop-cta { display: none; }
  .site-header .btn--sm .mobile-cta { display: inline !important; }
  /* External-link arrow on the mobile CTA — slightly lifted and tracked
     so it reads as a glyph, not a punctuation character. */
  .site-header .btn--sm .ext-arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.9em;
    transform: translateY(-0.5px);
    letter-spacing: 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--welt-black);
  background: var(--welt-black);
  color: var(--welt-white);
  transition: background var(--dur-1) var(--ease-quiet), transform var(--dur-1) var(--ease-quiet);
  border-radius: 0;
  white-space: nowrap;
}
.btn:hover { background: var(--welt-gray-700); border-color: var(--welt-gray-700); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent; color: var(--welt-black);
}
.btn--ghost:hover { background: var(--welt-black); color: var(--welt-white); }

.btn--on-dark {
  background: var(--welt-white); color: var(--welt-black); border-color: var(--welt-white);
}
.btn--on-dark:hover { background: var(--welt-paper); border-color: var(--welt-paper); }

.btn--ghost-on-dark {
  background: transparent; color: var(--welt-white); border-color: var(--welt-white);
}
.btn--ghost-on-dark:hover { background: var(--welt-white); color: var(--welt-black); }

.btn--sm { padding: 10px 18px; font-size: 11px; }

.btn .arrow { font-family: var(--font-sans); font-weight: 300; }

/* Inline text link with em-dash style underline */
.text-link {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: opacity var(--dur-1) var(--ease-quiet);
}
.text-link:hover { opacity: 0.55; }

/* ---------- HERO ---------- */
.hero { padding-top: var(--s-9); padding-bottom: var(--s-10); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-9);
  align-items: center;
}
.hero .eyebrow { display: block; margin-bottom: var(--s-5); }
.hero .display {
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--welt-ink);
  max-width: 24ch;
  text-wrap: balance;
}
.hero .display em {
  font-style: italic;
  font-weight: 400;
  color: var(--welt-gray-500);
}
.hero .lead { margin-top: var(--s-6); max-width: 50ch; color: var(--fg-2); }
.hero .lead strong { font-weight: 500; color: var(--welt-ink); }

/* Editorial spec strip — anchors the quality claim with data */
.hero-specs {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--s-6);
  padding: var(--s-5) 0 var(--s-5);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  max-width: 560px;
}
.hero-specs .spec { display: flex; flex-direction: column; gap: 4px; }
.hero-specs .spec-val {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 24px; line-height: 1; letter-spacing: -0.005em;
  color: var(--welt-ink);
}
.hero-specs .spec-label {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-3);
}

.hero .actions { margin-top: var(--s-7); display: flex; gap: var(--s-5); flex-wrap: wrap; align-items: center; }
.hero .price-lockup {
  display: flex; align-items: baseline; gap: 8px;
}
.hero .price-lockup .price {
  font-family: var(--font-serif); font-weight: 400; font-size: 26px; letter-spacing: -0.005em;
  color: var(--welt-ink);
  white-space: nowrap;
}
.hero .price-lockup .from {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--fg-3);
}

.hero-image {
  position: relative;
}
.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--bg-3);
}
.hero-image .caption {
  position: absolute; bottom: -28px; left: 0;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-3);
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero { padding-top: var(--s-7); padding-bottom: var(--s-9); }
  .hero .display { font-size: clamp(36px, 7.4vw, 56px); }
  .hero-specs { grid-template-columns: 1fr 1fr 1fr; gap: var(--s-4); }
  .hero-specs .spec-val { font-size: 20px; }
}
@media (max-width: 560px) {
  .hero .actions { gap: var(--s-4); }
  .hero .actions .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 18px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }
  .hero .price-lockup { width: 100%; justify-content: flex-start; }
  .hero-specs {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
  }
  .hero-specs .spec-val { font-size: 16px; letter-spacing: -0.01em; }
  .hero-specs .spec-label { font-size: 9px; letter-spacing: 0.22em; }
}

/* ---------- Manifesto ---------- */
.manifesto { text-align: center; }
.manifesto h2 {
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.22;
  font-weight: 400;
  max-width: 26ch;
  margin: 0 auto;
  letter-spacing: -0.008em;
}
.manifesto h2 em { font-style: italic; color: var(--welt-gray-500); }
.manifesto .rule {
  width: 64px; height: 1px; background: var(--welt-black);
  margin: var(--s-7) auto 0;
}

/* ---------- Collection ---------- */
.collection .section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: end;
  margin-bottom: var(--s-9);
}
.collection .section-head h2 {
  font-size: clamp(40px, 5.2vw, 80px);
  line-height: 1; font-weight: 400; letter-spacing: -0.015em;
}
.collection .section-head .lede { color: var(--fg-2); max-width: 44ch; justify-self: end; text-align: right; font-size: 16px; line-height: 1.7; }

.products {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7);
}

.product-card {
  display: flex; flex-direction: column;
}
.product-card .photo {
  position: relative; aspect-ratio: 4 / 3; background: var(--bg-3); overflow: hidden;
}
.product-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease-quiet); }
.product-card:hover .photo img { transform: scale(1.02); }
.product-card .photo .corner-label {
  position: absolute; top: 16px; left: 16px;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--welt-white); mix-blend-mode: difference;
}
.product-card .meta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: var(--s-5);
}
.product-card h3 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 32px; letter-spacing: -0.005em; line-height: 1;
}
.product-card .price {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 22px;
  white-space: nowrap;
}
.product-card .desc { margin-top: var(--s-4); color: var(--fg-2); max-width: 44ch; font-size: 15px; }
.product-card .specs {
  margin-top: var(--s-5);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3);
  padding-top: var(--s-4); border-top: 1px solid var(--rule);
}
.product-card .specs dt {
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-3);
}
.product-card .specs dd {
  font-family: var(--font-serif); font-weight: 400; font-size: 22px; margin-top: 4px; color: var(--welt-ink);
}
.product-card .cta-row { margin-top: var(--s-6); }

@media (max-width: 880px) {
  .products { grid-template-columns: 1fr; gap: var(--s-8); }
  .collection .section-head { grid-template-columns: 1fr; }
  .collection .section-head .lede { justify-self: start; text-align: left; }
}
@media (max-width: 560px) {
  .product-card .specs dd { font-size: 18px; }
  .product-card h3 { font-size: 26px; }
  .product-card .cta-row .btn { width: 100%; justify-content: center; padding: 14px 18px; font-size: 12px; letter-spacing: 0.12em; }
}

/* ---------- Technology (dark) ---------- */
.tech .eyebrow { color: var(--fg-on-dark-2); }
.tech h2 {
  font-size: clamp(36px, 4.2vw, 64px); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15;
  max-width: 22ch; margin-top: var(--s-5);
}
.tech .intro { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: end; }
.tech .intro p { max-width: 52ch; color: var(--fg-on-dark-2); font-size: 17px; line-height: 1.75; }
.tech-stats {
  margin-top: var(--s-10);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule-on-dark);
}
.tech-stats .stat {
  padding: var(--s-7) var(--s-5) 0 0;
  border-right: 1px solid var(--rule-on-dark);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.tech-stats .stat:last-child { border-right: 0; padding-right: 0; }
.tech-stats .numeral {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(64px, 8.5vw, 144px);
  line-height: 0.92; letter-spacing: -0.03em;
  color: var(--welt-white);
  font-variant-numeric: lining-nums proportional-nums;
}
.tech-stats .numeral .unit {
  font-size: 0.35em; vertical-align: super;
  letter-spacing: 0; margin-left: 4px;
  font-family: var(--font-sans); font-weight: 300;
  color: var(--fg-on-dark-2);
}
.tech-stats .label { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--fg-on-dark-2); }
.tech-stats .desc { font-size: 13px; color: var(--fg-on-dark-2); line-height: 1.5; max-width: 24ch; }
.tech .footnote {
  margin-top: var(--s-8);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-on-dark-2);
  padding-top: var(--s-5); border-top: 1px solid var(--rule-on-dark);
}

@media (max-width: 960px) {
  .tech .intro { grid-template-columns: 1fr; gap: var(--s-5); }
  .tech-stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); border-top: 1px solid var(--rule-on-dark); }
  .tech-stats .stat { border-right: 0; padding-right: 0; }
  .tech-stats .stat:nth-child(odd) { border-right: 1px solid var(--rule-on-dark); padding-right: var(--s-5); }
}
@media (max-width: 520px) {
  /* Add extra inner gutter on the dark Tech section: the huge serif numerals
     have near-zero left side-bearing and visually butt against the screen
     edge unless we push the container in a bit more than the global gutter. */
  .tech .container { padding-left: calc(var(--gutter) + 12px); padding-right: calc(var(--gutter) + 12px); }
  .tech-stats { grid-template-columns: 1fr; }
  /* Override the <960 nth-child(odd) rule explicitly — equal specificity needs
     the same selector shape, otherwise odd cells keep their right border and
     leak a white hairline against the dark background. */
  .tech-stats .stat,
  .tech-stats .stat:nth-child(odd) {
    border-right: 0;
    padding: var(--s-6) 0 var(--s-5) 0;
    border-bottom: 1px solid var(--rule-on-dark);
  }
  .tech-stats .stat:first-child { padding-top: var(--s-7); }
  .tech-stats .stat:last-child { border-bottom: 0; }
  .tech-stats .desc { max-width: none; }
}

/* ---------- Why WELT ---------- */
.why .head { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-8); margin-bottom: var(--s-9); }
.why .head h2 { font-size: clamp(36px, 4.4vw, 68px); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
.why .head p  { font-size: 17px; color: var(--fg-2); max-width: 52ch; }

.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.why-grid .cell {
  padding: var(--s-7) var(--s-6) var(--s-8);
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: var(--s-4);
  min-height: 280px;
}
.why-grid .cell .num {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 18px; color: var(--fg-3); margin-bottom: var(--s-5);
}
.why-grid .cell h3 {
  font-family: var(--font-serif); font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: -0.005em;
}
.why-grid .cell p { font-size: 15px; color: var(--fg-2); line-height: 1.65; }

@media (max-width: 960px) {
  .why .head { grid-template-columns: 1fr; gap: var(--s-4); }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- Materials ---------- */
.materials .head { text-align: center; max-width: 720px; margin: 0 auto var(--s-9); }
.materials .head h2 { font-size: clamp(36px, 4.4vw, 64px); font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; }
.materials .head p { margin-top: var(--s-5); color: var(--fg-2); font-size: 16px; }

.materials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6);
}
.material {
  display: flex; flex-direction: column;
}
.material .frame { aspect-ratio: 1 / 1; background: var(--bg-3); overflow: hidden; }
.material .frame img { width: 100%; height: 100%; object-fit: cover; }
.material h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 400; margin-top: var(--s-5); letter-spacing: -0.005em; }
.material p { color: var(--fg-2); font-size: 14px; margin-top: var(--s-3); max-width: 42ch; }

@media (max-width: 880px) {
  .materials-grid { grid-template-columns: 1fr; }
  .material .frame { aspect-ratio: 4/3; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-inverse); color: var(--fg-on-dark); padding-top: var(--s-10); padding-bottom: var(--s-7); }
.site-footer .top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-8);
  padding-bottom: var(--s-9); border-bottom: 1px solid var(--rule-on-dark);
}
.site-footer .brand-mark {
  font-family: var(--font-serif); font-size: 44px; letter-spacing: 0.42em; padding-left: 0.42em;
}
.site-footer .brand-desc { margin-top: var(--s-5); max-width: 40ch; color: var(--fg-on-dark-2); font-size: 14px; line-height: 1.7; }
.site-footer h4 {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500; color: var(--fg-on-dark-2);
  margin-bottom: var(--s-5);
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-3); }
.site-footer a { font-size: 14px; color: var(--welt-white); }
.site-footer a:hover { opacity: 0.55; }
.site-footer .legal {
  margin-top: var(--s-6);
  display: flex; justify-content: space-between; gap: var(--s-5);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-on-dark-2);
}
.site-footer .legal .iso { font-family: var(--font-serif); letter-spacing: 0.04em; text-transform: none; font-size: 13px; }

@media (max-width: 880px) {
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .site-footer .legal { flex-direction: column; gap: var(--s-3); }
}
@media (max-width: 520px) {
  .site-footer .top { grid-template-columns: 1fr; }
}

/* ---------- Quiet motion ---------- */
.reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--dur-3) var(--ease-quiet), transform var(--dur-3) var(--ease-quiet);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
