/* Breanna Lang portfolio: Halo design system
   Cloud-white, cream, pale sky and slate. Fraunces for display, Manrope for body and UI,
   Bodoni Moda only for the "Couture caps" wordmark. Matcha is used only in the About section
   (and the foam band in Phase 3). Phase 1: no animation. */
:root {
  color-scheme: light;
  --cloud: #FFFFFF;
  --cream: #FBF8F3;
  --sky: #EAF2FB;
  --mist: #F4EEF3;
  --slate: #1E2436;
  --slate-2: #5B6275;      /* secondary text, 5.9:1 on cream */
  --slate-3: #8A90A3;      /* decorative only */
  --line: rgba(30, 36, 54, .12);
  --line-2: rgba(30, 36, 54, .07);
  --matcha: #8DA66A;       /* accent: About section and foam band only */
  --matcha-ink: #4F6136;   /* matcha for small text, 6.4:1 on matcha cream */
  --matcha-cream: #EEF1E1;
  --matcha-cream-2: #E3E9D2;
  --shadow: 0 24px 60px rgba(30, 36, 54, .10), 0 2px 6px rgba(30, 36, 54, .05);
  --display: "Fraunces", "Playfair Display", Georgia, serif;
  --body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --wordmark: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  --header-h: 72px;
}
@media (max-width: 767px) { :root { --gutter: max(16px, env(safe-area-inset-left, 0px)); --gutter-r: max(16px, env(safe-area-inset-right, 0px)); --header-h: 64px; } }

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html { scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px); }
body { margin: 0; background: var(--cream); color: var(--slate); font-family: var(--body); font-size: 16.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 2px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: var(--gutter); top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 90; background: var(--slate); color: var(--cloud); padding: 12px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- Couture caps wordmark (unchanged) ---------- */
.wordmark { display: inline-flex; flex-direction: column; align-items: center; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; text-decoration: none; color: var(--slate); }
.wordmark span { font-family: var(--wordmark); font-weight: 500; text-transform: uppercase; letter-spacing: .22em; margin-right: -.22em; line-height: 1; white-space: nowrap; font-variation-settings: "opsz" 96; }
.wordmark-sm { padding: 6px 0 5px; }
.wordmark-sm span { font-size: 14px; font-weight: 600; font-variation-settings: "opsz" 18; }
.wordmark-xl { padding: .32em 0 .3em; font-size: clamp(22px, 4.4vw, 56px); }
.wordmark-xl span { font-size: 1em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; font: 700 15px/1 var(--body); letter-spacing: .01em; text-decoration: none; cursor: pointer; border: 1px solid var(--slate); white-space: nowrap; }
.btn-primary { background: var(--slate); color: var(--cloud); }
.btn-primary:hover { background: #343C52; border-color: #343C52; }
.btn-ghost { background: rgba(255, 255, 255, .75); color: var(--slate); }
.btn-ghost:hover { background: var(--cloud); }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- header ---------- */
.header { position: fixed; z-index: 60; top: 0; left: 0; right: 0; padding-top: env(safe-area-inset-top, 0px); background: transparent; border-bottom: 1px solid transparent; }
.header.solid { background: rgba(251, 248, 243, .72); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .header.solid { background: rgba(251, 248, 243, .96); } }
.header-in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header .wordmark { opacity: 1; }
.page-home .header:not(.solid) .wordmark { opacity: 0; visibility: hidden; } /* the hero shows the big wordmark; this one appears after 80px */
@media (prefers-reduced-motion: no-preference) { .header, .header .wordmark { transition: background .2s, border-color .2s, opacity .2s, visibility .2s; } }
@media (prefers-reduced-motion: reduce) { .header .wordmark { transition: opacity .2s, visibility .2s; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; }
.nav-links a:hover { background: rgba(255, 255, 255, .6); }
.nav .btn { min-height: 44px; padding: 0 20px; margin-left: 6px; }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); font-weight: 700; font-size: 15px; cursor: pointer; }
.mnav { position: absolute; top: calc(100% - 4px); right: var(--gutter-r); left: var(--gutter); background: var(--cloud); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; }
.mnav a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.mnav a:hover, .mnav a:focus-visible { background: var(--cream); }
@media (max-width: 767px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav .btn { padding: 0 18px; }
}
@media (min-width: 768px) { .mnav { display: none !important; } }

/* ---------- contact drawer ---------- */
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); max-width: 100vw; height: 100%; max-height: none; padding: 0; border: 0; background: var(--cream); color: var(--slate); box-shadow: -30px 0 80px rgba(30, 36, 54, .18); }
.drawer::backdrop { background: rgba(30, 36, 54, .45); }
.drawer-in { display: flex; flex-direction: column; gap: 22px; min-height: 100%; padding: calc(env(safe-area-inset-top, 0px) + 22px) max(24px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 28px) 28px; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer h2 { font-family: var(--display); font-weight: 500; font-size: 36px; line-height: 1.05; font-variation-settings: "opsz" 96; }
.drawer .lead { color: var(--slate-2); }
.close-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--cloud); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.contact-list { display: grid; gap: 12px; }
.contact-item { background: var(--cloud); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; }
.contact-item .label { font-size: 14px; font-weight: 700; color: var(--slate-2); }
.contact-item .addr { font-weight: 700; font-size: 17px; word-break: break-all; text-decoration: none; }
.contact-item .addr:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-item .row { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-item .btn { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.status { min-height: 1.4em; font-size: 14.5px; color: var(--slate-2); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: #F7E8D8; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-scrim { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 62% 58% at 50% 50%, rgba(251, 248, 243, .82) 0%, rgba(251, 248, 243, .62) 46%, rgba(251, 248, 243, 0) 78%),
              linear-gradient(180deg, rgba(251, 248, 243, .55) 0%, rgba(251, 248, 243, 0) 22%, rgba(251, 248, 243, 0) 70%, rgba(251, 248, 243, .7) 100%); }
.hero-in { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 28px) var(--gutter-r) 112px var(--gutter); }
.hero h1 { font-family: var(--display); font-weight: 450; font-size: clamp(36px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.015em; max-width: 15.5em; font-variation-settings: "opsz" 144, "SOFT" 50; text-wrap: balance; }
.hero .subline { font-size: clamp(17px, 1.45vw, 20px); color: var(--slate-2); max-width: 36em; text-wrap: balance; }
.hero .btn { margin-top: 4px; min-height: 52px; padding: 0 30px; font-size: 16px; }
.cred { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; max-width: 1040px; font-size: 13.5px; font-weight: 600; color: var(--slate); }
.cred li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(30, 36, 54, .1); line-height: 1.35; }
.hero-caption { position: absolute; left: var(--gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); font-size: 13px; font-weight: 600; color: var(--slate); background: rgba(251, 248, 243, .7); padding: 4px 10px; border-radius: 999px; }
.scroll-cue { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 4px 8px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--slate); }
.scroll-cue i { display: block; width: 1px; height: 26px; background: var(--slate); }
@media (max-width: 767px) {
  .hero-in { gap: 18px; padding-bottom: 120px; }
  .cred { gap: 6px; font-size: 13px; }
  .cred li { padding: 5px 12px; }
  .hero-caption { font-size: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); }
  .scroll-cue { bottom: calc(env(safe-area-inset-bottom, 0px) + 50px); }
}

