/* Fan Fusion design lab, round 4: f4 "Champagne Noir, one motion language".
   Tokens, serif accent, matte button and the sample term sheet are carried over from e4-champagne / e10.
   Round 4: the red thread, silk ring, bow, bloom, vignette and speed ghosts are gone; motion tokens live in f4-motion.css.
   Round 5 (g1): fly-through and scroll split gone; the self-drawn graphics live in g1-motion.css. */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/CormorantGaramond-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: #0B0A09;
  --bg-alt: #110F0D;
  --surface: #1A1714;
  --surface-2: #100E0C;
  --inset: #080706;
  --line: #2A2621;
  --line-strong: #3A342C;
  --ember: #D9C3A0;          /* champagne: the one accent (links, eyebrows, CTA) */
  --ember-hi: #E6D6BA;
  --ember-lo: #BFA67A;       /* deeper sand, fills with dark text */
  --on-ember: #17120B;
  --ink: #F4EEE4;            /* ivory */
  --body: #CCC3B6;
  --muted: #A1978A;
  --faint: #877D70;
  --sage: #9FD2B8;
  --grad: linear-gradient(180deg, #DECAA8 0%, #BFA67A 100%);
  --f-serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --paper: #F2EBDF;
  --paper-ink: #1F1A14;
  --paper-mute: #5C5244;
  --pen: #22304A;
  --stamp: #8A3A30;
  --engrave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='14'%3E%3Cg fill='none' stroke='%23D9C3A0' stroke-width='.7'%3E%3Cpath d='M0 7C16 1 32 1 48 7S80 13 96 7'/%3E%3Cpath d='M0 7C16 13 32 13 48 7S80 1 96 7' stroke-opacity='.55'/%3E%3C/g%3E%3C/svg%3E");
}

/* ------------------------------------------------------------ matte, not shiny */
.btn--primary { box-shadow: inset 0 1px 0 rgba(255, 250, 240, .28), 0 10px 26px -16px rgba(217, 195, 160, .38); border-color: rgba(240, 228, 205, .28); }
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 250, 240, .28), 0 16px 34px -18px rgba(217, 195, 160, .45); }
.btn--primary::after { display: none; }
.accent { text-shadow: none; }
.hero__title .accent {
  font-family: var(--f-serif); font-style: italic; font-weight: 500;
  font-size: 1.13em; letter-spacing: -0.015em; line-height: .9; color: var(--ember);
}
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 500; letter-spacing: 0; }
/* shared photos carry a violet cast; pull them toward warm sand so they sit in the champagne scheme */
.stage__photo img, .idpanel__photo img, .frame img { filter: sepia(.3) saturate(.8) hue-rotate(-6deg) brightness(.97); }

/* ------------------------------------------------------------ signature 1: sample term sheet */
.sheetrow { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.sheetrow__title { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance; }
.sheetrow__title .serif { color: var(--ember); font-size: 1.14em; }
.sheetrow__copy p:not(.eyebrow):not(.micro) { max-width: 440px; }

.tsheet { margin: 0; justify-self: center; width: 100%; max-width: 600px; transform: rotate(-1.1deg); }
.tsheet__paper {
  position: relative; padding: 30px 36px 22px; border-radius: 6px;
  background: linear-gradient(180deg, #F5EFE5 0%, var(--paper) 55%, #ECE3D4 100%);
  color: var(--paper-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 0 rgba(0, 0, 0, .4), 0 44px 80px -34px rgba(0, 0, 0, .95), 0 14px 30px -14px rgba(0, 0, 0, .8);
}
.tsheet__paper::before { /* a faint engraved band across the head, like security paper */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 96px; border-radius: 6px 6px 0 0;
  background: var(--engrave); opacity: .18; filter: saturate(.6) brightness(.55);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
  pointer-events: none;
}
.tsheet__label {
  position: absolute; top: 16px; right: 18px; margin: 0; padding: 4px 11px; border-radius: 999px;
  border: 1px dashed rgba(107, 85, 48, .55); color: #6B5530; background: rgba(255, 255, 255, .35);
  font: 700 10.5px/1.2 var(--f-body); letter-spacing: .2em; text-transform: uppercase;
}
.tsheet__kicker { position: relative; margin: 0 0 4px; font: 700 10.5px/1.4 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: #6E6250; }
.tsheet__parties { position: relative; margin: 0 0 16px; font: 500 30px/1.15 var(--f-serif); font-style: italic; color: var(--paper-ink); letter-spacing: -0.01em; }
.tsheet__parties span { color: #8C7A5C; }
.tsheet__rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(42, 36, 28, .28); }
.tsheet__rows li { position: relative; padding: 9px 0; border-bottom: 1px dashed rgba(42, 36, 28, .2); font: 500 13.5px/1.45 var(--f-mono); color: var(--paper-ink); }
.tsheet__type { display: flex; align-items: baseline; gap: 10px; }
.tsheet__k { color: var(--paper-mute); white-space: nowrap; }
.tsheet__lead { flex: 1 1 24px; min-width: 16px; border-bottom: 1px dotted rgba(42, 36, 28, .4); transform: translateY(-4px); }
.tsheet__v { font-weight: 700; text-align: right; }

.tsheet__sign { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 18px; }
.tsheet__sig { display: flex; flex-direction: column; justify-content: flex-end; min-height: 76px; }
.tsheet__ink { display: block; width: 100%; max-width: 230px; height: auto; margin: 0 0 -6px -4px; overflow: visible; }
.tsheet__pen { fill: none; stroke: var(--pen); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.tsheet__pen--under { stroke-width: 1.6; }
.tsheet__blank { display: block; height: 52px; }
.tsheet__line { margin: 0; padding-top: 6px; border-top: 1px solid rgba(42, 36, 28, .5); font: 700 10.5px/1.3 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--paper-mute); }
.tsheet__stamp {
  position: absolute; right: 6%; top: -2px; margin: 0; padding: 7px 16px 6px;
  border: 2px solid var(--stamp); border-radius: 5px; color: var(--stamp);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3.5px var(--stamp);
  font: 800 21px/1 var(--f-display); letter-spacing: .26em; text-transform: uppercase;
  transform: rotate(-9deg); opacity: .86; mix-blend-mode: multiply;
}
.tsheet__foot { margin: 16px 0 0; font: 500 11.5px/1.4 var(--f-body); color: #6E6250; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .sheetrow { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; padding-top: 40px; }
  .tsheet { transform: rotate(-.6deg); }
}
@media (max-width: 760px) {
  .tsheet__paper { padding: 50px 18px 18px; }
  .tsheet__label { top: 14px; left: 18px; right: auto; }
  .tsheet__parties { font-size: 25px; }
  .tsheet__rows li { font-size: 12px; padding: 8px 0; }
  .tsheet__type { gap: 8px; }
  .tsheet__sign { gap: 18px; }
  .tsheet__stamp { font-size: 17px; right: 2%; top: 4px; padding: 6px 12px 5px; }
}
@media (max-width: 420px) {
  .tsheet__lead { display: none; }
  .tsheet__type { justify-content: space-between; }
  .tsheet__k { white-space: normal; }
}


/* ================================================================ shared leftovers (g1: fly-through and scroll split removed) */
.cta-row { display: flex; justify-content: center; margin: 54px 0 8px; }
.sheetrow { align-items: start; }
