/* ==========================================================================
   KC Capital — "Private Office"
   The firm: an ivory page set in the wordmark's own Garamond family, green used
   only for the 32 px rules, hover and focus, hairlines as the one ornament, an
   ink footer. The first screen is the photograph alone with the mark whole and
   nothing over it; the navigation is a bar seated at the foot of the picture.
   S.H.Y.T.S.U (the product page) shares the bar, grid and footer and changes
   the voice: ink ground, Geist and Geist Mono, one amber accent.
   Every number here comes from the design brief (scratchpad/ref2/FINAL-BRIEF.md).
   ========================================================================== */

/* ---------- Fonts (self-hosted latin subsets) ---------- */
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/cormorant-garamond-500-latin.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}
@font-face{font-family:"EB Garamond";font-style:normal;font-weight:400 800;font-display:swap;src:url(/assets/fonts/eb-garamond-vf-latin.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}
@font-face{font-family:"Geist";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/geist-vf-latin.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}
@font-face{font-family:"Geist Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/geist-mono-400-latin.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}
/* metric-matched fallbacks so the swap does not reflow the tagline or the bar */
@font-face{font-family:"Cormorant Garamond Fallback";src:local("Times New Roman"),local("Liberation Serif");size-adjust:99%}
@font-face{font-family:"EB Garamond Fallback";src:local("Times New Roman"),local("Liberation Serif");size-adjust:101%}

/* ---------- Tokens ---------- */
:root {
  /* brand (from the logo files) */
  --ink: #14181B; --green: #1E5140; --ivory: #F5F3EE;
  /* on ivory */
  --text: var(--ink); --text-2: #5C5E5F;
  --rule: #E3E1DD; --rule-strong: #D3D2CE; --underline: rgba(20, 24, 27, 0.4);
  /* on ink */
  --on-ink: #F5F3EE; --on-ink-85: #D3D2CE; --on-ink-72: #B6B6B3; --on-ink-62: #A0A09E;
  --rule-on-ink: #2B2E30; --rule-on-ink-strong: #2F3234;
  /* product only */
  --p-raised: #1B2024; --p-amber: #FFAD33; --p-input-border: rgba(245, 243, 238, 0.2);
  /* type */
  --font-display: "Cormorant Garamond", "Cormorant Garamond Fallback", Garamond, "Times New Roman", serif;
  --font-text: "EB Garamond", "EB Garamond Fallback", Garamond, "Iowan Old Style", Georgia, serif;
  --font-p: "Geist", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-display: clamp(34px, 28.8px + 1.33vw, 48px); --lh-display: 1.08;
  --fs-h2: clamp(28px, 25px + 0.76vw, 36px); --lh-h2: 1.15;
  --fs-lede: 22px; --lh-lede: 1.5;
  --fs-body: 19px; --lh-body: 1.6;
  --fs-small: 15px; --lh-small: 1.4;
  --fs-legal: 14px; --lh-legal: 1.6;
  --measure: 560px; --measure-lede: 672px;
  /* layout */
  --max: 1280px; --gutter: clamp(24px, 5.5vw, 80px); --col-gap: 24px;
  --col: calc((min(var(--max), 100vw - 2 * var(--gutter)) - 11 * var(--col-gap)) / 12);
  --bar-h: 64px; --hero-min: 576px; --wordmark-w: 160px; --rule-w: 32px;
  /* rhythm: the only six vertical values */
  --s-12: 12px; --s-20: 20px; --s-24: 24px; --s-48: 48px; --s-112: 112px; --s-200: 200px;
  --section: var(--s-200);
  /* motion: one curve; three brief durations, plus the reveal and its safety net */
  --ease: cubic-bezier(0.19, 1, 0.22, 1); --t-hover: 200ms; --t-bar: 300ms; --t-hero: 600ms; --t-reveal: 800ms; --t-reveal-safety: 2500ms;
  /* focus */
  --focus-ring: 2px solid var(--green); --focus-offset: 3px;
}
@media (max-width: 767px) {
  :root {
    --lh-display: 1.12; --lh-h2: 1.2; --fs-lede: 19px; --fs-body: 18px; --fs-small: 16px;
    --bar-h: 56px; --wordmark-w: 140px; --section: var(--s-112);
  }
}
@media (max-width: 359px) { :root { --fs-small: 15px; } }
body[data-page="product"] { --section: var(--s-112); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: auto;
  background: var(--ivory);
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
::selection { background: var(--green); color: var(--ivory); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--ivory);
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

/* The one ornament: a 32 px green rule above each title */
.rule { display: block; width: var(--rule-w); height: 1px; background: var(--green); }
.title {
  margin-top: var(--s-20);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: 0;
}

main > section { scroll-margin-top: var(--bar-h); }

/* ==========================================================================
   Hero: the photograph alone, the mark whole, nothing over it
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  height: calc(100vh - var(--bar-h));
  height: min(calc(100svh - var(--bar-h)), 125vw);
  min-height: var(--hero-min);
}
.hero picture { display: block; width: 100%; height: 100%; }
.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.js .hero img { opacity: 0; transition: opacity var(--t-hero) var(--ease); }
.js.is-loaded .hero img { opacity: 1; }

/* ==========================================================================
   The bar: seated at the foot of the picture, then the sticky header
   ========================================================================== */
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: var(--bar-h);
  background: var(--ivory);
  border-bottom: 1px solid var(--rule-strong);
}
.bar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bar__links {
  display: flex;
  align-items: stretch;
  gap: 16px;
  height: 100%;
  margin-left: -10px;
}
.bar__links a {
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--font-text);
  font-weight: 500;
  font-size: var(--fs-small);
  line-height: 1;
  letter-spacing: 0;
  color: var(--text);
  transition: color var(--t-hover) var(--ease);
}
.bar__links a[aria-current="page"] { color: var(--green); }
.bar__links a:focus-visible { outline-offset: -6px; }
.bar__mark {
  display: block;
  width: var(--wordmark-w);
  opacity: 0;
  transition: opacity var(--t-bar) var(--ease);
}
.bar.is-stuck .bar__mark,
body[data-bar="static"] .bar__mark { opacity: 1; }
body[data-bar="static"] .bar__mark { transition: none; }

/* ==========================================================================
   First ivory screen: the name, the tagline, the intro
   ========================================================================== */
.intro { padding-top: var(--section); }
.intro__inner { max-width: 954px; }
.intro h1 {
  margin-top: var(--s-20);
  font-family: var(--font-text);
  font-weight: 500;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}
.tagline {
  margin-top: var(--s-12);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: 0;
}
.tagline span { display: inline-block; }
.intro__text {
  margin-top: var(--s-24);
  max-width: var(--measure-lede);
  font-size: var(--fs-lede);
  line-height: var(--lh-lede);
}

/* ==========================================================================
   About: the text, then the aerial photograph as a contained object on the right
   ========================================================================== */
.about { padding-top: var(--section); }
.about__grid { margin-top: var(--s-48); align-items: start; }
.about__figure { grid-column: 8 / -1; grid-row: 1; }
.about__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--rule);
}
.about__text { grid-column: 1 / 7; grid-row: 1; max-width: var(--measure); }
.about__text p + p { margin-top: var(--s-20); }
.about__lede { font-size: var(--fs-lede); line-height: var(--lh-lede); }
.about__text p:not(.about__lede) { color: var(--text-2); }

