/* Lindsay Brielle Strouse, strousehouse.co
   Layout: a clear opening (heading, short bio, rounded portrait), then rounded
   tiles to scroll through: logos, numbers, services, work, bio, talks, contact. */

:root {
  --bg: #f7f5f1;
  --card: #ffffff;
  --ink: #1d1b18;
  --muted: #66615a;
  --rule: #e6e1d8;
  --red: #a4262c;
  --red-soft: #f6e4e0;
  --green: #1f4d36;
  --green-soft: #e4ece5;
  --gold: #e9b949;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.label { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.sec-h { margin-bottom: 22px; }
.card { background: var(--card); border-radius: var(--radius); }

.btn { display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 700; text-decoration: none; padding: 14px 26px; border-radius: 999px; border: 1.5px solid var(--green); background: var(--green); color: #fff; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.inline { color: inherit; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.inline:hover { color: var(--red); }

/* ---------- Header ---------- */

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: var(--header); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 20px; }
.mark { width: 20px; height: 20px; flex: none; cursor: pointer; }
.mark svg { width: 100%; height: 100%; display: block; }
.mark .cell { fill: var(--bg); stroke: var(--ink); stroke-width: 1.4; transition: fill .4s; }
.mark .accent { fill: var(--red); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); border-bottom-color: var(--red); }
.nav .li svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.nav .short { display: none; }
@media (max-width: 860px) {
  :root { --header: 96px; }
  .site-header .wrap { flex-direction: column; align-items: stretch; gap: 4px; padding-block: 10px 6px; }
  .nav { justify-content: space-between; gap: 8px; }
  .nav .long { display: none; }
  .nav .short { display: inline; }
}

/* ---------- Opening ---------- */

.hero { padding-block: clamp(32px, 6vw, 80px) clamp(48px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(38px, 4.6vw, 64px); }
.tagline { margin-top: 24px; display: flex; align-items: center; gap: 12px; font-size: clamp(17px, 1.6vw, 19px); font-weight: 600; color: var(--green); }
.tagline::before { content: ""; width: 28px; height: 2px; background: var(--green); flex: none; }
.hero-intro { margin-top: 18px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; color: var(--muted); max-width: 32em; }
.hero .btn-row { margin-top: 30px; }
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 32px; max-width: 100%; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .portrait { max-width: 180px; order: -1; } .portrait img { border-radius: 24px; } .hero h1 { font-size: clamp(32px, 8.4vw, 44px); } }

.trusted { margin-top: clamp(48px, 6vw, 72px); }
.hero .trusted { padding-bottom: 0; }

.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.logos li { height: 84px; display: flex; align-items: center; justify-content: center; padding: 14px; background: var(--card); border-radius: 16px; }
.logos img { max-height: 26px; width: auto; max-width: 100%; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.logos img.tall { max-height: 44px; }
.logos li:hover img { filter: none; opacity: 1; }
@media (max-width: 1060px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .logos li { height: 60px; padding: 10px; } .logos img { max-height: 20px; } .logos img.tall { max-height: 34px; } }


/* ---------- Sections ---------- */

.sec { padding-block: clamp(56px, 7vw, 96px) 0; }
.sec h2 { font-size: clamp(32px, 3.4vw, 46px); }
.sec-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }

.sec-lead { font-family: var(--serif); font-size: clamp(21px, 2.1vw, 27px); line-height: 1.45; max-width: 34em; margin-bottom: 26px; }

.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.svc-grid .intro { grid-column: 1 / -1; padding: clamp(24px, 3.5vw, 44px); }
.svc-grid .intro { display: grid; gap: 14px; }
.svc-grid .intro p { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); max-width: 46em; }
.svc-grid .intro .big-line { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); max-width: 22em; }
.svc { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.svc .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.svc p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }

