/*
  SEAN PLETZ | PORTFOLIO PROTOTYPE
  ---------------------------------------------------------------
  Quick changes:
  1. Colors and spacing live in :root immediately below.
  2. Cover movement is controlled in ../js/main.js under PROJECT FLIGHT.
  3. Disable Play by adding `hidden` to its nav item and section in index.html.
  4. Red .todo text on case studies marks content Sean should replace.
*/

:root {
  --paper: #f3f2ee;
  --paper-strong: #faf9f6;
  --ink: #111211;
  --muted: #686965;
  --line: #d8d7d1;
  /* Water-inspired interactive palette: deep enough for white-text contrast,
     with a brighter cyan used for small highlights and focus treatments. */
  --accent: #087ea4;
  --accent-bright: #2db8d6;
  --accent-dark: #056581;
  --accent-wash: #d7f2f7;
  --dark: #222421;
  --dark-2: #2c2e2a;
  --white: #fff;
  --todo: #c32828;
  --radius: 1.25rem;
  --shadow: 0 18px 45px rgba(19, 20, 18, .09);
  --max: 1240px;
  --gutter: clamp(1rem, 4vw, 3.25rem);
}

/* Progressive enhancement: Chromium-based browsers softly transition between
   same-origin HTML pages. Unsupported browsers simply navigate as usual. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to right, transparent calc(50% - .5px), rgba(17,18,17,.045) 50%, transparent calc(50% + .5px));
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--white); }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 1.1rem;
  left: 50%;
  width: min(calc(100% - 2rem), 940px);
  transform: translateX(-50%);
  transition: transform .35s ease;
}
.site-header.is-hidden { transform: translate(-50%, -140%); }
.nav-shell {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .55rem .65rem .55rem .7rem;
  border: 1px solid rgba(17,18,17,.12);
  border-radius: 999px;
  background: rgba(250, 249, 246, .82);
  box-shadow: 0 10px 35px rgba(17,18,17,.06);
  backdrop-filter: blur(16px);
}
.nav-identity { display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; }
.nav-identity img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center 22%; }
.nav-links { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: .68rem .8rem; border-radius: 999px; font-size: .86rem; font-weight: 650; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="true"] { color: var(--accent-dark); background: var(--accent-wash); }
.nav-links li:last-child a { background: var(--ink); color: var(--white); padding-inline: 1rem; }
.nav-links li:last-child a:hover { background: var(--accent-dark); }
.nav-toggle { display: none; border: 0; background: transparent; width: 42px; height: 42px; border-radius: 50%; }
.nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform .2s; }

.hero {
  position: relative;
  min-height: max(760px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 8.5rem var(--gutter) 5rem;
  border-inline: 1px solid var(--line);
}
.hero-copy { position: relative; z-index: 3; max-width: 690px; }
.eyebrow, .section-index { margin: 0 0 1.8rem; color: var(--muted); font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.status-dot { display: inline-block; width: .58rem; height: .58rem; margin-right: .5rem; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 5px rgba(45,184,214,.16); }
.hero h1, .section-heading h2, .play-heading h2, .contact-intro h2 {
  margin: 0;
  font-size: clamp(3.35rem, 6.8vw, 6.4rem);
  line-height: .94;
  letter-spacing: -.072em;
  font-weight: 640;
}
.hero h1::first-line { color: #6f706d; }
.hero-intro { max-width: 600px; margin: 2rem 0 0; font-size: clamp(1.05rem, 1.65vw, 1.35rem); color: #4b4d49; line-height: 1.52; }
.hero-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 50px; padding: .75rem 1.15rem; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; font-weight: 720; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button--dark { background: var(--accent); border-color: var(--accent); color: var(--white); box-shadow: 0 8px 24px rgba(8,126,164,.2); }
.button--dark:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: 0 10px 28px rgba(8,126,164,.3); }
.text-link, .email-link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .28em; }
.text-link:hover, .email-link:hover { color: var(--accent-dark); text-decoration-color: currentColor; }

.hero-stack {
  /* The circle and covers share this container as their coordinate system. */
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  z-index: 1;
  color: inherit;
  cursor: pointer;
}
.hero-stack::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92%, 460px);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  transition: border-color .2s, box-shadow .2s;
}
.hero-stack:hover::before,
.hero-stack:focus-visible::before { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(45,184,214,.12); }
.hero-stack:focus-visible { outline: none; }
.stack-note {
  position: absolute;
  top: 50%;
  left: calc(50% + min(46%, 230px));
  margin: 0;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}
