/* thinkshop
   Vignelli rationalism. Fellini cinema.
   1930s Florence through stained glass.

   Layer stack:
   1. Video — looping film, very low opacity
   2. Gradient panels — drift slowly, create glass opacity
   3. Canon SVG — the lead came between panels
   4. Content — scrolls over everything

   Typography: Helvetica Neue. One family.
   Drama through scale and weight, not decoration.
   Vignelli's actual typeface. Not our fantasy of it. */

:root {
  --black: oklch(0.05 0 0);
  --white: oklch(0.93 0.01 80);
  --dim: oklch(0.93 0.01 80 / 0.30);
  --ghost: oklch(0.93 0.01 80 / 0.06);
  --type: 'Helvetica Neue', Helvetica, 'Inter', Arial, sans-serif;

  /* Villard 9th-division margins */
  --margin-left: 11.1%;
  --margin-right: 22.2%;

  /* Glass panel base — oklch black with alpha
     Increased transparency so Florence shows through
     without needing max screen brightness */
  --glass-dark: oklch(0.05 0 0 / 0.35);
  --glass-clear: oklch(0.05 0 0 / 0);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: oklch(0.05 0 0);
  color: oklch(0.93 0.01 80);
  font-family: var(--type);
  font-weight: 300;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =============================================
   LAYER 1: FLORENCE HOME MOVIES
   Fixed behind everything. Low opacity.
   The light coming through the glass.
   ============================================= */

.film {
  position: fixed;
  top: 50%;
  left: 50%;
  /* Scale 140% and shift left 3%, up 2% to crop out
     KINO watermark (top-right) and timecode (bottom-center).
     Pixel-based overshoot ensures crop on all viewports. */
  transform: translate(-48%, -30%) scale(1.6);
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(1) contrast(1.1);
  z-index: 1;
  pointer-events: none;
}

/* =============================================
   LAYER 2: STAINED GLASS PANELS
   Gradient patches that drift slowly over the
   video. Dark areas obscure; lighter areas
   let Florence show through. The canon lines
   sit between these like lead came.
   ============================================= */

/* Single composite panel with oklch + alpha.
   "Windows" are nearly transparent; edges are
   semi-dark. The video bleeds through everywhere
   at different intensities. */

.glass-panel {
  position: fixed;
  top: -10vh;
  left: -10vw;
  width: 120vw;
  height: 120vh;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 40% 35% at 22% 30%,
      var(--glass-clear) 0%,
      var(--glass-dark) 100%
    ),
    radial-gradient(
      ellipse 35% 40% at 68% 55%,
      var(--glass-clear) 0%,
      var(--glass-dark) 100%
    ),
    radial-gradient(
      ellipse 32% 28% at 45% 80%,
      var(--glass-clear) 0%,
      var(--glass-dark) 100%
    );
  animation: drift-panel 50s ease-in-out infinite alternate;
}

/* Panels b and c are hidden — single element handles all windows */
.glass-panel--b,
.glass-panel--c {
  display: none;
}

@keyframes drift-panel {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(5vw, 3vh); }
  66%  { transform: translate(-3vw, -4vh); }
  100% { transform: translate(2vw, 5vh); }
}

/* =============================================
   LAYER 3: HYBRID CANON
   Lines stretch with viewport (SVG preserveAspectRatio="none").
   Circle is a separate element — perfect circle based on
   minority axis, positioned at top-center.
   ============================================= */

.canon-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3;
  pointer-events: none;
}

.canon-lines line {
  fill: none;
  stroke: var(--white);
  stroke-width: 0.5;
  opacity: 0.08;
}

/* Perfect circle: diameter = min(100vw, 100vh)
   Centered horizontally, touching the top of the viewport.
   Desktop (landscape): diameter = viewport height
   Mobile (portrait): diameter = viewport width */
.canon-circle {
  position: fixed;
  /* Size = minority axis */
  width: min(100vw, 100vh);
  height: min(100vw, 100vh);
  /* Center horizontally, top edge at viewport top */
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 0.5px solid oklch(0.93 0.01 80 / 0.05);
  z-index: 3;
  pointer-events: none;
}

/* =============================================
   LAYER 4: CONTENT
   Scrolls over everything.
   Helvetica Neue. Thin headlines, massive scale.
   One typeface. Vignelli discipline.
   ============================================= */

.content {
  position: relative;
  z-index: 4;
}

header {
  padding: 3rem var(--margin-right) 0 var(--margin-left);
}

.mark {
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dim);
}

/* --- Hero --- */

.hero {
  padding: 18vh var(--margin-right) 12vh var(--margin-left);
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
}

.hero h1 {
  font-weight: 200;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 14em;
}

/* --- Premise --- */

.premise {
  padding: 8vh var(--margin-right) 16vh var(--margin-left);
  margin-left: 11.1%;
}

.premise p {
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--dim);
  max-width: 28em;
}

/* --- Offerings --- */

.offerings {
  padding: 0 var(--margin-right) 12vh var(--margin-left);
}

.offering {
  padding: 6vh 0;
}

.offering + .offering {
  border-top: 0.5px solid var(--ghost);
}

.offering-number {
  font-weight: 200;
  font-size: 0.85rem;
  color: var(--dim);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1.5rem;
}

.offering h2 {
  font-weight: 200;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.offering p {
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--dim);
  max-width: 26em;
}

/* --- CTA --- */

.cta {
  padding: 16vh var(--margin-right) 20vh var(--margin-left);
}

.cta a {
  font-weight: 200;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white);
  text-decoration: none;
  border-bottom: 0.5px solid var(--dim);
  padding-bottom: 0.2rem;
  transition: border-color 0.4s ease;
  letter-spacing: -0.01em;
}

.cta a:hover {
  border-color: var(--white);
}

/* --- Footer --- */

footer {
  padding: 2.5rem var(--margin-right) 2.5rem var(--margin-left);
}

.footer-mark {
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0.5;
}

/* =============================================
   FILM GRAIN
   ============================================= */

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  z-index: 10000;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  :root {
    --margin-left: 7%;
    --margin-right: 7%;
  }

  .hero {
    min-height: 70vh;
    padding-top: 12vh;
    padding-bottom: 8vh;
  }

  .premise {
    margin-left: 0;
    padding-top: 4vh;
    padding-bottom: 10vh;
  }

  .premise p br,
  .offering p br { display: none; }
}
