@font-face { font-family: "Kinairo"; src: url("assets/fonts/Kinairo_font-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/InstrumentSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/InstrumentSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --obsidian: #101114;
  --ivory: #F1F7F0;
  --clementine: #FF5F06;
  --paper-2: rgba(241, 247, 240, .72);
  --paper-3: rgba(241, 247, 240, .5);
  --line: rgba(241, 247, 240, .16);
  --margin: clamp(20px, 5.5vw, 80px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  min-height: 100svh; display: flex; flex-direction: column;
  background: var(--obsidian); color: var(--ivory);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Brand wave, drifting very slowly */
.cs-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--obsidian); }
.cs-bg img { position: absolute; left: -8%; bottom: clamp(0px, 2vh, 24px); width: 116%; height: auto; mix-blend-mode: screen; animation: cs-drift 18s ease-in-out infinite alternate; }
/* the image's black blends away (screen), so only the glowing wave shows over Obsidian; footer area stays dark */
.cs-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--obsidian) 0, rgba(16,17,20,.85) 60px, rgba(16,17,20,0) 22%); }
@media (max-width: 760px) { .cs-bg img { left: -40%; width: 180%; bottom: 72px; } }
@keyframes cs-drift { from { transform: translate3d(0, -50%, 0) scale(1); } to { transform: translate3d(-3%, -52%, 0) scale(1.04); } }

.cs-top, .cs-main, .cs-foot { position: relative; z-index: 1; padding-inline: var(--margin); }
.cs-top { padding-top: clamp(24px, 4vw, 40px); }
.cs-top img { display: block; width: 132px; height: auto; }

.cs-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(56px, 10vh, 120px); max-width: 1440px; width: 100%; }
.cs-eyebrow { margin: 0 0 24px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-2); }
.cs-title { margin: 0; max-width: 11ch; font-family: "Kinairo", "Instrument Sans", sans-serif; font-weight: 400; font-size: clamp(52px, 9vw, 136px); line-height: .95; letter-spacing: -.045em; }
.cs-lead { margin: clamp(24px, 3vw, 36px) 0 0; max-width: 34em; font-size: clamp(17px, 1.4vw, 19px); color: rgba(241,247,240,.88); text-shadow: 0 1px 24px rgba(16,17,20,.6); }
a:focus-visible { outline: 2px solid var(--clementine); outline-offset: 4px; }

.cs-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 24px 28px; font-size: 13px; color: var(--paper-3); }

/* Entrance */
.cs-in { opacity: 0; transform: translateY(18px); animation: cs-in 1.1s var(--ease) forwards; }
.cs-in[data-d="1"] { animation-delay: .1s; } .cs-in[data-d="2"] { animation-delay: .2s; } .cs-in[data-d="3"] { animation-delay: .3s; }
@keyframes cs-in { to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .cs-foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-bg img, .cs-in { animation: none; opacity: 1; transform: none; }
}

/* Imposing layout: centred, headline at full scale, wave wider and brighter behind it */
.cs-top { display: flex; justify-content: center; }
.cs-top img { width: 148px; }
.cs-main { align-items: center; text-align: center; margin-inline: auto; max-width: none; }
.cs-title { max-width: none; font-size: clamp(64px, 14.5vw, 260px); line-height: .9; letter-spacing: -.05em; }
.cs-title > span { display: block; }
.cs-lead { max-width: 30em; margin-inline: auto; }
.cs-bg img { left: -20%; width: 140%; bottom: auto; top: 50%; transform-origin: 50% 50%; filter: saturate(1.15) brightness(1.15); }
.cs-bg::before { content: ""; position: absolute; left: 50%; top: 58%; width: 120vmax; height: 60vmax; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255,95,6,.16), rgba(255,95,6,0)); pointer-events: none; }
.cs-foot { justify-content: center; gap: 8px 40px; }
@media (max-width: 760px) { .cs-bg img { left: -60%; width: 220%; top: 62%; } .cs-title { font-size: clamp(56px, 17vw, 96px); } }
@media (max-width: 560px) { .cs-foot { align-items: center; text-align: center; } }

/* Cursor light on the headline: a radial spot painted through the letters (background-clip: text) */
.cs-line { --mx: -999px; --my: -999px; --a: 0; --base: var(--ivory); --spot: var(--clementine);
  background: radial-gradient(circle clamp(120px, 16vw, 280px) at var(--mx) var(--my), color-mix(in srgb, var(--spot) calc(var(--a) * 100%), var(--base)) 0%, var(--base) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--base); }
.cs-line--accent { --base: var(--clementine); --spot: #BFF7B5; }

/* Tagline headline: two long lines, sized to stay on one line each */
.cs-title { font-size: clamp(44px, 9.2vw, 168px); line-height: .95; }
@media (max-width: 760px) { .cs-title { font-size: clamp(40px, 11.5vw, 72px); } }

/* Smaller headline, enigmatic subtitle */
.cs-title { font-size: clamp(36px, 6.2vw, 112px); }
.cs-lead { max-width: 26em; margin-top: clamp(20px, 2.4vw, 32px); font-size: clamp(16px, 1.35vw, 20px); color: rgba(241,247,240,.7); letter-spacing: .005em; }
@media (max-width: 760px) { .cs-title { font-size: clamp(34px, 9.6vw, 56px); } }

/* Brand gradient film (black to Clementine) with grain, replacing the wave */
.cs-bg img { display: none; }
.cs-bg::before { display: none; }
.cs-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-grain { position: absolute; inset: -50%; background: url("assets/img/grain.png") repeat; background-size: 180px; opacity: .14; mix-blend-mode: overlay; animation: cs-grain 1.2s steps(6) infinite; }
@keyframes cs-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
/* keep the centre calm and the text readable over the bright side of the film */
.cs-bg::after { background: radial-gradient(70% 60% at 50% 52%, rgba(16,17,20,.42), rgba(16,17,20,.1) 70%, rgba(16,17,20,0) 100%), linear-gradient(0deg, rgba(16,17,20,.7) 0, rgba(16,17,20,0) 22%); }
.cs-line { --base: var(--ivory); --spot: #BFF7B5; }
.cs-line--accent { --base: #FFD2B8; --spot: #BFF7B5; }
.cs-eyebrow { color: rgba(241,247,240,.82); }
.cs-lead { color: rgba(241,247,240,.86); text-shadow: 0 1px 18px rgba(16,17,20,.5); }
.cs-foot { color: rgba(241,247,240,.7); }
@media (prefers-reduced-motion: reduce) { .cs-grain { animation: none; } }
