/* ===========================================================
   GREYWATER — shared stylesheet
   Concept: the name splits into GREY (structure, upright,
   functional) and WATER (motion, italic, felt). Every type
   choice on the site plays one role or the other.
   =========================================================== */

@font-face {
  font-family: 'Haas Italic';
  src: url('assets/NeueHaasDisplay-RomanItalic.ttf') format('truetype');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --paper: #fdfdfd;
  --fog: #e5e5e5;
  --slate: #6d6d6d;
  --slate-line: #d4d4d4;
  --filtered: #a3a3a3;
  --filtered-pale: #ebebeb;
  --filtered-deep: #3f3f3f;
  --deep: #151515;

  --sans: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --italic: 'Haas Italic', var(--sans);

  --edge: 1440px;
  --gutter: clamp(24px, 5vw, 72px);
  --rule: 1px solid var(--slate-line);
}

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

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

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

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

.wrap {
  max-width: var(--edge);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

:focus-visible {
  outline: 2px solid var(--filtered-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- type roles ---------- */

.voice {
  font-family: var(--italic);
  font-style: italic;
  letter-spacing: -0.01em;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--italic);
  font-style: italic;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

p { margin: 0; }

.label {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--slate);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo img {
  height: 26px;
  width: auto;
}

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

nav.primary {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

nav.primary a {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}

nav.primary a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.25s ease;
}

nav.primary a:hover::after,
nav.primary a[aria-current="page"]::after {
  right: 0;
}

nav.primary a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  border: 1px solid var(--ink);
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.9rem !important;
}

.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--ink); color: var(--paper); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  margin: 5px 0;
}

@media (max-width: 780px) {
  .menu-toggle { display: block; }
  nav.primary {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px var(--gutter);
    gap: 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  nav.primary.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  nav.primary a { font-size: 1.4rem; }
}

/* ---------- footer ---------- */

footer.site-footer {
  background: var(--deep);
  color: var(--paper);
  padding: 88px 0 32px;
  margin-top: 160px;
}

footer .foot-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid #2c2c2c;
}

footer .foot-logo img {
  height: 24px;
  filter: invert(1);
  margin-bottom: 20px;
}

footer .foot-tagline {
  font-family: var(--italic);
  font-style: italic;
  font-size: 1.15rem;
  color: #d2d2d2;
  max-width: 28ch;
}

footer h4 {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  color: #8f8f8f;
  margin: 0 0 16px;
}

footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
footer a { font-size: 0.95rem; color: #dddddd; }
footer a:hover { color: var(--filtered); }

footer .foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.82rem;
  color: #717171;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  footer .foot-top { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 540px) {
  footer .foot-top { grid-template-columns: 1fr; }
}

/* ---------- reusable blocks ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 18px;
}

.rule { border: none; border-top: var(--rule); margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.95rem;
  border: 1px solid var(--ink);
  padding: 13px 26px;
  border-radius: 100px;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--paper); color: var(--ink); }

.spine-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--slate);
  letter-spacing: 0.04em;
}

section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head p { color: var(--slate); max-width: 42ch; font-size: 1.05rem; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- colorblocking + texture ---------- */

.chip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.85rem;
  flex: none;
}

.band-deep {
  background: var(--filtered-deep);
  color: #f1f1f1;
  position: relative;
  overflow: hidden;
}
.band-deep .label,
.band-deep .spine-label { color: #c6c6c6; }

.grain {
  position: relative;
  isolation: isolate;
}
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 1; }

.eyebrow-tag {
  display: inline-block;
  background: var(--filtered-pale);
  color: var(--filtered-deep);
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.card-dark {
  background: var(--deep) !important;
  color: var(--paper);
}
.card-dark p { color: #bababa; }
.card-dark .num { color: var(--filtered) !important; }

/* magnetic button wrapper: JS sets transform on hover for pointer:fine */
.magnetic { display: inline-block; will-change: transform; transition: transform 0.35s cubic-bezier(.2,.8,.2,1); }
