/* =============================================
   GUERRA — v9
   First person. Settled temperature.
   Lineation system — fragments land as facts.
   Entropy → I → II → III → IV → Intake → Closer
============================================= */

:root {
  --bg:    #0b0906;
  --bg-2:  #0e0c08;
  --bg-3:  #111009;
  --bg-4:  #14120a;
  --bg-5:  #17150c;

  --rule:  #232019;
  --rule-2:#2d2a20;

  --t-bright: #ede3d0;
  --t-base:   #c2b89f;
  --t-muted:  #756b58;
  --t-faint:  #383229;

  --ox:    #6b2218;
  --ox-2:  #8c3220;
  --ox-3:  #b35040;

  --display: 'Playfair Display', Georgia, serif;
  --body:    'Inter', -apple-system, sans-serif;

  --xs:   clamp(0.6875rem, 0.64rem + 0.22vw, 0.8125rem);
  --sm:   clamp(0.8125rem, 0.76rem + 0.26vw, 0.9375rem);
  --base: clamp(1rem,      0.9rem  + 0.4vw,  1.125rem);
  --md:   clamp(1.125rem,  0.98rem + 0.6vw,  1.4rem);
  --lg:   clamp(1.5rem,    1.1rem  + 1.6vw,  2.25rem);
  --xl:   clamp(2.25rem,   1.2rem  + 4vw,    4.5rem);
  --2xl:  clamp(3rem,      1.0rem  + 7.5vw,  7rem);
  --hero: clamp(5rem,      0.5rem  + 14vw,   15rem);

  --s2: .5rem;   --s3: .75rem;  --s4: 1rem;
  --s5: 1.25rem; --s6: 1.5rem;  --s8: 2rem;
  --s10: 2.5rem; --s12: 3rem;   --s16: 4rem;
  --s20: 5rem;   --s24: 6rem;   --s32: 8rem;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--body);
  font-size: var(--base);
  font-weight: 300;
  color: var(--t-base);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: italic; }
p { text-wrap: pretty; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--t-bright);
  text-wrap: balance;
}

::selection { background: var(--ox-2); color: #f0e4d2; }
:focus-visible { outline: 2px solid var(--ox-3); outline-offset: 3px; }

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

.wrap {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: clamp(var(--s6), 6vw, var(--s20));
}


/* =============================================
   COVER
============================================= */
.cover {
  position: relative;
  min-height: 140svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.cover__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cover__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  filter: saturate(0.92) contrast(0.96) brightness(1.08);
  background: var(--bg);
}

.cover__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(8,6,4,0.55) 0%,
      rgba(8,6,4,0.25) 10%,
      rgba(8,6,4,0.05) 25%,
      rgba(8,6,4,0.00) 45%
    ),
    linear-gradient(
      to right,
      rgba(8,6,4,0.78) 0%,
      rgba(8,6,4,0.45) 18%,
      rgba(8,6,4,0.08) 40%,
      rgba(8,6,4,0.00) 58%
    ),
    linear-gradient(
      to left,
      rgba(8,6,4,0.25) 0%,
      rgba(8,6,4,0.00) 38%
    ),
    rgba(8,6,4,0.04);
}

.cover__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.cover__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-block: clamp(var(--s5), 3vw, var(--s8)) clamp(var(--s12), 8vw, var(--s20));
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: clamp(var(--s6), 6vw, var(--s20));
  margin-bottom: auto;
}

.topbar__mark {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--sm);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--t-bright);
  opacity: 0.55;
}

.cover__statement {
  padding-inline: clamp(var(--s6), 6vw, var(--s20));
  padding-top: clamp(var(--s32), 22vw, 52vh);
  max-width: 720px;
}

.cover__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 1rem + 8vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--t-bright);
  text-shadow: 0 4px 64px rgba(0,0,0,0.8);
  max-width: 14ch;
}

.cover__rule {
  width: clamp(28px, 4vw, 50px);
  height: 1px;
  background: var(--ox-2);
  margin-block: clamp(var(--s5), 3vw, var(--s8));
}

.cover__velocity {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.875rem, 0.7rem + 0.7vw, 1.25rem);
  line-height: 1.7;
  color: var(--t-base);
  max-width: 42ch;
  letter-spacing: 0.005em;
  hyphens: none;
}

