/* Placecasting. Brand blue + pin red from the logo, warm paper, signal-wave motif. */
:root {
  --ink: #0f1566;
  --blue: #1a22b0;
  --red: #e8173f;
  --sky: #9fb8ff;
  --paper: #f6f2ea;
  --white: #fff;
  --text: #1b1d33;
  --muted: #565a78;
  --line: #ddd7ca;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--white); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); font: 600 1.05rem/1 var(--sans); letter-spacing: .14em; }
.brand img { width: 26px; height: auto; }
.brand b { color: var(--blue); font-weight: 600; margin-left: .35em; }
.site-header ul { list-style: none; margin: 0; padding: 0; }
.nav-wide { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: 10px; display: grid; gap: 5px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 24px; height: 2px; background: var(--blue); }
.menu[open] nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(15,21,102,.08); }
.menu nav li a { display: block; padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 500; border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .menu { display: none; }
  .nav-wide { display: block; }
  .nav-wide ul { display: flex; gap: 28px; }
  .nav-wide a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
  .nav-wide a:hover { color: var(--red); }
}

/* buttons */
.btn { display: inline-block; padding: .8em 1.4em; border-radius: 999px; background: var(--red); color: var(--white); text-decoration: none; font-weight: 600; border: 2px solid var(--red); margin: 0 .4em .6em 0; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn.ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn.ghost:hover { color: var(--red); background: transparent; }

/* hero */
.hero { background: radial-gradient(120% 90% at 85% 10%, #2a33d4 0%, var(--blue) 35%, var(--ink) 100%); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; gap: 32px; padding: 48px 0 56px; align-items: center; }
.kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 600; color: var(--sky); }
.hero h1 { color: var(--white); max-width: 12ch; }
.lines { font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.5; color: #dfe6ff; }
.hero .btn.ghost { color: var(--white); }
.hero .btn.ghost:hover { color: var(--sky); }
.hero-img { position: relative; margin: 0; max-width: 460px; justify-self: center; }
.hero-img img { border-radius: 240px 240px var(--radius) var(--radius); aspect-ratio: 3/4; object-fit: cover; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.signal { position: absolute; width: 38%; right: -6%; top: -4%; fill: none; stroke: var(--red); stroke-width: 9; stroke-linecap: round; }
.signal circle { fill: var(--red); stroke: none; }
@media (prefers-reduced-motion: no-preference) {
  .signal path { animation: pulse 2.4s ease-in-out infinite; }
  .signal path:nth-of-type(2) { animation-delay: .4s; }
}
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; padding: 88px 0 96px; }
}

/* sections */
.section { padding: 64px 0; scroll-margin-top: 64px; }
.band { background: var(--paper); padding: 48px 0; }
.paper { background: var(--paper); }
.eyebrow { font: 600 .8rem/1 var(--sans); text-transform: uppercase; letter-spacing: .2em; color: var(--red); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 24px; }
.link { font-weight: 600; text-decoration: none; }
.gap { display: inline-block; background: #fff3b0; color: #6b4e00; border: 1px dashed #c9a400; border-radius: 6px; padding: 2px 8px; font: 500 .9rem/1.5 var(--sans); }

/* project cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card a { display: block; text-decoration: none; color: inherit; }
.card-img { overflow: hidden; border-radius: var(--radius); background: var(--ink); aspect-ratio: 4/5; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card a:hover .card-img img { transform: scale(1.04); }
.meta { margin: 14px 0 4px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--red); }
.card h2, .card h3 { font-size: 1.4rem; margin-bottom: .25em; }
.more { color: var(--blue); font-weight: 600; font-size: .95rem; }

/* who we work with */
.dark { position: relative; background: var(--ink); color: var(--white); isolation: isolate; }
.dark::before { content: ""; position: absolute; inset: 0; background: var(--bg) center/cover no-repeat; opacity: .55; z-index: -1; }
.dark .lead { color: #dfe6ff; }
.audiences { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.audiences li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(6px); }
.audiences h3 { color: var(--sky); font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; }
.audiences p { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
@media (min-width: 900px) { .audiences { grid-template-columns: repeat(3, 1fr); } }

/* people */
.people { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.person img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; filter: grayscale(1); margin-bottom: 14px; }
.person h3 { margin-bottom: 0; }
.role { color: var(--red); font-weight: 600; font-size: .9rem; margin-bottom: .5em; }
.person p:last-child { color: var(--muted); font-size: 1rem; }

/* partners */
.partners { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.partners li { border: 1.5px solid var(--ink); border-radius: 999px; padding: .5em 1.1em; font-weight: 500; color: var(--ink); background: var(--white); }

/* contact + forms */
.contact { background: var(--blue); color: var(--white); }
.contact a { color: var(--white); }
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.big { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.5; }
form label { display: block; font-weight: 600; margin-bottom: 14px; }
input, textarea { width: 100%; font: inherit; padding: .75em .9em; border-radius: 10px; border: 1.5px solid transparent; background: var(--white); color: var(--text); margin-top: 6px; }
input:focus, textarea:focus { outline: none; border-color: var(--red); }
form button { font: 600 1rem var(--sans); padding: .85em 1.5em; border-radius: 999px; border: 0; background: var(--red); color: var(--white); cursor: pointer; }
form button:hover { background: var(--ink); }
.subscribe { margin-top: 32px; max-width: 460px; }
.subscribe .row { display: flex; gap: 8px; margin-top: 6px; }
.subscribe .row input { margin-top: 0; }
.subscribe .row button { flex: none; }
.hp { position: absolute; left: -9999px; }

/* project page */
.crumb { margin-bottom: 24px; font-weight: 600; }
.crumb a { text-decoration: none; }
.project { display: grid; gap: 32px; align-items: start; }
.project-img img { border-radius: var(--radius); width: 100%; max-height: min(640px, 55vh); object-fit: cover; }
@media (min-width: 900px) { .project { grid-template-columns: 5fr 7fr; gap: 56px; } .project-img { position: sticky; top: 88px; } }
.facts { display: flex; gap: 32px; margin: 0 0 24px; padding: 16px 0; border-block: 1px solid var(--line); }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.wide { margin: 48px 0 0; }
.wide img { border-radius: var(--radius); width: 100%; }
.next { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 600; }
.next a { text-decoration: none; }
audio { width: 100%; margin: 16px 0; }

/* footer */
.site-footer { background: var(--ink); color: #c9d0ff; padding: 40px 0; }
.site-footer a { color: var(--white); }
.site-footer .brand, .site-footer .brand b { color: var(--white); }
.foot { display: grid; gap: 16px; }
@media (min-width: 760px) { .foot { grid-template-columns: 1fr 1fr auto; align-items: center; } }
.small { font-size: .85rem; margin: 0; }

/* History Calling: full-screen phone call */
.hc { background: #111; color: var(--white); }
.hc-stage { min-height: 100vh; min-height: 100dvh; position: relative; display: grid; place-items: center; text-align: center; padding: 24px 16px; isolation: isolate; }
.hc-stage::before { content: ""; position: absolute; inset: 0; background: var(--portrait) center top/cover no-repeat; opacity: 0; transition: opacity .6s; z-index: -1; }
.hc-stage[data-state="ring"]::before, .hc-stage[data-state="talk"]::before { opacity: .55; }
.hc-screen { display: none; width: 100%; max-width: 420px; }
.hc-stage[data-state="start"] .s-start, .hc-stage[data-state="ring"] .s-ring,
.hc-stage[data-state="talk"] .s-talk, .hc-stage[data-state="end"] .s-end { display: block; }
.hc h1 { font-family: var(--sans); font-weight: 500; font-size: 2rem; }
.hc h2 { font-family: var(--sans); font-weight: 400; font-size: 2.2rem; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hc-small { font-size: .9rem; opacity: .85; margin-bottom: 4px; }
.hc-begin { font: 600 1rem var(--sans); background: #e02ee6; color: var(--white); border: 0; border-radius: 6px; padding: .7em 2em; cursor: pointer; text-transform: uppercase; letter-spacing: .08em; }
.hc-buttons { display: flex; justify-content: space-around; margin-top: 30vh; }
.hc-round { width: 72px; height: 72px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--white); margin: 0 auto; }
.hc-round svg { width: 34px; height: 34px; }
.hc-round.accept { background: #34c759; }
.hc-round.decline { background: #ff3b30; }
.hc-round.decline svg { transform: rotate(135deg); }
.hc-timer { font-variant-numeric: tabular-nums; opacity: .9; }
.hc-prompt { font-family: var(--serif); font-size: 1.35rem; line-height: 1.8; margin-bottom: 28px; }
.hc-letter { display: inline-block; margin-top: 20px; background: var(--white); color: #111; padding: .6em 1.2em; border-radius: 4px; text-decoration: none; font-weight: 600; }
.hc-letter:hover { color: var(--red); }

/* History Calling letters */
.letter-page { background: #e9e2d3; }
.letter { max-width: 680px; margin: 0 auto; background: #fbf8f1; padding: 40px 24px 56px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.75; box-shadow: 0 10px 40px rgba(0,0,0,.12); }
@media (min-width: 720px) { .letter { margin: 48px auto; padding: 56px 64px; } }
.letter-portrait { width: 160px; margin: 0 auto 24px; border-radius: 4px; filter: sepia(.25); }
.letter h1 { text-align: center; font-size: 2.2rem; margin-bottom: 0; }
.letter-from { text-align: center; font-style: italic; color: var(--muted); margin-bottom: 2em; }
.sign { margin-top: 2em; }
.sign span { font-style: italic; font-size: 1.3rem; }
.letter-back { margin-top: 2em; font-family: var(--sans); font-size: 1rem; }

/* home: projects scroll sideways */
.scroller { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.scroller .card { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
@media (min-width: 960px) { .scroller .card { flex-basis: calc((100% - 72px) / 4); } }
.scroll-btns { display: flex; gap: 8px; }
.scroll-btns button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.scroll-btns button:hover { background: var(--ink); color: var(--white); }

.card-img.contain { display: grid; place-items: center; background: #0b0b14; }
.card-img.contain img { height: auto; object-fit: contain; }
.project-img.contain img { object-fit: contain; max-height: none; }
