/* ════════════════════════════════════════════════════════════
   EOS — Calm System v2
   Principles: photography-first, alternating tiles,
   centered composition, single subtle accent, body 17px,
   negative letter-spacing on display, minimal chrome.
   ════════════════════════════════════════════════════════════ */

:root {
  /* Color — true white / parchment / OLED black + 1 accent */
  --bg: #ffffff;
  --bg-parchment: #f5f5f3;     /* warm off-white for alternating tiles */
  --ink: #1d1d1f;              /* near-black, never pure black */
  --ink-dim: #6e6e73;
  --ink-faint: #a1a1a6;
  --hairline: rgba(29, 29, 31, 0.10);
  --hairline-soft: rgba(29, 29, 31, 0.06);

  --tile-dark: #1a1a1c;        /* dark tile surface */
  --tile-dark-2: #15151a;      /* slightly different for adjacency */
  --on-dark: #f5f5f3;
  --on-dark-dim: #a1a1a6;

  --accent: #E5391A;           /* dawn red — used very rarely */

  /* Grid */
  --margin: clamp(20px, 5vw, 80px);
  --tile-padding: clamp(72px, 12vh, 140px);
  --content-max: 1440px;

  /* Type */
  --t-display: 'Inter Tight', 'Inter', 'Spoqa Han Sans Neo', -apple-system, sans-serif;
  --t-body: 'Spoqa Han Sans Neo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --t-mono: 'Inter', monospace;

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

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

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

body {
  font-family: var(--t-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

::selection { background: var(--ink); color: #fff; }

/* ════════════════════════════════════════════════════════════
   NAV — slim, calm
   ════════════════════════════════════════════════════════════ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline-soft);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.nav-in {
  height: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--margin);
  display: flex; align-items: center; justify-content: space-between;
}

.nav.is-dark {
  background: rgba(20, 20, 22, 0.66);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
}

.nav-mark {
  font-family: var(--t-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: inherit;
}
.nav-mark .dot { color: var(--accent); }

.nav-links {
  display: flex; gap: 32px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.nav-links a {
  opacity: 0.78;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }

.nav-cta {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.005em;
  display: flex; align-items: center; gap: 6px;
  opacity: 0.86;
  transition: opacity 0.2s, gap 0.3s var(--ease);
}
.nav-cta:hover { opacity: 1; gap: 10px; }
.nav-cta::after { content: '→'; font-size: 13px; opacity: 0.6; }

.ham {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; gap: 5px;
  align-items: center;
}
.ham span {
  display: block; width: 18px; height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 90;
  background: var(--bg);
  padding: 96px var(--margin) 40px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul { list-style: none; }
.mobile-menu ul a {
  display: block;
  padding: 18px 0;
  font-family: var(--t-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--hairline);
}

/* ════════════════════════════════════════════════════════════
   TILE — the workhorse component
   centered, full-bleed, alternating light/dark
   ════════════════════════════════════════════════════════════ */

.tile {
  position: relative;
  width: 100%;
  padding: var(--tile-padding) var(--margin) 0;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: var(--bg);
  color: var(--ink);
}

.tile.parchment { background: var(--bg-parchment); }
.tile.dark { background: var(--tile-dark); color: var(--on-dark); }
.tile.dark-2 { background: var(--tile-dark-2); color: var(--on-dark); }

.tile-eye {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.tile.dark .tile-eye, .tile.dark-2 .tile-eye { color: var(--on-dark-dim); }

.tile-title {
  font-family: var(--t-display);
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin-bottom: 14px;
  text-wrap: balance;
}

.tile-sub {
  font-family: var(--t-display);
  font-size: clamp(22px, 2.4vw, 25px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin-bottom: 28px;
  max-width: 28ch;
  text-wrap: balance;
}
.tile.dark .tile-sub, .tile.dark-2 .tile-sub { color: var(--on-dark-dim); }

.tile-ctas {
  display: flex; gap: 28px; flex-wrap: wrap;
  justify-content: center;
}

.tile-link {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.3s var(--ease);
  position: relative;
}
.tile.dark .tile-link, .tile.dark-2 .tile-link { color: var(--on-dark); }
.tile-link::after { content: '›'; font-size: 16px; transition: transform 0.3s var(--ease); }
.tile-link:hover { gap: 12px; }
.tile-link.muted { color: var(--ink-dim); }
.tile.dark .tile-link.muted, .tile.dark-2 .tile-link.muted { color: var(--on-dark-dim); }

.tile-media {
  margin-top: clamp(40px, 6vh, 72px);
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: center;
}

.tile-media .tile-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: rgba(0,0,0,0.04);
}
.tile.dark .tile-media .tile-img,
.tile.dark-2 .tile-media .tile-img { background-color: rgba(255,255,255,0.04); }

.tile-media .tile-img.no-bleed {
  max-width: 720px;
  aspect-ratio: 4 / 3;
}

/* Tile that has no image (pure text tile) */
.tile.text-only { padding-bottom: var(--tile-padding); }

/* Side-by-side variant for 2-up sections */
.tile.split {
  flex-direction: row;
  text-align: left;
  align-items: stretch;
  padding: 0;
  gap: 0;
}
.tile.split > .split-half {
  flex: 1;
  padding: var(--tile-padding) var(--margin);
  display: flex; flex-direction: column; justify-content: center;
}
.tile.split > .split-half.media {
  padding: 0;
  background-size: cover;
  background-position: center;
  background-color: rgba(0,0,0,0.04);
  min-height: 60vh;
}

/* Hero variant — taller, headline-first */
.tile.hero {
  min-height: 100svh;
  padding-top: clamp(120px, 18vh, 200px);
  justify-content: flex-start;
}
.tile.hero .tile-title {
  font-size: clamp(56px, 9vw, 128px);
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.tile.hero .tile-sub {
  font-size: clamp(22px, 2.6vw, 30px);
}

/* Hero with full-bleed bg image */
.tile.hero-bleed {
  position: relative;
  min-height: 100svh;
  padding-top: clamp(120px, 18vh, 180px);
  color: var(--on-dark);
  background: #0a0a0a;
}
.tile.hero-bleed .hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #0a0a0a;
  z-index: 0;
  will-change: transform;
}
.tile.hero-bleed::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.tile.hero-bleed > * { position: relative; z-index: 2; }
.tile.hero-bleed .tile-eye { color: rgba(245,245,243,0.78); }
.tile.hero-bleed .tile-sub { color: rgba(245,245,243,0.86); }
.tile.hero-bleed .tile-link { color: var(--on-dark); }
.tile.hero-bleed .tile-link.muted { color: rgba(245,245,243,0.7); }

/* ════════════════════════════════════════════════════════════
   GRID — small product cards
   layouts: tile-stack (default), 2col, 3col
   ════════════════════════════════════════════════════════════ */

.grid-section {
  padding: var(--tile-padding) var(--margin);
  background: var(--bg);
}

.grid-section.parchment { background: var(--bg-parchment); }

.grid-head {
  max-width: var(--content-max);
  margin: 0 auto clamp(40px, 6vh, 72px);
  text-align: center;
}
.grid-head .gh-eye {
  font-size: 14px;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.grid-head .gh-title {
  font-family: var(--t-display);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.pgrid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1vw, 14px);
}

.pgrid.is-3col { grid-template-columns: repeat(3, 1fr); }
.pgrid.is-stack { grid-template-columns: 1fr; gap: 0; }

.pcard {
  background: var(--bg-parchment);
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 32px 0;
  min-height: 480px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: background 0.3s var(--ease);
}

.pcard.dark { background: var(--tile-dark); color: var(--on-dark); }
.pcard.parchment { background: var(--bg-parchment); }
.pcard.white { background: #ffffff; }

.pcard-eye {
  font-size: 13px;
  color: var(--ink-dim);
  margin-bottom: 10px;
}
.pcard.dark .pcard-eye { color: var(--on-dark-dim); }

.pcard-title {
  font-family: var(--t-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 6px;
  text-wrap: balance;
}

.pcard-sub {
  font-size: 15px;
  color: var(--ink-dim);
  margin-bottom: 20px;
  text-wrap: balance;
}
.pcard.dark .pcard-sub { color: var(--on-dark-dim); }

.pcard-ctas {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 8px;
}

.pcard-media {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
}
.pcard-media .pc-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: rgba(0,0,0,0.04);
  transition: transform 1s var(--ease);
}
.pcard.dark .pcard-media .pc-img { background-color: rgba(255,255,255,0.04); }
.pcard:hover .pcard-media .pc-img { transform: scale(1.015); }

/* 3col cards are smaller */
.pgrid.is-3col .pcard {
  min-height: 420px;
  padding: 40px 24px 0;
}
.pgrid.is-3col .pcard-title { font-size: clamp(22px, 2vw, 32px); }
.pgrid.is-3col .pcard-sub { font-size: 14px; }

/* ════════════════════════════════════════════════════════════
   PULLQUOTE — calm, centered
   ════════════════════════════════════════════════════════════ */

.pullquote {
  padding: clamp(100px, 14vh, 180px) var(--margin);
  background: var(--bg);
  text-align: center;
}
.pullquote.parchment { background: var(--bg-parchment); }

.pullquote-body {
  max-width: 18ch;
  margin: 0 auto;
  font-family: var(--t-display);
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
.pullquote-cred {
  margin-top: 32px;
  font-size: 14px;
  color: var(--ink-dim);
}

/* ════════════════════════════════════════════════════════════
   CONTACT — calmer, centered
   ════════════════════════════════════════════════════════════ */

.contact {
  padding: clamp(100px, 14vh, 160px) var(--margin);
  background: #f5f5f7;
  text-align: center;
}
.contact-eye {
  font-size: 14px;
  color: var(--ink-dim);
  margin-bottom: 14px;
}
.contact-title {
  font-family: var(--t-display);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 16px;
  text-wrap: balance;
}
.contact-sub {
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 38ch;
  margin: 0 auto 48px;
}
.contact-rows {
  max-width: 540px;
  margin: 0 auto 36px;
  display: flex; flex-direction: column; gap: 0;
}
.contact-rows .cr {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
  text-align: left;
}
.contact-rows .cr:last-child { border-bottom: 1px solid var(--hairline); }
.contact-rows .cr-lbl {
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: -0.005em;
}
.contact-rows .cr-val {
  font-family: var(--t-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  border-radius: 999px;
  letter-spacing: -0.005em;
  transition: background 0.3s var(--ease), gap 0.3s var(--ease);
}
.btn-pill:hover { background: #ff4421; gap: 14px; }

/* ════════════════════════════════════════════════════════════
   FOOTER — calm
   ════════════════════════════════════════════════════════════ */

footer.foot {
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: 56px var(--margin) 28px;
  font-size: 13px;
  color: var(--ink-dim);
}
.foot-top {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.foot-brand-mark {
  font-family: var(--t-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.foot-brand-mark .dot { color: var(--accent); }
.foot-brand-desc {
  font-size: 14px;
  line-height: 1.6;
  max-width: 28ch;
}
.foot-col-h {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.foot-col-ul { list-style: none; }
.foot-col-ul li { margin-bottom: 8px; }
.foot-col-ul a {
  font-size: 13px;
  color: var(--ink-dim);
  transition: color 0.2s;
}
.foot-col-ul a:hover { color: var(--ink); }

.foot-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between;
  font-size: 12px;
}
.foot-bottom .fb-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-bottom a:hover { color: var(--ink); }

/* ════════════════════════════════════════════════════════════
   DETAIL PAGE EXTRAS (el500.html)
   ════════════════════════════════════════════════════════════ */

.specs {
  padding: var(--tile-padding) var(--margin);
  background: var(--bg);
}
.specs-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.spec-cell {
  padding: 36px 28px 36px 0;
  border-top: 1px solid var(--hairline);
}
.spec-h {
  font-family: var(--t-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.spec-d {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
}

.colors-row {
  max-width: var(--content-max);
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.swatch { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.swatch .sw-block {
  aspect-ratio: 4 / 5;
  background: #e0e0e0;
  transition: transform 0.4s var(--ease);
}
.swatch:hover .sw-block { transform: translateY(-4px); }
.swatch .sw-meta {
  display: flex; justify-content: space-between;
  font-size: 12px;
  color: var(--ink-dim);
}
.swatch .sw-name { color: var(--ink); }

/* ════════════════════════════════════════════════════════════
   SCROLL PROGRESS
   ════════════════════════════════════════════════════════════ */

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress i {
  display: block; height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.06s linear;
}

/* ════════════════════════════════════════════════════════════
   REVEAL — initial states
   ════════════════════════════════════════════════════════════ */

.r-up { opacity: 0; transform: translateY(24px); }
.r-fade { opacity: 0; }
.r-img {
  opacity: 0;
  transform: translateY(36px) scale(1.02);
}

/* image placeholder for broken external URLs */
.img-placeholder {
  background: linear-gradient(180deg, #232323, #161616) !important;
  position: relative;
}
.img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.025) 0 10px,
    rgba(255,255,255,0.06) 10px 20px
  );
}
.img-placeholder::after {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  padding: 8px 14px;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .ham { display: flex; }
  .pgrid, .pgrid.is-3col { grid-template-columns: 1fr; }
  .tile.split { flex-direction: column; }
  .tile.split > .split-half.media { min-height: 50vh; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .colors-row { grid-template-columns: repeat(3, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .contact-rows .cr { grid-template-columns: 80px 1fr; gap: 16px; }
}

@media (max-width: 560px) {
  .colors-row { grid-template-columns: 1fr 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .tile-ctas, .pcard-ctas { flex-direction: column; gap: 14px; }
}
