/* Michelle Hanson — portfolio
   Layout: dark, full-bleed photography with frosted-glass labels; one wide column for case studies. */
:root {
  --ink: #0b0b0c;
  --ink-2: #141416;
  --line: rgba(255, 255, 255, .12);
  --text: #f2f1ee;
  --muted: #a3a29d;
  --glass: rgba(255, 255, 255, .08);
  --glass-line: rgba(255, 255, 255, .22);
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  /* Type scale: use these everywhere */
  --t-display: clamp(46px, 6.6vw, 96px);
  --t-h2: clamp(32px, 4.2vw, 60px);
  --t-h3: clamp(21px, 2.2vw, 28px);
  --t-body: 16px;
  --t-small: 14px;
  --t-label: 11px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }

/* Glass pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.2; white-space: nowrap;
}
.pill sup { font-family: var(--mono); font-size: 10px; color: var(--muted); }
a.pill { transition: background .2s, border-color .2s; }
a.pill:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.pill.solid { background: var(--text); color: var(--ink); border-color: var(--text); }
.pill.solid:hover { background: #fff; }
.pill[aria-disabled="true"] { opacity: .55; cursor: default; }

/* Header */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--gutter) 16px;
  background: linear-gradient(to bottom, rgba(11, 11, 12, .7), rgba(11, 11, 12, 0));
}
.brand { font-size: 15px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--muted); font-weight: 400; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.nav .pill { padding: 7px 14px; font-size: 13px; }
.nav .pill[aria-current="page"] { background: var(--text); color: var(--ink); border-color: var(--text); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
/* Slides whose subject sits near the middle are enlarged from the right edge, which moves the subject left of the headline */
.hero-media .slide.shift-left { transform: scale(1.14); transform-origin: 100% 35%; }
.hero-media .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; opacity: 0; transition: opacity 1.4s ease; }
.hero-media .slide.is-active { opacity: 1; }
.hero-media .slide-truck { object-position: 50% 35%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(270deg, rgba(11, 11, 12, .9) 0%, rgba(11, 11, 12, .6) 34%, rgba(11, 11, 12, 0) 62%),
    linear-gradient(0deg, rgba(11, 11, 12, .9) 0%, rgba(11, 11, 12, 0) 35%);
}
.hero-copy { position: relative; z-index: 1; justify-self: end; padding: 120px var(--gutter) clamp(32px, 6vw, 72px); display: grid; gap: 22px; width: min(680px, 100%); }
.hero h1 { font-size: var(--t-display); }
.hero h1 { font-size: var(--t-display); line-height: .9; font-weight: 700; letter-spacing: -.045em; }
.hero h1 em { font-family: var(--serif); font-style: normal; font-weight: 400; letter-spacing: -.01em; }
.hero-copy .mono { color: #d6d4cf; }
.hero .lede { font-size: var(--t-body); max-width: 52ch; color: #dcdad5; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row .pill { padding: 12px 22px; font-size: 15px; }

/* Stat strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px var(--gutter); display: grid; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-size: clamp(30px, 4vw, 48px); font-weight: 400; letter-spacing: -.03em; line-height: 1; }

/* Sections */
.section { padding: clamp(64px, 10vw, 128px) var(--gutter); display: grid; gap: 40px; }
.section-head { display: grid; gap: 12px; max-width: 760px; }
.section-head h2 { font-size: var(--t-h2); line-height: 1; }
.section-head h2 em { font-family: var(--serif); font-style: normal; letter-spacing: 0; }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.about p { font-size: var(--t-body); color: #d8d6d1; max-width: 60ch; }
.about p + p { margin-top: 16px; }

/* Work tiles (home) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; text-decoration: none; background: var(--ink-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .8s; filter: saturate(.9); }
.tile:hover img { transform: scale(1.04); filter: saturate(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0) 50%); }
.tile .pill { position: absolute; left: 14px; bottom: 14px; z-index: 1; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 48px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 40px); display: grid; gap: 24px; }
.site-foot h2 { font-size: var(--t-h2); line-height: .95; letter-spacing: -.04em; }
.site-foot h2 em { font-family: var(--serif); font-style: normal; letter-spacing: 0; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }

/* Work page */
.page-intro { padding: 140px var(--gutter) 48px; display: grid; gap: 28px; }
.page-intro h1 { font-size: var(--t-display); line-height: .9; font-weight: 700; letter-spacing: -.045em; }
.page-intro h1 em { font-family: var(--serif); font-style: normal; font-weight: 400; letter-spacing: -.01em; }
.index { display: flex; flex-wrap: wrap; gap: 8px; }

.case { border-top: 1px solid var(--line); padding: clamp(48px, 8vw, 96px) var(--gutter); display: grid; gap: 32px; scroll-margin-top: 64px; }
.case-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.case-head h2 { font-size: var(--t-h2); line-height: .95; letter-spacing: -.035em; }
.case-head h2 em { font-family: var(--serif); font-style: normal; letter-spacing: 0; }
.case-no { font-family: var(--mono); font-size: var(--t-label); color: var(--muted); letter-spacing: .08em; }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); }
.case-body p { font-size: var(--t-body); color: #d8d6d1; max-width: 58ch; }
.meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 0; font-size: var(--t-small); }
.meta dt { font-family: var(--mono); font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.meta dd { margin: 0; }
.result { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.lead { display: flex; justify-content: center; }
.lead img { width: auto; max-width: 100%; max-height: 86svh; border-radius: 16px; background: var(--ink-2); }
.gallery { columns: 3 280px; column-gap: 12px; }
.gallery button { all: unset; display: block; width: 100%; margin-bottom: 12px; break-inside: avoid; cursor: zoom-in; border-radius: 12px; overflow: hidden; background: var(--ink-2); }
.gallery button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.gallery img { width: 100%; height: auto; transition: opacity .3s; }
.gallery button:hover img { opacity: .85; }
.film { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: start; }
.film video { border-radius: 14px; background: #000; width: 100%; max-height: 80svh; }
.film.vertical video { width: auto; max-width: 100%; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5, 5, 6, .94); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 8px; }
.lightbox .close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 16px; }
.lightbox .prev, .lightbox .next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .prev { left: 16px; } .lightbox .next { right: 16px; }
.lightbox button.pill { cursor: pointer; font: inherit; font-size: 14px; }

/* Entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .page-intro > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > *:nth-child(2), .page-intro > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3), .page-intro > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .hero-copy > *:nth-child(5) { animation-delay: .32s; }
  .hero-media img.slide.is-active { animation: settle 7s ease-out both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { scale: 1.06; } to { scale: 1; } }

@media (max-width: 860px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about, .case-head, .case-body { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  .brand { white-space: nowrap; font-size: 14px; }
  .nav { gap: 6px; flex-wrap: nowrap; }
  .nav .pill { padding: 6px 10px; font-size: 12px; }
  .nav .pill sup, .nav .pill svg { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .nav .pill[aria-disabled="true"] { display: none; }
  .nav .pill:first-child { display: none; }
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; height: 62svh; }
  .hero-media .slide.shift-left { transform: none; }
  .hero-media .slide-truck { object-position: 14% 35%; }
  .hero-media .slide:first-child { object-position: 38% 50%; }
  .hero-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, var(--ink), rgba(11, 11, 12, 0)); }
  .hero-copy { justify-self: stretch; width: 100%; padding-top: 0; margin-top: -72px; }
  .hero::after { background: linear-gradient(0deg, rgba(11, 11, 12, .97) 0%, rgba(11, 11, 12, .6) 45%, rgba(11, 11, 12, .1) 75%); }
}

/* Login */
.login { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.login-media { position: relative; overflow: hidden; }
.login-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7); }
.login-card { align-self: center; justify-self: center; width: min(420px, 100%); padding: 120px var(--gutter) 64px; display: grid; gap: 14px; }
.login-card h1 { font-size: var(--t-display); line-height: .95; font-weight: 700; letter-spacing: -.04em; }
.login-card h1 em { font-family: var(--serif); font-style: normal; font-weight: 400; letter-spacing: 0; }
.login-card label { margin-top: 12px; }
.login-card input {
  font: inherit; font-size: 16px; color: var(--text); background: var(--glass);
  border: 1px solid var(--glass-line); border-radius: 12px; padding: 14px 16px; width: 100%;
}
.login-card input:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.login-card button { justify-self: start; padding: 12px 22px; font: inherit; font-size: 15px; cursor: pointer; }
.login-error { color: #f0b4a8; font-size: 14px; }
.small { font-size: var(--t-small); }

/* Pricing */
.lede-sm { font-size: var(--t-body); color: #d8d6d1; max-width: 60ch; }
.price-group { padding: 32px var(--gutter) 48px; display: grid; gap: 0; max-width: 1100px; }
.price-group h2 { font-family: var(--mono); font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--text); }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.price-row h3 { font-size: var(--t-h3); letter-spacing: -.02em; }
.price-row p { color: var(--muted); max-width: 58ch; margin-top: 4px; }
.price-row b { font-weight: 400; font-size: var(--t-h3); white-space: nowrap; }
.price-row.featured h3::after { content: "Recommended"; margin-left: 12px; vertical-align: middle; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); }
.terms ul { margin: 0; padding: 20px 0 0 18px; display: grid; gap: 10px; color: #d8d6d1; max-width: 70ch; }

@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; }
  .login-media { display: none; }
  .price-row { grid-template-columns: 1fr; gap: 6px; }
}