/* ==========================================================================
   Approach: the terminal image as a framed window beside hairline rows
   ========================================================================== */
.approach { padding-top: var(--section); }
.approach__grid { margin-top: var(--s-48); align-items: start; }
.approach__figure {
  grid-column: 1 / 7;
  padding: 4.5% 0;              /* the screenshot has side margins of about 5 %; give the code the same room top and bottom */
  background: #1E1E1E;          /* the terminal's own background, measured from the file */
  border: 1px solid var(--rule);
}
.approach__figure img { width: 100%; }
.approach__list { grid-column: 7 / -1; max-width: var(--measure); }

.rows li {
  padding: var(--s-24) 0;
  border-top: 1px solid var(--rule);
}
.rows li:last-child { border-bottom: 1px solid var(--rule); }
.rows h3 {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.3;
}
.rows h3 + p { margin-top: var(--s-12); color: var(--text-2); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: var(--section) 0; }
.contact__list { margin-top: var(--s-48); max-width: 1063px; }
.contact__list .label { color: var(--text-2); line-height: 1.4; }
.contact__list a {
  display: inline-block;
  margin-top: var(--s-12);
  font-size: var(--fs-lede);
  line-height: 1.4;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--underline);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  transition: text-decoration-color var(--t-hover) var(--ease);
}