/* ---------- section heads ---------- */
.sec { padding-block: clamp(72px, 9vw, 120px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head h2, .h2 { font-family: var(--display); font-weight: 450; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -.01em; font-variation-settings: "opsz" 144, "SOFT" 50; }
.sec-head p { color: var(--slate-2); max-width: 36em; }

/* ---------- work grid ---------- */
.work { background: linear-gradient(180deg, var(--cream) 0%, var(--sky) 100%); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1023px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.card { display: flex; flex-direction: column; height: 100%; background: var(--cloud); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--slate); box-shadow: 0 1px 2px rgba(30, 36, 54, .04); }
.card:hover { box-shadow: var(--shadow); }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card-media { position: relative; aspect-ratio: 4 / 5; background: var(--cream); border-bottom: 1px solid var(--line-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.2; font-variation-settings: "opsz" 48; }
.card p { color: var(--slate-2); font-size: 15.5px; line-height: 1.55; }
.card-note { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--slate-2); }
.tag { align-self: flex-start; display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); background: var(--cream); color: var(--slate); }
.tag-real { background: var(--slate); border-color: var(--slate); color: var(--cloud); }
.tag-spec { background: var(--mist); }
.tag-class { background: var(--sky); }

/* clearly labeled placeholders for images Breanna will supply */
.ph { display: grid; place-items: center; text-align: center; background: repeating-linear-gradient(135deg, var(--cream) 0 14px, #F5F0E8 14px 28px); }
.ph > div { display: grid; gap: 4px; max-width: 78%; padding: 16px 18px; background: rgba(255, 255, 255, .88); border: 1.5px dashed var(--slate-3); border-radius: 12px; }
.ph b { font-size: 14px; }
.ph code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--slate-2); word-break: break-all; }
.ph span { font-size: 13px; color: var(--slate-2); }

.end-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; margin-top: clamp(40px, 5vw, 64px); padding: 28px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 20px; text-align: center; }
.end-cta p { font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; font-variation-settings: "opsz" 72; }

