/* =========================================================
   GLACÉ — Singapore Craft Ice Purveyor
   Design tokens
   ========================================================= */

:root {
  --ink: #090d11;
  --slate: #121a20;
  --slate-2: #17212a;
  --steel: #35424c;
  --steel-dim: #24303a;
  --frost: #f4f9fa;
  --frost-dim: #b9c8ce;
  --glacier: #bfe3ee;
  --glacier-dim: #7fa8b3;
  --gold: #c9a66b;
  --gold-bright: #ddc08c;
  --gold-dim: #6d5c3d;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --display-round: "Baloo 2", "Inter", sans-serif;

  --container: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--frost);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Faint ambient texture across the whole site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(191,227,238,0.05), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 10%, rgba(201,166,107,0.04), transparent 55%);
}

/* -----------------------------------------------------------
   Header / Nav
   ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 13, 17, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(53, 66, 76, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  width: auto;
}

.nav .brand img { height: 52px; }
.footer-top .brand img { height: 64px; }
.footer-bottom .brand img { height: 34px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 13.5px;
  letter-spacing: 0.03em;
}

.nav-links a {
  color: var(--frost-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--frost); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-gold {
  background: var(--gold);
  color: #14100a;
}
.btn-gold:hover { background: var(--gold-bright); }

.btn-ghost {
  background: transparent;
  border-color: var(--steel);
  color: var(--frost);
}
.btn-ghost:hover { border-color: var(--glacier-dim); color: var(--glacier); }

.nav-cta { flex-shrink: 0; }

.nav-toggle { display: none; }

/* -----------------------------------------------------------
   Typography helpers
   ----------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.03; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
h3 { font-size: 24px; line-height: 1.2; }

p { margin: 0; }
.lede {
  font-size: 19px;
  color: var(--frost-dim);
  max-width: 46ch;
  line-height: 1.65;
}

.section {
  position: relative;
  z-index: 1;
  padding: 110px 0;
  border-bottom: 1px solid rgba(53, 66, 76, 0.35);
}
.section-tight { padding: 72px 0; }

/* -----------------------------------------------------------
   Hero
   ----------------------------------------------------------- */
.hero {
  padding: 96px 0 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  border-bottom: 1px solid rgba(53, 66, 76, 0.35);
}

.hero-copy { position: relative; z-index: 1; }
.hero-copy .eyebrow { margin-bottom: 22px; display: block; }
.hero-copy h1 { margin-bottom: 26px; }
.hero-copy h1 em {
  font-style: italic;
  color: var(--glacier);
}
.hero-copy .lede { margin-bottom: 38px; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.hero-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--frost-dim);
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes drift {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(0.6deg); }
}
@keyframes shimmer {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.ice-cube { width: 100%; max-width: 460px; animation: drift 8s ease-in-out infinite; }
.ice-cube .facet-line { animation: shimmer 5s ease-in-out infinite; }
.ice-cube .facet-line:nth-child(2) { animation-delay: 1.1s; }
.ice-cube .facet-line:nth-child(3) { animation-delay: 2.3s; }

/* -----------------------------------------------------------
   Clarity spectrum (signature element)
   ----------------------------------------------------------- */
.spectrum-section { padding: 100px 0; }
.spectrum-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.spectrum-head .eyebrow { margin-bottom: 16px; display: block; }
.spectrum-head p.lede { margin: 0; }

.spectrum-track {
  position: relative;
  height: 4px;
  border-radius: 2px;
  margin: 0 6px 0;
  background: linear-gradient(90deg,
    #4b5a63 0%,
    #6f8890 22%,
    #9fc2cc 48%,
    #cfe8ee 72%,
    #eef8fa 100%);
}

.spectrum-items {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.spectrum-item {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--steel);
  transition: border-color 0.25s ease;
}
.spectrum-item::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--glacier);
  box-shadow: 0 0 0 3px rgba(191,227,238,0.12);
  transition: transform 0.25s ease;
}
.spectrum-item:hover { border-color: var(--glacier); }
.spectrum-item:hover::before { transform: scale(1.25); }

