/* ============================================================
   GERT.OOO — placeholder
   Editorial brutalist spread: raw canvas ground, pine-green
   display type stepping across a single painting.
   ============================================================ */

@font-face {
  font-family: "Project Blackbird";
  src: url("fonts/ProjectBlackbird.woff2") format("woff2"),
       url("fonts/ProjectBlackbird.woff") format("woff"),
       url("fonts/ProjectBlackbird.otf") format("opentype"),
       url("fonts/ProjectBlackbird.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas:   #F2F0E9;   /* raw cotton ground */
  --ink:      #161511;   /* charcoal */
  --pine:     #1C3A2A;   /* deep forest green */
  --leaf:     #1E7A36;   /* deep leaf green — headline + the three o's */
  --hairline: #DCD8CC;
  --meta:     #6E6A5E;

  --font-display: "Project Blackbird", "Didot", "Bodoni 72", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Iowan Old Style", Palatino, Georgia, serif;

  --gutter: clamp(1rem, 2.5vw, 2.5rem);
}

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

html, body { height: 100%; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
}

/* Paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.35'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- The spread grid ---------------- */

.frame {
  position: relative;
  min-height: 100svh;
  padding: var(--gutter);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

/* Top metadata strip (left of the image) */
.meta-row {
  grid-column: 1 / 6;
  grid-row: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.meta-dim { color: var(--meta); }

/* The painting, bleeding off the top-right corner */
.work {
  grid-column: 6 / -1;
  grid-row: 1 / 3;
  position: relative;
  z-index: 1;
  height: min(62vh, 48rem);
  margin: calc(var(--gutter) * -1) calc(var(--gutter) * -1) 0 0;
}

.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work figcaption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--ink);
  color: var(--canvas);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  padding: 0.4rem 0.6rem;
}

/* The second painting, tucked up beneath the headline in the
   open middle columns — the display type overlaps its top edge */
.work-b {
  grid-column: 4 / 7;
  grid-row: 3;
  align-self: start;
  position: relative;
  z-index: 1;
  margin-top: clamp(-7rem, -9vh, -1.5rem);
}

.work-b img {
  width: 100%;
  display: block;
}

.work-b figcaption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  max-width: calc(100% - 2rem);
  background: var(--ink);
  color: var(--canvas);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  padding: 0.4rem 0.6rem;
}

/* Stepped headline, cutting across the painting */
.display {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: normal;
  text-transform: uppercase;
  color: var(--leaf);
  font-size: clamp(4rem, min(14.5vw, 22vh), 19rem);
  line-height: 1;
  letter-spacing: -0.015em;
  padding-top: clamp(1rem, 6vh, 4rem);
}

.line { display: block; overflow: hidden; }

/* tight stacking without clipping glyph tops: full-height line
   boxes pulled together, instead of a sub-1 line-height */
.line + .line { margin-top: -0.16em; }

.line .reveal-line { display: inline-block; }

.l2 { margin-left: 22%; }
.l3 { margin-left: 7%; }

/* Coming soon, lower left */
.soon {
  grid-column: 1 / 4;
  grid-row: 3;
  align-self: end;
  padding-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--pine);
}

/* Footer: email capture + mark */
.foot {
  grid-column: 1 / -1;
  grid-row: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 3.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.signup {
  flex: 1;
  max-width: 22rem;
  position: relative;
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.5rem;
}

.signup input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.signup input::placeholder { color: var(--meta); }

.signup input:focus { outline: none; }

.signup:focus-within { border-color: var(--leaf); }

.signup button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink);
}

.signup button:hover { color: var(--leaf); }

.signup-note {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.6rem;
  color: var(--pine);
  letter-spacing: 0.12em;
  text-transform: none;
}

/* The three o's of .ooo — a quiet exhale */
.ooo { display: inline-flex; gap: 0.45rem; }

.ooo i {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 3px solid var(--leaf);
  animation: breathe 4.5s ease-in-out infinite;
}

.ooo i:nth-child(2) { animation-delay: 0.4s; }

.ooo i:nth-child(3) {
  border-color: var(--ink);
  animation-delay: 0.8s;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.72); opacity: 0.55; }
}

/* ---------------- Entrance ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  animation-delay: calc(var(--d) * 130ms);
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

.reveal-line {
  transform: translateY(112%);
  animation: lift 1s cubic-bezier(0.16, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--d) * 130ms);
}

@keyframes lift {
  to { transform: none; }
}

/* ---------------- Small screens ---------------- */

@media (max-width: 860px) {
  .frame {
    display: block;
    padding: var(--gutter);
  }

  .meta-row { padding-bottom: 1.25rem; }

  .work {
    height: 46vh;
    margin: 0 calc(var(--gutter) * -1);
  }

  .display {
    font-size: clamp(4rem, 21vw, 8rem);
    padding-top: 1.5rem;
  }

  .l2 { margin-left: 12%; }
  .l3 { margin-left: 4%; }

  .work-b {
    width: 72%;
    margin: -1.5rem 0 0 auto;
  }

  .soon { padding-top: 2.25rem; }

  .foot {
    flex-wrap: wrap;
    padding-top: 2.5rem;
    row-gap: 1.75rem;
  }

  .signup { flex-basis: 100%; max-width: none; }
}

/* ---------------- A11y ---------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-line { animation: none; opacity: 1; transform: none; }
  .ooo i { animation: none; }
  .work img { transition: none; }
}