/* ---------- about ---------- */
.about { background: linear-gradient(180deg, var(--matcha-cream) 0%, var(--matcha-cream-2) 100%); }
.about-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-photo { aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--cream); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-family: var(--display); font-weight: 450; font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -.015em; font-variation-settings: "opsz" 144, "SOFT" 60; }
.about h2::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 22px; border-radius: 2px; background: var(--matcha); }
.bio { margin-top: 24px; font-size: 18px; line-height: 1.7; max-width: 38em; }
.facts { display: grid; gap: 0; margin-top: 28px; max-width: 40em; border-top: 1px solid rgba(30, 36, 54, .14); }
.facts div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(30, 36, 54, .14); }
.facts dt { font-weight: 800; }
.facts dd { color: var(--slate); }
.about .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
@media (max-width: 899px) {
  .about-in { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 440px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---------- footer ---------- */
.footer { background: var(--cream); border-top: 1px solid var(--line); padding-block: 44px calc(env(safe-area-inset-bottom, 0px) + 44px); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer a:not(.wordmark) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; text-decoration: none; }
.footer a:not(.wordmark):hover { text-decoration: underline; text-underline-offset: 4px; }
.footer small { font-size: 14px; color: var(--slate-2); }

/* ---------- case study page ---------- */
.case-hero { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(28px, 5vw, 56px)); padding-bottom: clamp(36px, 5vw, 56px); background: linear-gradient(180deg, var(--sky) 0%, var(--cream) 100%); }
.crumb { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 14.5px; color: var(--slate-2); }
.case-hero-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.case-hero h1 { font-family: var(--display); font-weight: 450; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.05; letter-spacing: -.01em; margin-top: 12px; font-variation-settings: "opsz" 144, "SOFT" 50; text-wrap: balance; }
.case-hero .one-line { margin-top: 16px; font-size: clamp(17px, 1.4vw, 19px); color: var(--slate-2); max-width: 36em; }
.case-hero .label { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--slate-2); }
.case-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.case-hero-media { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--cloud); aspect-ratio: 4 / 5; }
.case-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case-body { padding-block: clamp(40px, 6vw, 80px); }
.case-sec { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 48px; padding-block: 36px; border-top: 1px solid var(--line); }
.case-sec h2 { font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.15; font-variation-settings: "opsz" 72; }
.case-sec .content { max-width: 68ch; display: grid; gap: 14px; }
.case-sec .content.wide { max-width: none; }
.case-sec ul.bullets { display: grid; gap: 10px; }
.case-sec ul.bullets li { position: relative; padding-left: 22px; }
.case-sec ul.bullets li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--slate-3); }
.role-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.role-list div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.role-list dt { font-weight: 800; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.gallery figure { display: grid; gap: 8px; }
.gallery .frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--cloud); aspect-ratio: 9 / 14; }
.gallery .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gallery .frame.wide { aspect-ratio: 4 / 3; }
.gallery figcaption { font-size: 14px; color: var(--slate-2); }
.nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 14px; }
.num { background: var(--cloud); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 20px; }
.num b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(36px, 3.6vw, 48px); line-height: 1; font-variation-settings: "opsz" 96; }
.num span { display: block; margin-top: 10px; font-size: 15px; color: var(--slate-2); line-height: 1.45; }
.note { font-size: 14.5px; color: var(--slate-2); }
.todo { padding: 14px 16px; border: 1.5px dashed var(--slate-3); border-radius: 12px; background: rgba(255, 255, 255, .7); font-size: 15px; color: var(--slate-2); }
.todo b { color: var(--slate); }
.case-end { text-align: center; padding: clamp(48px, 6vw, 80px) 24px; background: linear-gradient(180deg, var(--cream), var(--sky)); border-top: 1px solid var(--line); }
.case-end h2 { font-family: var(--display); font-weight: 450; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; font-variation-settings: "opsz" 144; }
.case-end .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 22px; }
@media (max-width: 899px) {
  .case-hero-in { grid-template-columns: minmax(0, 1fr); }
  .case-hero-media { max-width: 460px; }
  .case-sec { grid-template-columns: minmax(0, 1fr); }
  .role-list div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
/* give the small header/footer wordmark a 44px tap area without moving its rules */
.wordmark-sm { position: relative; }
.wordmark-sm::after { content: ""; position: absolute; inset: -9px -6px; }
@media (max-width: 420px) {
  .wordmark-sm span { font-size: 12px; letter-spacing: .18em; margin-right: -.18em; }
  .menu-btn { padding: 0 13px; }
  .nav .btn { padding: 0 15px; margin-left: 4px; }
}
@media (max-width: 380px) { .header-in { gap: 8px; } .nav { gap: 2px; } }
.case-hero-media > .ph, .frame > .ph { width: 100%; height: 100%; }
/* a project with no hero image yet: the text takes the full width */
.case-hero-in.no-media { grid-template-columns: minmax(0, 1fr); }
.case-hero-in.no-media > div { max-width: 820px; }
