/* self-hosted type: Geist (variable 300–600) and Instrument Serif italic, latin subsets */
@font-face{font-family:'Geist';font-style:normal;font-weight:300 600;font-display:swap;src:url(/fonts/Geist.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/InstrumentSerif-Italic.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  --bg: #0a0a0b;
  --fg: #e8e6e1;
  --muted: #7d7b76;
  --line: rgba(232, 230, 225, 0.10);
  --accent: #ffc900;
  --gutter: clamp(20px, 8vw, 132px);   /* one generous inset shared by every section */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Geist, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0a0a0b; }

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

/* atmosphere */
.grain {
  position: fixed; inset: 0; z-index: 4; pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

.glow {
  position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none;
  width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 201, 0, .075), rgba(255, 201, 0, 0) 72%);
  transform: translate(62vw, 42vh) translate(-50%, -50%);
  will-change: transform;
}

/* header */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--gutter);
  background: linear-gradient(to bottom, rgba(10, 10, 11, .92), rgba(10, 10, 11, 0));
  animation: fade 1.4s var(--ease) .2s both;
}
.brand { display: block; color: var(--fg); }
.brand svg { display: block; height: 22px; width: auto; }
.top-mail {
  font-size: 13px; letter-spacing: .01em; color: var(--muted);
  transition: color .5s var(--ease);
}
.top-mail:hover { color: var(--fg); }

/* hero */
main { position: relative; z-index: 1; }

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);   /* the sentence takes its width; the mark centers in the rest */
  align-items: center;
  gap: 0;                                        /* no gap, so the mark's column is exactly the empty space */
  padding: 140px var(--gutter) 96px;
}

.hero-line {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  font-weight: 300;
  letter-spacing: -.028em;
  line-height: 1.06;
  text-wrap: balance;
}
.hero-line em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.07em;
  letter-spacing: -.01em;
}
.hero-line .w { display: inline-block; will-change: transform, opacity; }

.mark {
  justify-self: center;             /* centered in the space left of the sentence */
  transform: translateY(-14%);      /* lifts the body of the lemon level with the text; the leaves reach above */
  height: clamp(220px, 48vh, 440px);
  color: var(--fg);
  touch-action: pan-y;            /* a finger can drag the mark sideways; vertical scroll still works */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.mark svg { display: block; height: 100%; width: auto; overflow: visible; }
.mark g.f { will-change: transform; }
.mark .sheen {
  transform-box: fill-box;
  transform: translateX(-100%);
  animation: sheen 9s var(--ease) var(--sheen-delay, 2.2s) infinite;
}

/* partner cards: three facets of the mark reveal them on hover (desktop only).
   A card takes the hero sentence's place; the sentence fades out underneath. */
.hero-copy { position: relative; }
.hero-line { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.hero-copy.swap .hero-line { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.partners {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: min(100%, 40ch);
  pointer-events: none;
}
.partner {
  position: absolute; left: 0; top: 50%; width: 100%;
  display: block;
  opacity: 0; transform: translateY(calc(-50% + 12px));
  transition: opacity .6s var(--ease) .1s, transform .6s var(--ease) .1s;
  pointer-events: none;
}
.partner.show { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.partner-kicker {
  display: block; margin-bottom: 22px;
  font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
}
.partner-logo { display: block; height: 40px; margin-bottom: 22px; color: var(--fg); }
.partner[data-partner="otte"] .partner-logo { height: 56px; }
.partner-logo svg, .partner-logo img { display: block; height: 100%; width: auto; }
.partner-name { display: block; margin-bottom: 8px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.partner-blurb {
  display: block; max-width: 34ch;
  font-size: clamp(1rem, 1.25vw, 1.2rem); font-weight: 300; line-height: 1.45; letter-spacing: -.005em;
  color: var(--fg); opacity: .8;
}
.partner-link {
  position: relative; display: inline-block; margin-top: 18px; padding-bottom: 3px;
  font-size: 13px; color: var(--muted);
  transition: color .5s var(--ease);
}
.partner:hover .partner-link { color: var(--fg); }
.partner-link::before, .partner-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; }
.partner-link::before { background: var(--line); }
.partner-link::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.partner:hover .partner-link::after { transform: scaleX(1); }

.mark g.hot { cursor: pointer; }
.mark g.hot path { transition: fill .45s var(--ease); }
.mark svg:hover g.hot { opacity: 1 !important; }
.mark.hint g.hot path {
  animation: breathe 5.2s ease-in-out infinite;
  animation-delay: calc(var(--phase, 0) * -1.75s);
}
.mark svg:hover g.hot path,
.mark g.hot.lit path { animation: none; }
.mark g.hot:hover path,
.mark g.hot.lit path { fill: var(--accent); }
@keyframes breathe {
  0%, 100% { fill: currentColor; }
  50%      { fill: color-mix(in srgb, var(--accent) 60%, currentColor); }
}

/* pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0 var(--gutter);
  padding: 64px 0 88px;
  border-top: 1px solid var(--line);
}
.pillar h2 {
  margin: 0 0 16px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
}
.pillar p {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1.05rem, 1.35vw, 1.32rem);
  font-weight: 300;
  line-height: 1.42;
  letter-spacing: -.008em;
}
.pillar:nth-child(2) { --i: 1; }
.pillar:nth-child(3) { --i: 2; }

/* contact */
.contact {
  margin: 0 var(--gutter);
  padding: 104px 0 128px;
  border-top: 1px solid var(--line);
}
.contact-kicker {
  margin: 0 0 20px;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
}
.contact-mail {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  font-size: clamp(1.45rem, 3.4vw, 3rem);
  font-weight: 300;
  letter-spacing: -.024em;
  line-height: 1.1;
}
.contact-mail::before,
.contact-mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
}
.contact-mail::before { background: var(--line); }
.contact-mail::after {
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
.contact-mail:hover::after { transform: scaleX(1); }

/* footer */
.foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between;
  padding: 0 var(--gutter) 30px;
  font-size: 12px; letter-spacing: .02em;
  color: var(--muted);
}

/* motion */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 130ms);
}
.reveal.in { opacity: 1; transform: none; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheen {
  0%   { transform: translateX(-100%); }
  26%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .top { animation: none; }
  .mark .sheen { animation: none; opacity: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .contact-mail::after { transition: none; }
  .partner, .partner-link::after, .mark g.hot path, .hero-line { transition: none; }
  .mark.hint g.hot path { animation: none; }
}

/* small screens */
@media (max-width: 820px) {
  .top { padding: 20px var(--gutter); }
  .brand svg { height: 18px; }
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 40px;
    padding: 120px var(--gutter) 72px;
  }
  .mark { order: -1; justify-self: start; transform: none; height: clamp(150px, 24vh, 220px); }
  .glow { width: 120vmax; height: 120vmax; transform: translate(70vw, 22vh) translate(-50%, -50%); }
  .pillars { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 64px; }
  .contact { padding: 72px 0 96px; }
  .hero-copy { min-height: 250px; display: flex; align-items: center; }
  .partners { width: 100%; }
  .partner-kicker { margin-bottom: 16px; }
  .partner-logo { height: 32px; margin-bottom: 16px; }
  .partner[data-partner="otte"] .partner-logo { height: 46px; }
  .partner-name { font-size: 16px; }
  .partner-blurb { font-size: 15px; max-width: none; }
  .partner-link { margin-top: 14px; }
}
@media (max-width: 480px) {
  .top-mail { display: none; }
}
