/* stanleyagu.com — editorial personal-brand system
   Cream page, near-black bands, one yellow accent, heavy condensed caps. */

:root {
  --cream: #F1EFE8;
  --cream-2: #E7E4DA;
  --ink: #0E0E0E;
  --ink-2: #171717;
  --ink-3: #1F1F1F;
  --accent: #EFE34A;
  --accent-ink: #0E0E0E;
  --text: #121212;
  --muted: #5E5C55;
  --on-dark: #F4F2EC;
  --on-dark-muted: #9D9A90;
  --line: #D8D4C8;
  --line-dark: #2A2A2A;
  --maxw: 68rem;
  --narrow: 44rem;
  --radius: 14px;
  --display: Anton, Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: var(--body); font-size: 16.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 20px; }

/* ---------- bands ---------- */
.band { padding: 4.5rem 0; }
.band-dark { background: var(--ink); color: var(--on-dark); }
.band-dark .muted { color: var(--on-dark-muted); }
.band-cream { background: var(--cream); }
@media (max-width: 40rem) { .band { padding: 3rem 0; } }

/* ---------- display type ---------- */
.display {
  font-family: var(--display); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.01em;
  line-height: 0.92; margin: 0;
}
h1.display { font-size: clamp(2.6rem, 8.5vw, 5.6rem); }
h2.display { font-size: clamp(1.9rem, 5.2vw, 3.3rem); }
.section-head h1.display { font-size: clamp(2.1rem, 6vw, 3.9rem); }
h3.display { font-size: clamp(1.3rem, 3vw, 1.75rem); }
.section-head { text-align: center; margin: 0 0 2.5rem; }
.section-head .display { margin: 0 auto; max-width: 20ch; }
.section-head p { color: var(--muted); max-width: 52ch; margin: .9rem auto 0; }
.band-dark .section-head p { color: var(--on-dark-muted); }
.eyebrow {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .18em;
  font-weight: 600; color: var(--muted); margin: 0 0 .8rem;
}
.band-dark .eyebrow { color: var(--accent); }
.hl { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-size: .92rem; font-weight: 600;
  padding: .78rem 1.5rem; border-radius: 999px; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  border: 1.5px solid var(--accent); cursor: pointer; transition: .15s;
}
.btn:hover { background: transparent; color: var(--accent); }
.band-cream .btn:hover { color: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.actions.center { justify-content: center; }

/* ---------- nav ---------- */
.nav { background: var(--ink); color: var(--on-dark); }
.nav .wrap { display: flex; align-items: center; gap: 1rem; height: 70px; }
.nav .brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--on-dark); margin-right: auto; }
.nav .brand svg { width: 28px; height: 28px; display: block; }
.nav .brand b { font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; font-weight: 400; }
.navlinks { display: flex; gap: .3rem; background: var(--ink-3); padding: .3rem; border-radius: 999px; }
.navlinks a { font-size: .85rem; font-weight: 500; text-decoration: none; color: var(--on-dark-muted); padding: .42rem .95rem; border-radius: 999px; }
.navlinks a:hover, .navlinks a[aria-current="page"] { background: var(--ink); color: var(--on-dark); }
@media (max-width: 52rem) {
  .nav .wrap { height: auto; padding-top: .8rem; padding-bottom: .8rem; flex-wrap: wrap; }
  /* wrap onto a second row rather than scrolling: a horizontally scrolling
     pill row clipped mid-word at 320px and hid the first and last links. */
  .navlinks { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; row-gap: .25rem; }
  .navlinks a { padding: .55rem 1rem; }
  .nav .btn { padding: .62rem 1.15rem; font-size: .85rem; }
}

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.hero-inner { position: relative; padding: 2.5rem 0 3rem; text-align: center; }
.hero-photo {
  width: min(430px, 76vw); margin: 0 auto -1.5rem; position: relative; z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 76%, transparent 100%);
}
.hero h1 { position: relative; z-index: 2; }
.hero h1 .l2 { display: block; color: var(--accent); }
.hero-sub { max-width: 54ch; margin: 1.4rem auto 0; color: var(--on-dark-muted); font-size: 1.02rem; }
.hero .actions { margin-top: 1.6rem; }