.spectrum-item .s-name {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--frost);
  margin-bottom: 6px;
  display: block;
}
.spectrum-item .s-clarity {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.spectrum-item .s-desc {
  font-size: 13px;
  color: var(--frost-dim);
  line-height: 1.5;
}

/* -----------------------------------------------------------
   Use-case triptych
   ----------------------------------------------------------- */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(53, 66, 76, 0.35);
  border: 1px solid rgba(53, 66, 76, 0.35);
}
.triptych-item {
  background: var(--ink);
  padding: 48px 40px;
}
.triptych-item .eyebrow { display: block; margin-bottom: 18px; }
.triptych-item h3 { margin-bottom: 14px; }
.triptych-item p { color: var(--frost-dim); font-size: 15px; line-height: 1.65; }

/* -----------------------------------------------------------
   Product cards (grid used on products.html, and teaser on home)
   ----------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(53, 66, 76, 0.35);
  border: 1px solid rgba(53, 66, 76, 0.35);
}

.product-card {
  background: var(--slate);
  padding: 44px;
  scroll-margin-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.product-glyph { width: 54px; height: 54px; flex-shrink: 0; }

.product-name { font-family: var(--serif); font-size: 30px; margin-bottom: 6px; }
.product-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

.product-desc { color: var(--frost-dim); font-size: 15px; line-height: 1.7; max-width: 46ch; }

.spec-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--steel-dim);
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec .spec-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frost-dim);
}
.spec .spec-value {
  font-size: 14.5px;
  color: var(--frost);
}

/* -----------------------------------------------------------
   Process steps (About page — real sequence, numbers earn their place)
   ----------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
}
.process-step { position: relative; padding-top: 28px; border-top: 1px solid var(--steel); }
.process-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
  position: absolute;
  top: -11px;
  left: 0;
  background: var(--ink);
  padding-right: 10px;
}
.process-step h3 { font-size: 20px; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: var(--frost-dim); line-height: 1.6; }

/* -----------------------------------------------------------
   Stats strip
   ----------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(53, 66, 76, 0.35);
  border: 1px solid rgba(53, 66, 76, 0.35);
}
.stat { background: var(--ink); padding: 38px 32px; }
.stat .stat-num { font-family: var(--serif); font-size: 44px; color: var(--glacier); }
.stat .stat-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--frost-dim); margin-top: 8px; text-transform: uppercase; }

/* -----------------------------------------------------------
   Quote / CTA band
   ----------------------------------------------------------- */
.cta-band {
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 700px 300px at 50% 0%, rgba(191,227,238,0.06), transparent 70%);
}
.cta-band .eyebrow { display: block; margin-bottom: 20px; }
.cta-band h2 { max-width: 18ch; margin: 0 auto 30px; }
.cta-band .lede { margin: 0 auto 40px; text-align: center; }
.cta-band .hero-actions { justify-content: center; }

/* -----------------------------------------------------------
   Forms (contact page)
   ----------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frost-dim);
}
.field input,
.field select,
.field textarea {
  background: var(--slate);
  border: 1px solid var(--steel);
  color: var(--frost);
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 15px;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--glacier); }
.field textarea { resize: vertical; min-height: 110px; }

.contact-info-block { margin-bottom: 36px; }
.contact-info-block .eyebrow { display: block; margin-bottom: 12px; }
.contact-info-block .val { font-family: var(--serif); font-size: 22px; color: var(--frost); }
.contact-info-block .sub { font-size: 13.5px; color: var(--frost-dim); margin-top: 4px; }

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */
.site-footer {
  padding: 60px 0 40px;
  position: relative;
  z-index: 1;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(53, 66, 76, 0.35);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--frost-dim);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: var(--frost-dim);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--glacier); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--frost-dim);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .brand { font-size: 18px; }

/* -----------------------------------------------------------
   Page hero (interior pages)
   ----------------------------------------------------------- */
.page-hero {
  padding: 90px 0 70px;
  border-bottom: 1px solid rgba(53, 66, 76, 0.35);
}
.page-hero .eyebrow { display: block; margin-bottom: 20px; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { margin-top: 24px; }

/* -----------------------------------------------------------
   Responsive
   ----------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--steel);
    color: var(--frost);
    width: 40px; height: 40px;
    border-radius: 2px;
  }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .triptych, .product-grid, .stats { grid-template-columns: 1fr; }
  .spectrum-items { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .spec-table { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .spectrum-items { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .spec-table { grid-template-columns: 1fr; }
}
