/* Penthouse Grove — scarlet, gray & limestone */

:root {
  --scarlet: #ba0c2f;
  --scarlet-deep: #8c0a24;
  --scarlet-tint: #f6e3e6;
  --ink: #1b1a1d;
  --ink-soft: #2a282c;
  --gray-700: #48464b;
  --gray-500: #6c6a70;
  --gray-300: #cfcbc4;
  --gray-200: #e3e0da;
  --limestone: #f4f1eb;
  --paper: #fbfaf7;
  --grove: #17201a;
  --glow: #ffd89a;
  --buckeye: #6b3a1e;

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-varsity: "Graduate", "Rockwell", serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--scarlet); color: #fff; }
:focus-visible { outline: 2px solid var(--scarlet); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Varsity stripe: gray / scarlet / gray */
.stripe { height: 10px; background: linear-gradient(var(--gray-300) 0 3px, transparent 3px 4px, var(--scarlet) 4px 7px, transparent 7px 8px, var(--gray-300) 8px 10px); }

.eyebrow {
  font-family: var(--font-varsity);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--scarlet);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.02; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(40px, 6vw, 68px); }
h2 em, h1 em { font-style: italic; color: var(--scarlet); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
  color: #fff;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.site-header.is-solid, .site-header--solid {
  background: rgba(251, 250, 247, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--gray-200);
  color: var(--ink);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-varsity); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
.brand-name span { color: var(--scarlet); }
.site-header:not(.is-solid):not(.site-header--solid) .brand-name span { color: #ff8f8f; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; opacity: .88;
  transition: opacity .2s, background .2s;
}
.nav a:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.nav a.nav-cta { background: var(--scarlet); color: #fff; opacity: 1; }
.nav a.nav-cta:hover { background: var(--scarlet-deep); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; color: inherit; cursor: pointer; border-radius: 10px;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .25s var(--ease);
  }
  .nav-toggle span::before { position: absolute; top: -7px; }
  .nav-toggle span::after { position: absolute; top: 7px; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); color: var(--ink); padding: 8px var(--gutter) 20px;
    box-shadow: 0 16px 30px rgba(0,0,0,.12);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
  }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--gray-200); font-size: 17px; }
  .nav a.nav-cta { margin-top: 14px; text-align: center; border-radius: 999px; border: 0; }
  .site-header.nav-open { background: var(--paper); color: var(--ink); }
  .site-header.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .site-header.nav-open .nav-toggle span { background: transparent; }
  .site-header.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  padding: 16px 26px; border-radius: 999px; border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--scarlet); color: #fff; }