.cover__attr {
  margin-top: var(--s8);
  font-size: var(--xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-muted);
}

.cover__cue {
  display: flex;
  justify-content: flex-end;
  padding-inline: clamp(var(--s6), 6vw, var(--s20));
  margin-top: clamp(var(--s10), 7vw, var(--s20));
}

.cover__cue-line {
  display: block;
  width: 1px;
  height: clamp(36px, 5vw, 60px);
  background: linear-gradient(to bottom, var(--t-faint), transparent);
  animation: fadeDown 2.8s var(--ease) infinite;
}

@keyframes fadeDown {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  45%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; }
}


/* =============================================
   PANEL SYSTEM
============================================= */
.panel {
  padding-block: clamp(var(--s20), 12vw, var(--s32));
  border-top: 1px solid var(--rule);
}

.panel--a { background: var(--bg-2); }
.panel--b { background: var(--bg-3); }
.panel--c { background: var(--bg-4); }
.panel--d { background: var(--bg-3); }
.panel--e { background: var(--bg-5); }

.eyebrow {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: var(--sm);
  color: var(--ox-3);
  margin-bottom: clamp(var(--s8), 6vw, var(--s16));
  opacity: 0.7;
}


/* =============================================
   ENTROPY — unnumbered, ambient condition
   Line-by-line delivery. Each sentence is alone.
   Ends cold. No hinge.
============================================= */
.entropy {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding-block: clamp(var(--s20), 14vw, var(--s32));
}

.entropy__lines {
  max-width: 52ch;
  display: flex;
  flex-direction: column;
}

/* Default line — base size, muted */
.entropy__lines p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--md);
  line-height: 1.5;
  color: var(--t-muted);
  letter-spacing: -0.008em;
  margin-top: var(--s3);
}

/* First two lines — slightly brighter, slightly larger */
.entropy__lines p:nth-child(1) {
  font-size: var(--lg);
  color: var(--t-base);
  margin-top: 0;
  line-height: 1.35;
}
.entropy__lines p:nth-child(2) {
  font-size: var(--md);
  color: var(--t-base);
  margin-top: var(--s3);
}

/* Lines that open a new beat — extra breathing room above */
.entropy__gap {
  margin-top: var(--s8) !important;
}

/* Single-word fragments — compressed, tight, declarative */
.entropy__fragment {
  font-size: var(--base) !important;
  color: var(--t-muted) !important;
  letter-spacing: 0.01em !important;
  margin-top: var(--s2) !important;
}

/* The close — the coldest line, slightly brighter */
.entropy__close {
  font-size: var(--lg) !important;
  color: var(--t-base) !important;
  margin-top: var(--s10) !important;
  line-height: 1.35 !important;
  letter-spacing: -0.015em !important;
}


/* =============================================
   VERSE SYSTEM
   The new copy is lineated, not paragraphed.
   Each .verse__line is a discrete unit.
   Spacing creates the pacing.
============================================= */
.verse {
  max-width: 52ch;
}

/* The opening line — largest, brightest */
.verse__open {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--xl);
  line-height: 1.15;
  color: var(--t-bright);
  letter-spacing: -0.02em;
  margin-bottom: clamp(var(--s6), 4vw, var(--s10));
}

/* Standard lines — mid-register */
.verse__line {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--md);
  line-height: 1.5;
  color: var(--t-base);
  letter-spacing: -0.008em;
  margin-top: var(--s3);
}

/* Indented continuation — slightly muted, reads as subordinate */
.verse__line--indent {
  padding-left: var(--s6);
  color: var(--t-muted);
  font-size: var(--base);
}

/* Lines that open a new beat */
.verse__gap {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--md);
  line-height: 1.5;
  color: var(--t-base);
  letter-spacing: -0.008em;
  margin-top: var(--s10);
}

/* Enumerated single items — The file. The exposure. etc. */
.verse__list {
  margin-top: var(--s5);
  margin-bottom: var(--s2);
  padding-left: var(--s6);
  border-left: 1px solid var(--rule-2);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.verse__list p {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--base);
  color: var(--t-muted);
  line-height: 1.4;
  letter-spacing: -0.005em;
}

