/* ==========================================================================
   THE LAKE FOUNDATION
   name · menu · header · about · products · keep us with you · menu
   ========================================================================== */

/* --------------------------------------------------------------- typeface */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
}

/* ----------------------------------------------------------------- tokens */
:root {
  --bg: #ffffff;
  --black: #0b0b0b;
  --ink: #1a1a1a;
  --body: #6e6e6e;
  --soft: #9c9c9c;
  --faint: #c4c4c4;
  --rule: #e9e9e9;

  --yellow: rgba(240, 199, 58, 0.42);   /* the one colour on the page */

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
          "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 0, 0.15, 1);

  --gutter: clamp(1.5rem, 5.5vw, 4.5rem);
  --width: 1040px;
  --measure: 52ch;
  --anchor: clamp(16px, 5vh, 60px);

  --turn: 72s;   /* one full turn of the diamond */
}

/* ------------------------------------------------------------------ reset */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, p, ul, ol, figure { margin: 0; padding: 0; font-weight: inherit; }
ul, ol { list-style: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }

::selection { background: var(--black); color: var(--bg); }

:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 5px;
}
[tabindex="-1"]:focus { outline: none; }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -150%);
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--black);
  color: var(--bg);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

.shell {
  width: min(100% - (var(--gutter) * 2), var(--width));
  margin-inline: auto;
}

#home,
#about,
#products { scroll-margin-top: var(--anchor); }

.glyph {
  display: block;
  width: 15px;
  height: 15px;
  color: var(--soft);
}

/* ==========================================================================
   1 · THE NAME, CENTRED AT THE TOP, WITH THE MENU BENEATH IT
   ========================================================================== */
.bar {
  padding: clamp(1.5rem, 4vh, 2.2rem) 0 0;
  text-align: center;
}

.wordmark {
  font-size: clamp(1.1rem, 1.7vw, 1.24rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.012em;
  color: var(--black);
}

/* One row, three zones: a quiet label, the menu, a quiet label.
   The end zones hold a defined width, so the row reads as a triptych. */
.bar__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: clamp(1.5rem, 3.6vh, 2.3rem);
  padding: clamp(0.65rem, 1.7vh, 0.9rem) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.bar__end {
  min-width: 7rem;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.bar__end:first-child { grid-column: 1; justify-self: start; text-align: left; }
.bar__end:last-child { grid-column: 3; justify-self: end; text-align: right; }

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2rem);
}
.nav a {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
  transition: color 0.6s var(--ease-soft);
}
.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current] { color: var(--black); }
.nav a:not([aria-current]) { opacity: 0.72; }
.nav a:hover { opacity: 1; }

/* ==========================================================================
   THE HEADER — a diamond, and a sentence
   ========================================================================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2.6rem, 8vh, 4.4rem) 0 clamp(3.2rem, 10vh, 5rem);
}

.hero__diamond {
  width: clamp(72px, 9.6vw, 104px);
  height: clamp(72px, 9.6vw, 104px);
  color: var(--black);
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: turn var(--turn) linear infinite;
}

@keyframes turn {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero__sub {
  margin-top: clamp(1.5rem, 3.5vh, 2.1rem);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.004em;
  color: var(--ink);
  text-wrap: balance;
}

/* the yellow block, sitting behind one word */
.mark {
  background: var(--yellow);
  padding: 0.12em 0.22em 0.16em;
  margin: 0 -0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: clamp(2.4rem, 7vh, 4.2rem) 0; }

/* the divider: a small label, centred between two short rules */
.label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: clamp(1.4rem, 3vh, 1.9rem);
}
.label h2 {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.label__rule {
  flex: 0 1 clamp(2rem, 7vw, 4.5rem);
  height: 1px;
  background: var(--rule);
}

/* ------------------------------------------------------------- ABOUT US */
.section--about { text-align: center; }

.prose {
  max-width: var(--measure);
  margin-inline: auto;
  color: var(--body);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.004em;
  text-wrap: pretty;
}
.prose p + p {
  margin-top: 1.1em;
  color: var(--ink);
}

/* ------------------------------------------------------------- PRODUCTS */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.product { border-left: 1px solid var(--rule); }
.product:first-child { border-left: 0; }

.product__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.35rem 1.45rem 0;
}
.product + .product .product__inner { padding-left: 1.35rem; }
.product:first-child .product__inner { padding-left: 0; }

.product__index {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--faint);
  transition: color 0.7s var(--ease-soft);
}

.product__name {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--black);
}