.btn-primary:hover { background: var(--scarlet-deep); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 920px); min-height: max(640px, min(100svh, 920px));
  display: flex; align-items: center; color: #fff; background: #151319; overflow: hidden; isolation: isolate;
}
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(16,15,20,.82) 0%, rgba(16,15,20,.55) 38%, rgba(16,15,20,0) 64%),
    linear-gradient(0deg, rgba(16,15,20,.5), rgba(16,15,20,0) 30%);
}
.hero-content { padding-top: 96px; padding-bottom: 120px; }
.hero h1 { font-size: clamp(52px, 9vw, 116px); max-width: 9.5em; text-wrap: balance; }
.hero h1 em { color: var(--glow); }
.hero .eyebrow { color: #ffb2b2; }
.hero-lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; color: rgba(255,255,255,.82); margin: 26px 0 36px; }
.hero-lede strong { color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.reveal-load > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.reveal-load > *:nth-child(2) { animation-delay: .12s; }
.reveal-load > *:nth-child(3) { animation-delay: .24s; }
.reveal-load > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .hero { align-items: flex-start; }
  .hero-content { padding-top: 120px; }
  .hero::before { background: linear-gradient(180deg, rgba(16,15,20,.86) 0%, rgba(16,15,20,.55) 55%, rgba(16,15,20,.2) 100%); }
  .hero-art img { object-position: 72% 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { margin: 0; max-width: 26em; color: var(--gray-700); }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Projects directory ---------- */
.projects { background: var(--limestone); }
.directory { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.dir-item { border-bottom: 1px solid var(--gray-300); position: relative; isolation: isolate; }
.dir-item::before { content: ""; position: absolute; inset: 0 -20px; z-index: -1; border-radius: var(--radius); background: var(--paper); opacity: 0; transition: opacity .3s var(--ease); }
.dir-item:hover::before { opacity: 1; }
.dir-row {
  display: grid; grid-template-columns: 72px 88px minmax(0, 1fr) auto; gap: 8px 32px; align-items: center;
  padding: 36px 0;
  text-decoration: none;
}
.dir-num { font-family: var(--font-varsity); font-size: 13px; letter-spacing: .12em; color: var(--scarlet); align-self: start; padding-top: 10px; }
.dir-logo {
  width: 88px; height: 88px; border-radius: 20px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 1px 0 var(--gray-200), 0 10px 24px -14px rgba(27,26,29,.35); overflow: hidden;
  transition: transform .35s var(--ease);
}
.dir-row:hover .dir-logo { transform: rotate(-4deg) scale(1.04); }
.dir-logo img { width: 62%; height: 62%; object-fit: contain; }
.dir-logo--bleed img { width: 100%; height: 100%; }
.dir-body h3 { font-size: clamp(32px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.dir-domain { font: 500 18px/1.2 var(--font-body); color: var(--gray-700); }
.badge { font: 600 12px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--scarlet); background: var(--scarlet-tint); padding: 6px 10px; border-radius: 999px; align-self: center; }
.dir-body p { margin: 10px 0 14px; color: var(--gray-700); max-width: 40em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--gray-200); color: var(--gray-700); }
.dir-item:hover .tags li { background: var(--limestone); }
.dir-go {
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center;
  transition: background .25s, color .25s, transform .35s var(--ease);
}
.dir-row:hover .dir-go { background: var(--scarlet); border-color: var(--scarlet); color: #fff; transform: rotate(-45deg); }
.dir-extra { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0 0 32px calc(72px + 88px + 64px); margin-top: -14px; font-size: 15px; }
.dir-extra a { color: var(--gray-700); text-decoration: none; border-bottom: 1px solid var(--gray-300); padding-bottom: 1px; }
.dir-extra a:hover { color: var(--scarlet); border-color: var(--scarlet); }

@media (max-width: 860px) {
  .dir-row { grid-template-columns: 64px minmax(0, 1fr) auto; padding: 28px 0; gap: 16px 18px; }
  .dir-item::before { inset: 0 -12px; }
  .dir-num { display: none; }
  .dir-logo { width: 64px; height: 64px; border-radius: 16px; align-self: start; }
  .dir-go { width: 44px; height: 44px; align-self: start; }
  .dir-extra { padding-left: calc(64px + 18px); }
}
@media (max-width: 520px) {
  .dir-row { grid-template-columns: 56px minmax(0, 1fr); }
  .dir-logo { width: 56px; height: 56px; }
  .dir-go { display: none; }
  .dir-body h3 { flex-direction: column; gap: 6px; }
  .dir-extra { padding-left: 0; margin-top: -10px; }
}

/* ---------- Story ---------- */
.story { background: var(--grove); color: #efe9df; position: relative; overflow: hidden; isolation: isolate; }
.story::after {
  content: ""; position: absolute; right: -120px; bottom: -140px; width: 560px; height: 560px; z-index: -1; opacity: .07;
  background: url("../img/buckeye-leaf.svg") center / contain no-repeat;
  transform: rotate(-18deg);
}
.story .eyebrow { color: #ff9a9a; }
.story-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: end; }
.story h2 em { color: var(--glow); }
.story-text p { color: rgba(239,233,223,.82); margin: 0 0 18px; font-size: 18px; }
.story-text h2 + p { margin-top: 24px; max-width: 30em; }
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.place { border: 1px solid rgba(239,233,223,.16); border-radius: var(--radius); padding: 22px; background: rgba(255,255,255,.03); }
.place svg { width: 40px; height: 40px; margin-bottom: 14px; }
.place h3 { font-size: 28px; color: #fff; }
.place p { margin: 6px 0 0; font-size: 15px; color: rgba(239,233,223,.7); }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .places { grid-template-columns: 1fr; } }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact-aside p { color: var(--gray-700); max-width: 26em; }
.contact-links { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--gray-300); }
.contact-links li { border-bottom: 1px solid var(--gray-300); }
.contact-links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; text-decoration: none; font-weight: 600; }
.contact-links a span { font-weight: 400; color: var(--gray-500); font-size: 15px; }
.contact-links a:hover { color: var(--scarlet); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: 20px; padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 1px 0 var(--gray-200), 0 30px 60px -40px rgba(27,26,29,.4);
  border-top: 4px solid var(--scarlet);
}
.card h3 { font-size: 34px; margin-bottom: 6px; }
.card .card-sub { color: var(--gray-500); margin: 0 0 26px; font-size: 15px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink-soft); }
input, textarea, select {
  width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--gray-200); border-radius: 10px; padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2348464b' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
textarea { min-height: 150px; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: var(--gray-300); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--scarlet); background: #fff; box-shadow: 0 0 0 4px var(--scarlet-tint); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; }
.form-foot small { color: var(--gray-500); font-size: 13px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Inner pages ---------- */
.page-head { background: var(--ink); color: #fff; padding: 150px 0 72px; position: relative; overflow: hidden; isolation: isolate; }
.page-head::after {
  content: ""; position: absolute; right: -80px; top: 40px; width: 420px; height: 420px; opacity: .06; z-index: -1;
  background: url("../img/buckeye-leaf.svg") center / contain no-repeat; filter: invert(1);
}
.page-head h1 { font-size: clamp(46px, 7vw, 84px); }
.page-head h1 em { color: var(--glow); }
.page-head .eyebrow { color: #ff9a9a; }
.page-head p { color: rgba(255,255,255,.72); max-width: 36em; margin: 18px 0 0; font-size: 18px; }
.page-body { padding: clamp(56px, 8vw, 96px) 0; }
.support-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.support-notes h3 { font-size: 28px; margin-bottom: 12px; }
.support-notes ul { padding-left: 20px; color: var(--gray-700); }
.support-notes li { margin-bottom: 8px; }
.note { background: var(--limestone); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.note p { margin: 0; color: var(--gray-700); font-size: 15px; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }

.prose { max-width: 740px; }
.prose h2 { font-size: clamp(30px, 3.6vw, 40px); margin: 56px 0 14px; padding-top: 10px; }
.prose h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; margin: 28px 0 8px; letter-spacing: 0; }
.prose p, .prose li { color: var(--gray-700); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--scarlet); }
.callout { border-left: 3px solid var(--scarlet); background: var(--limestone); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 12px; }
.callout p { margin: 0; }
.toc { position: sticky; top: 100px; font-size: 14px; }
.toc p { font-family: var(--font-varsity); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-500); margin: 0 0 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--gray-300); }
.toc a { display: block; padding: 5px 0 5px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--gray-700); }
.toc a:hover { color: var(--scarlet); border-color: var(--scarlet); }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
@media (max-width: 900px) { .legal-grid { grid-template-columns: 1fr; } .toc { display: none; } }

.center-page { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--ink); color: #fff; padding: 120px var(--gutter) 60px; }
.center-page h1 { font-size: clamp(52px, 9vw, 96px); }
.center-page h1 em { color: var(--glow); }
.center-page p { color: rgba(255,255,255,.72); font-size: 18px; margin: 18px auto 34px; max-width: 30em; }
.center-page .windows { display: flex; justify-content: center; gap: 8px; margin-bottom: 36px; }
.center-page .windows i { width: 22px; height: 28px; background: #2c2830; border-radius: 2px; }
.center-page .windows i.on { background: var(--glow); box-shadow: 0 0 22px 4px rgba(255,216,154,.45); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); font-size: 15px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 72px 0 48px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-name span { color: #ff8f8f; }
.footer-main p { margin: 0; max-width: 24em; }
.footer-col h4 { font-family: var(--font-varsity); font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); margin: 6px 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: rgba(255,255,255,.45); }
@media (max-width: 760px) { .footer-main { grid-template-columns: 1fr 1fr; } .footer-main > :first-child { grid-column: 1 / -1; } }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-load > * { opacity: 1; transform: none; }
}