.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { font: inherit; font-size: 13px; font-weight: 600; background: var(--card); border: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.project { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.project[hidden] { display: none; }
.project.wide { grid-column: span 2; }
.project .media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #efebe4; }
.project .media img, .project .media video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project .media.contain img, .project .media.contain video { object-fit: contain; }
.project:hover .media img { transform: scale(1.03); }
.project .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.project .cat { font-size: 13px; font-weight: 500; color: var(--muted); }
.project p { color: var(--muted); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.project.open p { -webkit-line-clamp: unset; display: block; }
.more { align-self: flex-start; font: inherit; font-size: 13px; font-weight: 700; background: none; border: 0; padding: 0; border-bottom: 1.5px solid var(--red); cursor: pointer; color: var(--ink); }
.fine { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .project.wide { grid-column: auto; } }
@media (max-width: 640px) { .cards { grid-template-columns: minmax(0, 1fr); } .project.wide { grid-column: auto; } }

.bio-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 12px; align-items: start; }
.bio-copy { padding: clamp(24px, 3.5vw, 48px); display: grid; gap: 1.05em; }
.bio-copy p { max-width: 38em; }
.bio-copy .lead { font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.45; }
.bio-copy .sign { color: var(--green); font-weight: 600; }
.bio-photo { margin: 0; position: sticky; top: calc(var(--header) + 16px); }
.bio-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); max-width: 100%; }
@media (max-width: 860px) { .bio-grid { grid-template-columns: minmax(0, 1fr); } .bio-photo { position: static; max-width: 320px; } }

.marquee { overflow: hidden; max-width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.track { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; animation: drift 80s linear infinite; }
.marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.tile { width: 240px; min-height: 160px; flex: none; padding: 18px; border-radius: 18px; background: var(--card); display: flex; flex-direction: column; gap: 6px; }
.tile:nth-child(3n+2) { background: var(--red-soft); }
.tile:nth-child(3n) { background: var(--green-soft); }
.tile a { text-decoration: none; display: flex; flex-direction: column; gap: 6px; height: 100%; }
.tile a .t::after { content: " ↗"; color: var(--green); font-family: var(--sans); font-size: 14px; }
.tile .kind { font-size: 13px; font-weight: 600; color: var(--green); }
.tile .t { font-family: var(--serif); font-size: 20px; line-height: 1.22; margin-top: auto; }
.tile .s { font-size: 13.5px; line-height: 1.4; color: var(--muted); }

.talk { padding: clamp(28px, 4vw, 52px); background: var(--green); color: #fff; }
.talk h2 { font-size: clamp(38px, 4.6vw, 64px); margin-bottom: 26px; }
.contact-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ctile { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; transition: background .15s; }
.ctile:hover { background: rgba(255,255,255,.2); }
.ctile .k { font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, 0.72); }
.ctile .v { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.ctile .v::after { content: " →"; }
@media (max-width: 720px) { .contact-row { grid-template-columns: minmax(0, 1fr); } }

.site-footer { margin-top: clamp(56px, 7vw, 96px); padding-block: 22px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--rule); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- The breathing pause ---------- */

.breath {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  background: rgba(247, 245, 241, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}
.breath.show { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }
.bloom { width: min(62vmin, 340px); height: auto; overflow: visible; }
.petals { transform: scale(0.42) rotate(0deg); transform-origin: 0 0; transform-box: view-box; transition: transform 6s cubic-bezier(.45, 0, .3, 1); }
.petal { mix-blend-mode: multiply; opacity: 0.55; }
.petal.p0 { fill: #9cb59a; }
.petal.p1 { fill: #e9b949; }
.petal.p2 { fill: #e3a99c; }
.core { fill: var(--green); opacity: .7; transition: opacity 4s ease; }
.breath.inhale .petals { transform: scale(1) rotate(60deg); transition-duration: 4s; }
.breath.exhale .petals { transform: scale(0.42) rotate(0deg); transition-duration: 6s; }
.breath.inhale .core { opacity: 0; }
.breath.still .petals { transform: scale(0.85); transition: none; }
.cue { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); font-weight: 300; color: var(--ink); min-height: 1.4em; text-align: center; letter-spacing: -0.01em; }
.breath-close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: var(--card); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.breath-close:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .breath, .breath.show, .petals, .core { transition: none; } }

@media (prefers-reduced-motion: reduce) {
  .track { animation: none; flex-wrap: wrap; width: auto; padding-inline: var(--gutter); }
  .track [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .project .media img { transition: none; }
}