/* ---------- logo strip ---------- */
.strip { border-top: 1px solid var(--line-dark); padding: 1.6rem 0 0; margin-top: 2.5rem; }
.strip p { text-align: center; font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: var(--on-dark-muted); margin: 0 0 1rem; }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem 2.4rem; margin: 0; padding: 0; }
.strip li { font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; color: var(--on-dark); opacity: .62; letter-spacing: .02em; }
.strip a { text-decoration: none; }
.strip a:hover li, .strip li:hover { opacity: 1; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 56rem) { .cards-3 { grid-template-columns: 1fr; } .cards-2 { grid-template-columns: 1fr; } }
.card { border-radius: var(--radius); padding: 1.6rem; background: #fff; border: 1px solid var(--line); }
.card-dark { background: var(--ink-2); border-color: var(--line-dark); color: var(--on-dark); }
.card .num { font-family: var(--display); font-size: 1.1rem; color: var(--accent); display: block; margin-bottom: .7rem; }
.card h3 { margin: 0 0 .5rem; }
.card p { margin: 0; font-size: .95rem; color: var(--muted); }
.card-dark p { color: var(--on-dark-muted); }
.card .role { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .7rem; }
.card-dark .role { color: var(--accent); }
.card a.more { display: inline-block; margin-top: 1rem; font-size: .88rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 1px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.5rem; list-style: none; margin: 0; padding: 0; text-align: center; }
.stats .n { font-family: var(--display); font-size: clamp(2rem, 5vw, 3rem); display: block; line-height: 1; }
.stats .l { font-size: .85rem; color: var(--muted); display: block; margin-top: .5rem; }
.band-dark .stats .l { color: var(--on-dark-muted); }

/* ---------- video ---------- */
.video-hero { margin: 0; }
.video-hero video {
  width: 100%; height: auto; display: block; border-radius: var(--radius);
  background: #000; aspect-ratio: 16/9; object-fit: cover;
}
.video-hero figcaption { color: var(--muted); font-size: .86rem; margin-top: .7rem; text-align: center; }
.band-dark .video-hero figcaption { color: var(--on-dark-muted); }

/* ---------- gallery ---------- */
.gallery-masonry { columns: 4 12rem; column-gap: .8rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 46rem) { .gallery-masonry { columns: 2 9rem; } }
.gallery-masonry li { break-inside: avoid; margin: 0 0 .8rem; }
.gallery-masonry figure { margin: 0; }
.gallery-masonry img { width: 100%; border-radius: 10px; }
.gallery-masonry figcaption { font-size: .76rem; color: var(--muted); margin-top: .35rem; }
.band-dark .gallery-masonry figcaption { color: var(--on-dark-muted); }

/* ---------- facts ---------- */
dl.facts { margin: 0; border-top: 1px solid var(--line); }
.band-dark dl.facts { border-color: var(--line-dark); }
dl.facts > div { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.band-dark dl.facts > div { border-color: var(--line-dark); }
@media (max-width: 34rem) { dl.facts > div { grid-template-columns: 1fr; gap: .15rem; } }
dl.facts dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.band-dark dl.facts dt { color: var(--on-dark-muted); }
dl.facts dd { margin: 0; font-weight: 500; }

/* ---------- faq ---------- */
.faq { max-width: var(--narrow); margin: 0 auto; border-top: 1px solid var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line-dark); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { margin: .9rem 0 0; color: var(--on-dark-muted); font-size: .96rem; }
.faq .answer a { color: var(--accent); }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .portrait { border-radius: var(--radius); overflow: hidden; }
form.contact { display: grid; gap: .9rem; }
form.contact label { display: grid; gap: .35rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.band-dark form.contact label { color: var(--on-dark-muted); }
form.contact input, form.contact textarea {
  font: inherit; font-size: .97rem; text-transform: none; letter-spacing: 0;
  color: var(--text); background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: .75rem .9rem; width: 100%;
}
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form.contact textarea { min-height: 8rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formnote { font-size: .9rem; margin: .3rem 0 0; font-weight: 500; }
.formnote.err { color: #B4232F; }
.formnote.ok { color: #1C7A4B; }

/* ---------- press list ---------- */
ul.press { list-style: none; margin: 0; padding: 0; max-width: var(--narrow); margin-inline: auto; }
ul.press li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
ul.press li:first-child { border-top: 1px solid var(--line); }
.band-dark ul.press li { border-color: var(--line-dark); }
ul.press a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); }
ul.press .src { display: block; font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.band-dark ul.press .src { color: var(--on-dark-muted); }

/* ---------- links row ---------- */
ul.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
ul.links a { display: inline-block; border: 1.5px solid currentColor; border-radius: 999px; padding: .45rem 1.1rem; font-size: .88rem; font-weight: 500; text-decoration: none; }
ul.links a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- footer ---------- */
footer.site { background: var(--ink); color: var(--on-dark); padding: 3.5rem 0 2rem; }
footer.site a { color: var(--on-dark-muted); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark); }
@media (max-width: 52rem) { .footer-top { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer-top h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--on-dark-muted); margin: 0 0 .9rem; font-weight: 600; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .92rem; }
.footer-top p { color: var(--on-dark-muted); font-size: .94rem; margin: 0; max-width: 34ch; }
.footer-wordmark { font-family: var(--display); text-transform: uppercase; font-size: clamp(3rem, 15vw, 10rem); line-height: .85; color: var(--ink-3); margin: 2rem 0 1rem; text-align: center; letter-spacing: .01em; }
.footer-legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--on-dark-muted); }


/* ---------- mobile corrections ---------- */
/* Tap targets: these were 26px tall, below a usable minimum. */
.strip a { display: inline-block; padding: .4rem .25rem; text-decoration: none; }
.card a.more { display: inline-block; padding: .45rem 0; }
ul.press a { display: inline-block; padding: .25rem 0; }
.footer-top ul a { display: inline-block; padding: .3rem 0; }

@media (max-width: 34rem) {
  .wrap, .wrap-narrow { padding: 0 18px; }
  /* Eyebrows rendered at 11.2px, under the mobile readability floor. */
  .eyebrow { font-size: .8rem; letter-spacing: .12em; }
  .strip p { font-size: .78rem; }
  .strip li { font-size: 1rem; }
  .strip ul { gap: .5rem 1.4rem; }
  .section-head { margin-bottom: 2rem; }
  .card { padding: 1.3rem; }
  dl.facts dt { font-size: .82rem; }
  .stats { gap: 1.1rem; }
  .hero-sub { font-size: .97rem; }
  .faq summary { font-size: .97rem; }
  .footer-wordmark { font-size: 3.2rem; }
}

/* Very narrow phones: keep the headline from crowding the edges. */
@media (max-width: 22.5rem) {
  h1.display { font-size: 2.15rem; }
  .hero-photo { width: 70vw; }
}