/* Single-beat fragments — short, conclusive */
.verse__fragment {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--base);
  color: var(--t-muted);
  letter-spacing: 0em;
  margin-top: var(--s2);
}

/* The closing line of a section — lands with weight */
.verse__close {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--lg);
  line-height: 1.25;
  color: var(--t-bright);
  letter-spacing: -0.015em;
  margin-top: clamp(var(--s10), 6vw, var(--s16));
}

/* Roman override — explanatory lines that follow a thesis statement */
.verse__roman {
  font-style: normal !important;
  color: var(--t-muted);
  font-size: var(--base);
  font-weight: 300;
}

/* Roman, base brightness — used for the Deliverable A structural contrast lines */
.verse__roman--mid {
  font-style: normal !important;
  color: var(--t-base);
  font-size: var(--base);
  font-weight: 300;
  margin-top: var(--s3);
}

/* Placeholder while Fides answers arrive */
.verse__placeholder {
  font-size: var(--xs) !important;
  font-family: var(--body) !important;
  font-style: normal !important;
  color: var(--t-faint) !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: var(--s8);
  padding: var(--s4);
  border: 1px dashed var(--rule-2);
  opacity: 0.5;
}


/* =============================================
   INTAKE
============================================= */
.intake__a {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--lg);
  font-weight: 400;
  line-height: 1.4;
  color: var(--t-muted);
  max-width: 40ch;
}

.intake__b {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--xl);
  font-weight: 500;
  line-height: 1.08;
  color: var(--t-bright);
  letter-spacing: -0.02em;
  margin-top: var(--s2);
  margin-bottom: clamp(var(--s10), 7vw, var(--s16));
}

.signal {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s5);
  padding: var(--s4) 0 var(--s4) var(--s6);
  border-left: 2px solid var(--ox-2);
  margin-bottom: clamp(var(--s10), 7vw, var(--s16));
  transition: border-color 300ms var(--ease);
}
.signal:hover { border-color: var(--ox-3); }

.signal__platform {
  font-size: var(--xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--t-faint);
  flex-shrink: 0;
}

.signal__handle {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--2xl);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--t-bright);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), opacity 180ms;
}
.signal:hover .signal__handle { border-color: var(--ox-3); opacity: 0.78; }

.signal__arr {
  font-size: var(--lg);
  color: var(--t-faint);
  align-self: center;
  transition: transform 300ms var(--ease), color 180ms;
}
.signal:hover .signal__arr { transform: translateX(6px); color: var(--ox-3); }

@media (max-width: 540px) {
  .signal { flex-direction: column; gap: var(--s2); }
  .signal__handle { font-size: var(--xl); }
  .signal__arr { display: none; }
}

.intake__attr {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--base);
  color: var(--t-muted);
}


/* =============================================
   CLOSER — Option B
   After the signal. Last thing the reader sees.
   Three sentences maximum. Fides writes the real version.
============================================= */
.closer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding-block: clamp(var(--s16), 10vw, var(--s24));
}

.closer__text {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--lg);
  line-height: 1.45;
  color: var(--t-muted);
  max-width: 44ch;
  letter-spacing: -0.01em;
}

.closer__text + .closer__text {
  margin-top: var(--s3);
  color: var(--t-base);
}

.closer__text--final {
  color: var(--t-bright) !important;
  font-weight: 500;
  font-size: var(--xl);
  letter-spacing: -0.02em;
  margin-top: var(--s4) !important;
}


/* =============================================
   FOOTER
============================================= */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding-block: clamp(var(--s8), 5vw, var(--s12));
  color: var(--t-faint);
  font-size: var(--xs);
  line-height: 1.72;
}

.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s4);
  margin-bottom: var(--s5);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--rule);
}

.footer__name {
  font-family: var(--display);
  font-size: var(--sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--t-muted);
  font-weight: 400;
}

.footer__link {
  font-size: var(--xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-faint);
  transition: color 180ms var(--ease);
}
.footer__link:hover { color: var(--t-muted); }

.footer p { max-width: 74ch; }

.footer__scope {
  color: var(--t-muted);
  margin-bottom: var(--s5);
  font-size: var(--xs);
  line-height: 1.72;
  max-width: 68ch;
}