/* ==========================================================================
   Footer (ink; identical on every page)
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding: var(--s-112) 0 var(--s-48);
}
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-24) var(--s-48);
}
.site-footer__brand { display: block; width: var(--wordmark-w); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 36px; }
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-small);
  line-height: 1;
  color: var(--on-ink-72);
  transition: color var(--t-hover) var(--ease);
}
.site-footer__rule { height: 1px; margin-top: var(--s-48); background: var(--rule-on-ink); }
.site-footer__disclaimer {
  margin-top: var(--s-24);
  max-width: var(--measure);
  font-size: var(--fs-legal);
  line-height: var(--lh-legal);
  color: var(--on-ink-62);
}
.site-footer :focus-visible { outline-color: var(--on-ink); }
.site-footer ::selection { background: var(--ivory); color: var(--ink); }

/* ==========================================================================
   404
   ========================================================================== */
.not-found { padding: var(--section) 0; }
.not-found__code {
  margin-top: var(--s-20);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 48px;
  line-height: 1;
}

/* ==========================================================================
   S.H.Y.T.S.U — the product page: ink, Geist, Geist Mono, one amber accent
   ========================================================================== */
body[data-page="product"] {
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-p);
  font-size: 17px;
  line-height: 1.6;
}
body[data-page="product"] :focus-visible { outline-color: var(--on-ink); }
body[data-page="product"] ::selection { background: var(--ivory); color: var(--ink); }

.p-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--on-ink-62);
}
.p-fine {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-ink-62);
  max-width: var(--measure);
}
.p-rule { height: 1px; background: var(--rule-on-ink); }
.p-h2 {
  font-weight: 500;
  font-size: clamp(22px, 19.5px + 0.42vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.p-body { color: var(--on-ink-72); max-width: var(--measure); }

.p-section { padding-top: var(--section); }

.p-hero__inner { max-width: 840px; }
.p-status { display: flex; align-items: center; gap: 10px; }
.p-status::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--p-amber);
}
.p-name {
  margin-top: var(--s-20);
  font-weight: 500;
  font-size: clamp(36px, 27.6px + 1.39vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.p-tagline {
  margin-top: var(--s-20);
  font-size: clamp(22px, 19.5px + 0.42vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--on-ink-85);
}
.p-lead {
  margin-top: var(--s-24);
  max-width: 640px;
  font-size: clamp(17px, 16.2px + 0.14vw, 19px);
  line-height: 1.55;
  color: var(--on-ink-72);
}
.p-hero__cta { margin-top: var(--s-24); width: max-content; }
.p-hero .p-fine { margin-top: var(--s-24); }

.p-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  background: var(--p-amber);
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease);
}

.p-h2--after-rule { margin-top: var(--s-24); }
.p-split { margin-top: var(--s-24); align-items: start; }
.p-talk { margin-top: var(--s-48); align-items: start; }
.p-split__head { grid-column: 1 / 6; }
.p-split__body { grid-column: 7 / -1; }
.p-split__body.p-body { margin-top: 0; }