.cover-flight-layer { position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px; z-index: 8; pointer-events: none; }
.flying-cover {
  position: absolute;
  overflow: hidden;
  width: 390px;
  height: 280px;
  border: 1px solid rgba(17,18,17,.18);
  border-radius: 1rem;
  background: #d9d9d5;
  box-shadow: var(--shadow);
  transform-origin: top left;
  will-change: transform, width, height, opacity;
}
.flying-cover img { width: 100%; height: 100%; object-fit: cover; }
.flying-cover--art img { object-fit: contain; padding: 15%; background: #deded8; }

/* ADOBE COVER ---------------------------------------------------
   The three supplied screenshots form an honest motion graphic rather than
   a simulated prototype. They begin slightly separated and align on hover. */
.adobe-cover { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; padding: 5%; background: #323232; }
.adobe-cover__layout { width: 112%; aspect-ratio: 2.14; display: grid; grid-template-columns: 5.4% minmax(0, 1fr); grid-template-rows: 82.5% 17.5%; gap: 20px; transition: width .55s cubic-bezier(.2,.7,.2,1), gap .55s cubic-bezier(.2,.7,.2,1); }
.adobe-cover img,
.project-media .adobe-cover img,
.flying-cover .adobe-cover img { width: 100%; height: 100%; padding: 0; object-fit: fill; opacity: 1; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; filter: none; box-shadow: 0 14px 30px rgba(0,0,0,.32); }
.adobe-cover__rail { grid-column: 1; grid-row: 1 / -1; transform: translate(55%, 6%) rotate(-4deg); transform-origin: center; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.adobe-cover__workspace { grid-column: 2; grid-row: 1; transform: translate(8%, -18%) rotate(2deg); transform-origin: center; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.adobe-cover__prompt { grid-column: 2; grid-row: 2; transform: translate(-8%, 65%) rotate(-1.5deg); transform-origin: center; transition: transform .55s cubic-bezier(.2,.7,.2,1); }

.section { width: min(100%, var(--max)); margin: 0 auto; padding: clamp(6rem, 11vw, 10rem) var(--gutter); border: 1px solid var(--line); border-bottom: 0; }
.section-heading { display: grid; grid-template-columns: 1.15fr .7fr; gap: 5rem; align-items: end; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.section-heading h2 { font-size: clamp(3rem, 6vw, 5.8rem); }
.section-heading > p { max-width: 430px; margin: 0 0 .5rem; color: var(--muted); font-size: 1.08rem; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3.5rem, 7vw, 7.5rem) clamp(1.25rem, 3vw, 2.25rem); }
.project-card { position: relative; display: block; }
.project-media { position: relative; aspect-ratio: 1.26; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #e2e1dc; }
.project-media::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.38); border-radius: inherit; pointer-events: none; }
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* Opacity swaps instantly after the image is painted beneath the flying
     cover. Hover effects remain animated independently. */
  transition: filter .35s, transform .55s cubic-bezier(.2,.7,.2,1);
}
.project-media.is-settled img { opacity: 1; }
.project-media .adobe-cover { opacity: 0; transition: opacity .2s; }
.project-media.is-settled .adobe-cover { opacity: 1; }
.project-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s, filter .35s, transform .55s cubic-bezier(.2,.7,.2,1); }
.project-media--video-contain .project-loop { object-fit: contain; background: #d7d6d1; }
/* Keep the poster visible until playback has actually started. This prevents
   a blank frame if a video is slow to buffer or autoplay is unavailable. */
.project-media.is-loop-playing > img { opacity: 0; }
.project-media.is-loop-playing > .project-loop { opacity: 1; }
.project-media--contain img { object-fit: contain; padding: 15%; }
.project-card:hover .project-media img,
.project-card:hover .project-loop { filter: saturate(1.12) contrast(1.03); transform: scale(1.025); }
.project-card:hover .adobe-cover__layout { width: 108%; gap: 1px; }
.project-card:hover .project-media .adobe-cover__rail,
.project-card:hover .project-media .adobe-cover__workspace,
.project-card:hover .project-media .adobe-cover__prompt { transform: translate(0); filter: none; }
.project-card:hover .project-media .adobe-cover img { border-color: rgba(255,255,255,.08); box-shadow: none; }
.project-meta { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0 .8rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .73rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.project-card h3 { margin: 1.15rem 0 .45rem; font-size: clamp(1.85rem, 3vw, 2.8rem); line-height: 1; letter-spacing: -.045em; }
.project-card p { max-width: 500px; margin: 0; color: var(--muted); }
.project-cta { display: inline-block; margin-top: 1.25rem; color: var(--accent-dark); font-size: .86rem; font-weight: 750; }

.about-section { background: var(--paper-strong); }
.about-grid { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(3rem, 8vw, 8rem); }
.about-profile img { width: 100%; aspect-ratio: .86; object-fit: cover; object-position: center 18%; border-radius: var(--radius); }
.about-profile > div { display: grid; gap: .12rem; margin-top: 1rem; }
.about-profile strong { font-size: 1.15rem; }
.about-profile span { color: var(--muted); font-size: .9rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 1.5rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); font-size: .86rem; font-weight: 700; }
.social-links a:hover { color: var(--accent-dark); }
.about-copy > p { max-width: 760px; color: #555752; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.about-copy .about-lead { margin-top: 0; color: var(--ink); font-size: clamp(1.7rem, 3.25vw, 3rem); line-height: 1.15; letter-spacing: -.04em; }
.about-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.about-details div { display: grid; gap: .65rem; }
.about-details span { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.about-details strong { font-size: .92rem; line-height: 1.65; }

.play-section { min-height: 67vh; background: var(--dark); color: var(--white); border-color: #3b3d38; overflow: hidden; }
.play-section .section-index { color: #a6a8a2; }
.play-heading { max-width: 880px; }
.play-heading h2 { font-size: clamp(2.9rem, 6vw, 5.9rem); }
.play-heading > p:last-child { max-width: 520px; margin-top: 1.5rem; color: #b9bbb5; }
.play-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 4rem; }
.play-placeholder { min-height: 240px; display: flex; align-items: end; padding: 1.25rem; border: 1px dashed #60635d; border-radius: var(--radius); color: #9ea09a; background: var(--dark-2); }
.play-placeholder:nth-child(even) { transform: translateY(50%); }

.contact-section { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(3rem, 8vw, 8rem); background: var(--paper-strong); }
.contact-intro h2 { max-width: 720px; font-size: clamp(3.1rem, 6.2vw, 6rem); }
.contact-intro > p:not(.section-index) { max-width: 600px; margin: 1.8rem 0; color: var(--muted); font-size: 1.08rem; }
.email-link { display: inline-block; font-size: clamp(1.1rem, 2vw, 1.5rem); }
.contact-links { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; font-size: .86rem; font-weight: 720; }
.contact-links a:hover { color: var(--accent-dark); }
.contact-form { align-self: end; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.form-note { margin: 0 0 1.5rem; color: var(--muted); font-size: .82rem; }
.contact-form label { display: block; margin: 1rem 0 .35rem; font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid #aaa; border-radius: 0; outline: 0; background: transparent; padding: .7rem .1rem; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 2px 0 var(--accent); }
.contact-form .button { margin-top: 1.3rem; }
.form-status { min-height: 1.5em; margin: .8rem 0 0; color: var(--accent-dark); font-size: .82rem; }
.site-footer { width: min(100%, var(--max)); margin: 0 auto; padding: 2rem var(--gutter); display: flex; justify-content: space-between; gap: 1rem; border: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.site-footer a { color: var(--ink); font-weight: 750; }
.site-footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Project media is already animated by the cover flight. Keeping these cards
   vertically stationary ensures their measured landing rectangles never move
   between measurement and the final image handoff. */
.project-card.reveal { transform: none; transition-property: opacity; }

/* CASE STUDIES -------------------------------------------------- */
.case-body { background: var(--paper-strong); }
.case-header { position: sticky; top: 0; z-index: 40; padding: .8rem var(--gutter); border-bottom: 1px solid var(--line); background: rgba(250,249,246,.9); backdrop-filter: blur(16px); }
.case-nav { width: min(100%, var(--max)); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .86rem; font-weight: 700; }
.case-nav-links { display: flex; gap: 1.25rem; }
.case-nav a:hover { color: var(--accent-dark); }
.case-main { width: min(100%, var(--max)); margin: 0 auto; border-inline: 1px solid var(--line); }
.case-hero { min-height: 70svh; display: grid; align-content: end; padding: clamp(8rem, 15vw, 13rem) var(--gutter) 3rem; }
.case-kicker { color: var(--accent-dark); font-size: .76rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.case-hero h1 { max-width: 1020px; margin: 1rem 0 1.5rem; font-size: clamp(4.4rem, 11vw, 10rem); line-height: .82; letter-spacing: -.075em; font-weight: 640; }
.case-deck { max-width: 740px; margin: 0; color: var(--muted); font-size: clamp(1.2rem, 2.3vw, 1.8rem); line-height: 1.35; }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4rem; border-top: 1px solid var(--line); }
.case-meta div { padding: 1rem 1rem 0 0; }
.case-meta span { display: block; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.case-meta strong { display: block; margin-top: .25rem; font-size: .86rem; }
.case-visual { margin: 0 var(--gutter); overflow: hidden; border-radius: var(--radius); background: #deded8; }
.case-visual img { width: 100%; max-height: 790px; object-fit: cover; }
.case-visual--contain img { object-fit: contain; padding: 8%; }
.case-visual--logo { min-height: clamp(340px, 52vw, 680px); display: grid; place-items: center; padding: clamp(3rem, 9vw, 8rem); background: linear-gradient(145deg, #ecece8, var(--accent-wash)); }
.case-visual--logo img { width: min(48%, 430px); height: auto; filter: drop-shadow(0 24px 40px rgba(17,18,17,.14)); }
.case-section { padding: clamp(5rem, 10vw, 9rem) var(--gutter); border-bottom: 1px solid var(--line); }
.case-section-heading { display: grid; grid-template-columns: .32fr 1fr; gap: 2rem; }
.case-section-heading > span { color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.case-section-heading h2 { max-width: 850px; margin: 0; font-size: clamp(2.5rem, 5.7vw, 5.5rem); line-height: .98; letter-spacing: -.06em; font-weight: 620; }
.case-copy-grid { display: grid; grid-template-columns: .32fr 1fr; gap: 2rem; margin-top: 3rem; }
.case-copy-grid > div { grid-column: 2; max-width: 760px; }
.case-copy-grid p { color: #4f514d; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.case-copy-grid .pullquote { color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.18; letter-spacing: -.035em; }
.todo { color: var(--todo); font-weight: 700; }
.case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 4rem; }
.case-gallery figure { margin: 0; }
.case-gallery figure:first-child:last-child { grid-column: 1 / -1; }
.case-gallery img { width: 100%; aspect-ratio: 1.4; object-fit: cover; border: 1px solid var(--line); border-radius: .85rem; }
.case-gallery figcaption { margin-top: .6rem; color: var(--muted); font-size: .75rem; }
.case-gallery--evidence img { aspect-ratio: auto; object-fit: contain; background: #fff; }
.case-gallery--blueprint { max-width: 900px; margin-inline: auto; }
.case-gallery--phones { max-width: 900px; margin-inline: auto; }
.case-gallery--phones img { aspect-ratio: auto; object-fit: contain; background: var(--dark); }
.case-gallery--sketches { align-items: start; }
.case-gallery--sketches img { aspect-ratio: .78; object-fit: contain; background: #e8e5de; }
.case-evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 4rem; border: 1px solid var(--line); background: var(--line); }
.case-evidence-grid div { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(1.2rem, 3vw, 2rem); background: var(--paper-strong); }
.case-evidence-grid strong { color: var(--accent); font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: .9; letter-spacing: -.06em; }
.case-evidence-grid span { max-width: 250px; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.case-finding-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 4rem; border: 1px solid var(--line); background: var(--line); }
.case-finding-grid article { min-height: 260px; padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper-strong); }
.case-finding-grid span { color: var(--accent-dark); font-size: .72rem; font-weight: 750; letter-spacing: .07em; }
.case-finding-grid h3 { margin: 2.5rem 0 .8rem; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1; letter-spacing: -.045em; }
.case-finding-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
.case-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--dark); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.next-case { display: block; padding: clamp(4rem, 9vw, 8rem) var(--gutter); background: var(--dark); color: var(--white); }
.next-case span { color: #aaa; font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.next-case strong { display: block; margin-top: .8rem; font-size: clamp(2.7rem, 7vw, 6.5rem); line-height: .95; letter-spacing: -.06em; }
.next-case:hover strong { color: #9fc5e4; }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; align-content: center; padding: 9rem var(--gutter) 6rem; }
  /* Once the hero becomes one column, use the same reliable static treatment
     as mobile instead of recalculating a flight into a one-column Work grid. */
  .hero-stack, .cover-flight-layer { display: none; }
  .project-media img { opacity: 1; }
  /* Touch layouts cannot depend on hover, so show the assembled Adobe system. */
  .adobe-cover__layout { width: 108%; gap: 1px; }
  .adobe-cover__rail,
  .adobe-cover__workspace,
  .adobe-cover__prompt { transform: translate(0) rotate(0); }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-grid, .contact-section { grid-template-columns: 1fr; }
  .about-profile { display: grid; grid-template-columns: minmax(160px, .7fr) 1fr; gap: 1rem; align-items: end; }
  .about-profile img { grid-row: 1 / 3; }
  .about-profile .social-links { align-self: start; margin-top: 0; }
  .case-meta { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 720px) {
  :root { --gutter: 1rem; }
  html { scroll-padding-top: 5.5rem; }
  body::before { display: none; }
  .site-header { top: .6rem; width: calc(100% - 1rem); }
  .nav-shell { min-height: 54px; position: relative; }
  .nav-toggle { display: block; position: relative; z-index: 3; }
  .nav-toggle[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(3.2px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.2px) rotate(-45deg); }
  .nav-links { display: none; position: absolute; top: calc(100% + .5rem); left: 0; right: 0; flex-direction: column; align-items: stretch; padding: .6rem; border: 1px solid var(--line); border-radius: 1.2rem; background: var(--paper-strong); box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .8rem 1rem; }
  .nav-links li:last-child a { text-align: center; }
  /* The cover-flight animation is desktop-only. Removing its stage on mobile
     avoids a large decorative gap with no corresponding interaction. */
  .hero { min-height: auto; display: block; padding: 8rem 1rem 5.5rem; border-inline: 0; }
  .hero h1 { font-size: clamp(3.3rem, 16vw, 5.2rem); }
  .hero-intro { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .flying-cover { border-radius: .8rem; }
  .section { border-inline: 0; padding-block: 5.5rem; }
  .section-heading { margin-bottom: 3rem; }
  .section-heading h2, .play-heading h2, .contact-intro h2 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  .work-grid { grid-template-columns: 1fr; gap: 4.5rem; }
  .project-meta { font-size: .65rem; }
  .about-profile { display: block; }
  .about-profile img { max-height: 570px; }
  .about-details { grid-template-columns: 1fr 1fr; }
  .play-section { min-height: 70vh; }
  .play-grid { grid-template-columns: 1fr; }
  .play-placeholder:nth-child(even) { transform: none; }
  .site-footer { flex-direction: column; border-inline: 0; }
  .case-header { padding-inline: 1rem; }
  .case-nav-links a:not(:last-child) { display: none; }
  .case-main { border-inline: 0; }
  .case-hero { min-height: 74svh; }
  .case-hero h1 { font-size: clamp(4rem, 22vw, 7rem); }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-section-heading, .case-copy-grid { grid-template-columns: 1fr; }
  .case-copy-grid > div { grid-column: 1; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery figure:first-child:last-child { grid-column: auto; }
  .case-gallery--phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .case-evidence-grid, .case-finding-grid { grid-template-columns: 1fr; }
  .case-evidence-grid div { min-height: 150px; }
  .case-finding-grid article { min-height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .cover-flight-layer { display: none; }
  .project-media img { opacity: 1; }
}