.product__line {
  margin-top: 0.4rem;
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--soft);
  transition: color 0.7s var(--ease-soft);
}

.product__state {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* STRAND — the one door that opens */
.product--live .product__inner { cursor: pointer; }
.product--live .product__state {
  color: var(--faint);
  opacity: 0.6;
  padding-left: 0.2rem;
  transform: translateX(-3px);
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-soft);
}
.product--live .product__state .glyph { width: 14px; height: 14px; }
.product--live .product__inner:hover .product__index,
.product--live .product__inner:focus-visible .product__index { color: var(--soft); }
.product--live .product__inner:hover .product__line,
.product--live .product__inner:focus-visible .product__line { color: var(--body); }
.product--live .product__inner:hover .product__state,
.product--live .product__inner:focus-visible .product__state {
  opacity: 1;
  transform: translateX(0);
}
.product--live .product__inner:active .product__name { opacity: 0.55; }

/* ==========================================================================
   4 · KEEP US WITH YOU — centred, with the field beneath it
   ========================================================================== */
.invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  padding: clamp(1.8rem, 4.4vh, 2.6rem) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* the same micro-label used by every other utility line on the page */
.invite__lead {
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
}
.invite__form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 21rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.6s var(--ease-soft);
}
.invite__form:focus-within { border-color: var(--black); }

.invite__field {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--black);
  background: none;
  border: 0;
  padding: 0.1rem 0;
}
.invite__field::placeholder { color: var(--faint); }
.invite__field:focus { outline: none; }

.invite__go {
  flex: none;
  display: flex;
  padding: 0.1rem;
  cursor: pointer;
}
.invite__go .glyph {
  transform: translateX(-2px);
  transition: transform 0.5s var(--ease-out), color 0.5s var(--ease-soft);
}
.invite__go:hover .glyph,
.invite__go:focus-visible .glyph { color: var(--black); transform: translateX(2px); }

/* ==========================================================================
   5 · THE LAST MENU — one shallow band, kept deliberately small
   ========================================================================== */
.foot {
  padding: clamp(1.3rem, 3.2vh, 1.7rem) 0 clamp(1.2rem, 3vh, 1.6rem);
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.foot__name {
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
}
.foot__motto {
  margin-top: 0.4rem;
  max-width: 30ch;
  font-size: 0.66rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--soft);
}

.foot__head {
  margin-bottom: 0.4rem;
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* the link lists run across, so the footer stays one shallow band */
.foot__col ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.95rem;
}
.foot__col a {
  font-size: 0.68rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--body);
  transition: color 0.6s var(--ease-soft);
}
.foot__col a:hover { color: var(--black); }

.foot__by {
  margin-top: clamp(0.8rem, 2vh, 1.1rem);
  text-align: center;
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ==========================================================================
   ARRIVAL / DEPARTURE
   ========================================================================== */
.veil {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease-soft);
}
body.is-entering .veil { opacity: 1; }

/* ==========================================================================
   SLOW REVEALS
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 1.1s var(--ease-soft), transform 1.1s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   NARROWER
   ========================================================================== */
@media (max-width: 860px) {
  .bar__end { min-width: 5.5rem; }

  .products { grid-template-columns: repeat(2, 1fr); }
  .product { border-left: 0; }
  .product:nth-child(even) { border-left: 1px solid var(--rule); }
  .product:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .product__inner,
  .product + .product .product__inner { padding-left: 1.15rem; }
  .product:nth-child(odd) .product__inner { padding-left: 0; }
}

@media (max-width: 700px) {
  .bar__end { display: none; }
  .bar__row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --gutter: 1.35rem; --measure: 100%; }

  .wordmark { font-size: 1.08rem; }
  .nav ul { gap: 1.15rem; }
  .nav a { font-size: 0.575rem; letter-spacing: 0.17em; }

  .hero { padding: clamp(2.2rem, 7vh, 3rem) 0 clamp(2.6rem, 8vh, 3.4rem); }

  .products { grid-template-columns: 1fr; }
  .product,
  .product:nth-child(even) { border-left: 0; }
  .product + .product { border-top: 1px solid var(--rule); }
  .product__inner,
  .product + .product .product__inner,
  .product:nth-child(odd) .product__inner { padding: 1.2rem 0; }
  .product__state { padding-top: 0.8rem; }

  .foot__grid { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* ==========================================================================
   STILLNESS, IF ASKED FOR
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  * {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal { opacity: 1; transform: none; }
}