.p-frame {
  padding: 32px;
  background: var(--p-raised);
  border: 1px solid var(--rule-on-ink-strong);
}
.p-frame .p-quote {
  display: block;
  margin-top: var(--s-12);
  font-family: var(--font-mono);
  font-size: clamp(16px, 15.6px + 0.07vw, 17px);
  line-height: 1.7;
  color: var(--p-amber);
}
.p-talk__frame { grid-column: 1 / 7; }
.p-talk__body { grid-column: 7 / -1; }

.p-table { margin-top: var(--s-48); }
.p-table li {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding: var(--s-24) 0;
  border-top: 1px solid var(--rule-on-ink);
}
.p-table li:last-child { border-bottom: 1px solid var(--rule-on-ink); }
.p-table .lead-in { grid-column: 1 / 6; font-weight: 500; color: var(--on-ink); }
.p-table .desc { grid-column: 6 / -1; max-width: var(--measure); color: var(--on-ink-72); }
.p-table .sentence { grid-column: 1 / 10; color: var(--on-ink-72); }

.p-closing {
  padding: var(--s-112) 0;
  font-weight: 500;
  font-size: clamp(24px, 20.6px + 0.56vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.p-waitlist { padding-bottom: var(--s-112); }
.p-waitlist__panel { max-width: 840px; padding: var(--s-48); }
.p-waitlist__title {
  font-weight: 500;
  font-size: clamp(20px, 19.2px + 0.14vw, 22px);
  line-height: 1.3;
}
.p-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-24); }
.p-form input {
  flex: 1 1 260px;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  background: transparent;
  color: var(--on-ink);
  border: 1px solid var(--p-input-border);
  border-radius: 0;
  font-size: 16px;
  transition: border-color var(--t-hover) var(--ease);
}
.p-form input::placeholder { color: var(--on-ink-62); }
.p-form input:focus-visible { outline: 2px solid var(--on-ink); outline-offset: 2px; border-color: rgba(245, 243, 238, 0.6); }
.p-form .p-button { height: 48px; }
.p-waitlist .p-fine { margin-top: var(--s-24); }

/* ==========================================================================
   Hover (pointer devices only)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .bar__links a:hover { color: var(--green); }
  .contact__list a:hover { text-decoration-color: var(--green); }
  .site-footer__links a:hover { color: var(--on-ink); }
  .p-button:hover { background: var(--ivory); color: var(--ink); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 899px) {
  .about__grid, .approach__grid { display: block; }
  .about__figure img { max-width: 520px; }
  .about__text, .approach__list { margin-top: var(--s-48); max-width: var(--measure); }
  .p-split, .p-talk { display: block; }
  .p-split__body, .p-talk__body { margin-top: var(--s-24); }
  .p-table li { display: block; }
  .p-table .desc { margin-top: var(--s-12); }
}
@media (max-width: 767px) {
  .hero { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .bar__mark { display: none; }
  .bar__links { gap: 0; }
  .site-footer__links { gap: 0 20px; }
  .contact__list a { display: block; }   /* on phones every address sits under its label, so the three rows match */
  .p-frame, .p-waitlist__panel { padding: var(--s-24); }
  .p-form input, .p-form .p-button { flex: 1 1 100%; width: 100%; }
}
@media (max-width: 359px) {
  .bar__links a { padding: 0 8px; }
  .bar__links { margin-left: -8px; }
}
/* ==========================================================================
   Scroll reveal: every text block and picture below the hero ([data-reveal])
   rises and settles into place once, as it enters the viewport. The base state
   is visible; only html.js hides, and a CSS safety net shows everything after
   2.5 s if main.js never runs. Blocks entering together are staggered by the
   script through an inline transition-delay.
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.975);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
  animation: reveal-safety 1ms var(--t-reveal-safety) forwards;
}
.js :where(figure, .p-frame)[data-reveal] { transform: translateY(28px) scale(0.95); }  /* pictures and panels pop a little more than text */
.js :where(li)[data-reveal] { transform: translateY(28px); }  /* rows carry hairlines: rise only, so the lines never stretch */
.js.reveal-ready [data-reveal] { animation: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@keyframes reveal-safety { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; animation: none; }
}
@media print {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; animation: none; }
}
