/* ============================================================
   Charlie & César — styles

   A single-screen card: header, two-column stage, footer, sized to
   sit inside one viewport on a normal desktop or laptop without
   scrolling. Below ~900px it stacks and is allowed to scroll —
   crushing the type to avoid a scrollbar costs more than it saves.

   Committed dark palette with brass hairlines; the page does not
   follow the visitor's light/dark preference by design.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* Surfaces — warm near-black, lifted in small steps */
  --bg:        #0c0d0f;
  --bg-lift:   #101215;
  --line:      #21252b;
  --line-soft: #191d22;

  /* Type */
  --ink:       #f4f1ea;
  --ink-soft:  #c5c1b7;
  --muted:     #8a8880;

  /* Brass */
  --brass:      #c6a664;
  --brass-lift: #e3cd9b;
  --brass-glow: rgba(198, 166, 100, .13);
  --brass-line: rgba(198, 166, 100, .30);
  --brass-grad: linear-gradient(135deg, #e8d6ab 0%, #c6a664 46%, #9a7b3f 100%);

  --font-display: "Didot", "Bodoni MT", "Playfair Display", "Iowan Old Style",
                  "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Arial, sans-serif;

  --container: 1140px;
  --gutter:    clamp(1.5rem, 5vw, 3.5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* Brass band across the very top — the one piece of pure ornament. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--brass-grad);
  z-index: 300;
}

/* Fine grain, so the flat dark reads as a material rather than a fill.
   Inline SVG data URI — no network request. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; display: block; }

h1 { margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--brass); text-underline-offset: 4px; }

ul { margin: 0; padding: 0; list-style: none; }
dl { margin: 0; }
address { font-style: normal; }

:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  background: var(--brass);
  color: #14110a;
  padding: .75rem 1.25rem;
  text-decoration: none;
  font-size: .875rem;
}
.skip-link:focus { left: 0; }

/* Shared small-caps label treatment */
.label,
.eyebrow,
.detail dt,
.header-location {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  flex: none;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand { display: inline-flex; align-items: center; gap: .8rem; }

/* Monogram: brass ring with a dark face, like a stamped seal. */
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 50%;
  background: var(--brass-grad);
  flex: none;
}
.brand-mark-inner {
  display: grid;
  place-items: center;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border-radius: 50%;
  background: var(--bg);
  color: var(--brass-lift);
  font-family: var(--font-display);
  font-size: .75rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  white-space: nowrap;
  color: var(--ink);
}
.amp {
  font-style: italic;
  background: var(--brass-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Stage ---------- */
.stage {
  flex: 1 1 auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-block: clamp(1.75rem, 4vh, 3.25rem);
  background:
    radial-gradient(680px 380px at 6% 0%, var(--brass-glow), transparent 68%),
    linear-gradient(180deg, var(--bg-lift), var(--bg) 70%);
}

.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* min-width:0 stops a long word from forcing the column wider than its track. */
.pitch { min-width: 0; }

/* Hairline dividing the two columns. */
.aside {
  position: relative;
  min-width: 0;
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}
.aside::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}

/* ---------- Pitch ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-bottom: 1.25rem;
  color: var(--brass);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--brass-grad);
  flex: none;
}

.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  margin-bottom: 1.25rem;
}
.title em {
  font-style: italic;
  background: var(--brass-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

/* ---------- Button ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8125rem 2rem;
  border: 1px solid transparent;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

/* Brass fill wipes in from the left on hover. Driven by background-size
   rather than a pseudo-element, so there is no stacking context to fight. */
.btn-primary {
  color: var(--brass-lift);
  border-color: var(--brass-line);
  background-image: var(--brass-grad);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  transition: background-size .45s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  color: #14110a;
  border-color: transparent;
  background-size: 100% 100%;
}

/* ---------- Capabilities ---------- */
.label { margin-bottom: .875rem; }

.capabilities {
  border-top: 1px solid var(--line);
  margin-bottom: 1.75rem;
}
.capabilities li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .5625rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-soft);
  transition: color .3s var(--ease);
}
.capabilities li::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: none;
  transform: rotate(45deg) translateY(-2px);
  background: var(--brass);
  transition: transform .4s var(--ease);
}
.capabilities li:hover { color: var(--ink); }
.capabilities li:hover::before { transform: rotate(135deg) translateY(-2px); }

/* ---------- Details ---------- */
.details { display: grid; gap: .75rem; }

.detail {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: .75rem;
  align-items: baseline;
}
.detail dt { padding-top: .1rem; }
.detail dd {
  margin: 0;
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.5;
}
.detail a { text-decoration: none; }
.detail a:hover { text-decoration: underline; }

.save-link {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  margin-top: 1.25rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--line);
  width: 100%;
  color: var(--brass);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
}
.save-link::after {
  content: "";
  width: .875rem;
  height: 1px;
  background: var(--brass);
  transition: width .35s var(--ease);
}
.save-link:hover { color: var(--brass-lift); }
.save-link:hover::after { width: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  flex: none;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-soft);
  padding-block: .875rem;
}
.footer-legal {
  margin: 0;
  color: var(--muted);
  font-size: .6875rem;
  letter-spacing: .04em;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

/* Short-but-wide viewports: pull the vertical rhythm in further. */
@media (min-width: 901px) and (max-height: 760px) {
  .title { font-size: clamp(2rem, 3.4vw, 2.75rem); margin-bottom: 1rem; }
  .lede { font-size: .875rem; line-height: 1.65; margin-bottom: 1.375rem; }
  .eyebrow { margin-bottom: 1rem; }
  .capabilities li { padding: .4375rem 0; font-size: .9375rem; }
  .capabilities { margin-bottom: 1.25rem; }
}

/* Stacked: one column, and scrolling is allowed. */
@media (max-width: 900px) {
  .stage { padding-block: clamp(2rem, 6vw, 3rem); }

  .stage-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .aside {
    padding-left: 0;
    margin-left: 0;
    padding-top: 2.25rem;
  }
  /* Divider moves from the side to the top. */
  .aside::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--line), transparent);
  }

  .title { font-size: clamp(2.25rem, 8vw, 3rem); }
  .lede { font-size: 1rem; }
  .btn { width: 100%; }
}

@media (max-width: 520px) {
  .header-location { display: none; }
  .detail { grid-template-columns: 1fr; gap: .125rem; }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  body { background: #fff; color: #000; display: block; }
  body::before, body::after { display: none; }
  .btn, .save-link, .skip-link { display: none; }
  .stage { display: block; background: none; }
  .stage-grid { display: block; }
  .aside::before { display: none; }
  .title em, .amp { -webkit-text-fill-color: #000; color: #000; }
}