/* Pricing rows that link to the questionnaire */
a.price-row { text-decoration: none; color: inherit; transition: background .2s; border-radius: 4px; }
a.price-row:hover { background: rgba(255, 255, 255, .04); }
a.price-row:hover b::after { content: " →"; color: var(--muted); }
.page-intro .cta-row .pill { padding: 12px 22px; font-size: 15px; }

/* Questionnaire */
.brief { padding: 0 var(--gutter) clamp(64px, 10vw, 120px); display: grid; gap: 28px; max-width: 900px; }
.brief fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 28px 0 0; display: grid; gap: 18px; min-width: 0; }
.brief legend { float: left; width: 100%; padding: 0 0 4px; font-size: var(--t-h3); letter-spacing: -.02em; display: flex; gap: 14px; align-items: baseline; }
.brief legend + * { clear: both; }
.hint { color: var(--muted); font-size: var(--t-small); margin-top: -8px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-family: var(--mono); font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.brief input:not([type="checkbox"]), .brief select, .brief textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--glass);
  border: 1px solid var(--glass-line); border-radius: 12px; padding: 13px 15px; width: 100%;
}
.brief select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.brief select option { background: var(--ink-2); color: var(--text); }
.brief textarea { resize: vertical; min-height: 96px; }
.brief ::placeholder { color: #6f6e6a; }
.brief input:focus-visible, .brief select:focus-visible, .brief textarea:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); font-size: 14px; transition: background .2s, color .2s; }
.choice input:checked + span { background: var(--text); color: var(--ink); border-color: var(--text); }
.choice input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }
.brief button { font: inherit; font-size: 15px; padding: 13px 24px; cursor: pointer; }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }

/* Home: brands, producer, inline questionnaire */
.brand-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: var(--t-h3); letter-spacing: -.02em; line-height: 1.25; }
.brand-list li:not(:last-child)::after { content: "/"; margin: 0 .45em; color: #4a4946; }
.producer { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 6vw, 96px); border-top: 1px solid var(--line); }
.producer-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.producer-copy { display: grid; gap: 18px; }
.producer-copy h2 { font-size: var(--t-h2); line-height: 1; }
.producer-copy h2 em { font-family: var(--serif); font-style: normal; letter-spacing: 0; }
.producer-copy p { font-size: var(--t-body); color: #d8d6d1; max-width: 58ch; }
.start-section { border-top: 1px solid var(--line); scroll-margin-top: 40px; }
.brief-inline { padding: 0; }
@media (max-width: 860px) { .producer { grid-template-columns: 1fr; } }

/* Inter only: emphasis in headings is bold, never italic */
h1 em, h2 em, h3 em { font-style: normal; font-weight: 700; letter-spacing: inherit; }
.mono { font-weight: 400; letter-spacing: .1em; }

/* Headline: regular weight with one bold word */
.hero h1.hero-title { font-weight: 400; font-size: clamp(60px, 9vw, 136px); line-height: .92; }
.hero h1.hero-title strong { font-weight: 700; }

/* Producer section: 2x2 grid, each square fades between two photos */
.fade-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fade-grid figure { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: var(--ink-2); }
.fade-grid img, .producer-media.fade-grid img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.fade-grid img + img { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .fade-grid img + img { animation: crossfade 12s ease-in-out infinite; }
  .fade-grid figure:nth-child(2) img + img { animation-delay: 3s; }
  .fade-grid figure:nth-child(3) img + img { animation-delay: 6s; }
  .fade-grid figure:nth-child(4) img + img { animation-delay: 9s; }
}
@keyframes crossfade { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }

/* Studio links inside running text */
p a[href*="thepoggiostudios"], dd a[href*="thepoggiostudios"] { text-underline-offset: 3px; text-decoration-thickness: 1px; }
