/* =============================================
   Doug Dworkin portfolio · site.css v4
   "Strategist in Daylight" design system.
   Cream + orange, Hanken Grotesk display,
   Albert Sans body, DD circle mark.

   HOW THIS FILE IS ORGANIZED (top to bottom):
   1. Fonts + color variables (:root)
   2. Base element styles (body, links, headings)
   3. Scroll reveal (works with js/reveal.js)
   4. Top bar / brand / nav
   5. Homepage: hero, proof strip, case features,
      three doors (with door slideshow), about
      strip, CTA panel
   6. Shared: buttons, page CTA, footer
   7. Inner pages: page head, work "pieces",
      images, video frames, Rive frame
   8. About page
   9. Responsive breakpoints (900px, 640px)

   TO CHANGE SITE COLORS: edit the :root variables
   below. Every color on the site references them.
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@300;400;500;600;700&family=Hanken+Grotesk:wght@400..800&display=swap');

:root {
  --ink: #1a1d24;
  --ink-soft: #4a4f5a;
  --paper: #faf8f4;
  --paper-2: #f3efe7;     /* raised warm panel */
  --line: #e2ddd4;
  --orange: #d2622d;
  --orange-deep: #b8501f;
  --shadow-soft: 0 2px 14px -8px rgba(60,50,30,.3);
  --shadow-lift: 0 24px 48px -24px rgba(60,50,30,.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Albert Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: 'Hanken Grotesk', sans-serif; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 44px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Scroll reveal ----------
   js/reveal.js adds class "js" to <html>, then adds "in" to each
   .reveal element as it scrolls into view. Without JavaScript
   nothing is hidden, so the page always works.
   Optional per-element delay: style="--d:.15s" on the element. */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease var(--d, 0s), transform .7s ease var(--d, 0s);
}

.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Top bar / brand / nav ----------
   Sticky on desktop; static under 640px where the stacked bar
   would eat too much of a phone screen. */

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,248,244,.93);
  backdrop-filter: blur(8px);
}

.brand { display: flex; align-items: center; gap: 13px; }

.brand .mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex: 0 0 auto;
  font-family: 'Hanken Grotesk', sans-serif;
  box-shadow: 0 4px 14px -4px rgba(210,98,45,.6);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
}

.brand:hover .mark {
  transform: rotate(-8deg) scale(1.07);
  box-shadow: 0 6px 20px -4px rgba(210,98,45,.75);
}

.brand .name {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 20px; font-weight: 700; letter-spacing: -0.012em;
  line-height: 1.05;
}

.nav { display: flex; gap: 28px; align-items: center; }

.nav a {
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  letter-spacing: .02em; padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.nav a:hover { color: var(--ink); border-color: var(--orange); }
.nav a.current { color: var(--ink); border-color: var(--orange); }
.nav a.cta { color: var(--orange); }
.nav a.cta:hover { color: var(--orange-deep); }

/* ---------- Hero (home page) ---------- */

.hero { padding: 100px 0 36px; max-width: 940px; }

.hero .eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 26px;
  animation: rise .6s ease both;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.028em;
  animation: rise .7s .08s ease both;
}

.hero h1 span { color: var(--orange-deep); }

/* Hand-drawn orange underline in the hero headline (v5).
   The <span class="uline"> wraps the phrase; the inline SVG inside it
   draws the uneven stroke. color:inherit keeps the words ink, not orange. */
.hero h1 .uline { position: relative; white-space: nowrap; color: inherit; }
.hero h1 .uline svg { position: absolute; left: 0; bottom: -.18em; width: 100%; height: .32em; overflow: visible; }
.hero h1 .uline svg path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; }

.hero .support {
  margin-top: 28px;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-soft); max-width: 660px;
  font-weight: 300; line-height: 1.55;
  animation: rise .7s .16s ease both;
}

.hero .support strong { color: var(--ink); font-weight: 500; }

/* Proof strip under the hero */

.proof {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 58px 0 0;
  animation: rise .7s .24s ease both;
}

.proof div { flex: 1; padding: 26px 28px; border-left: 1px solid var(--line); }
.proof div:first-child { border-left: none; padding-left: 0; }

.proof .num {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 28px; font-weight: 800; color: var(--orange);
  letter-spacing: -0.02em;
}

.proof .lbl { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.45; }

/* ---------- Case features (home) ---------- */

.cases { padding: 84px 0 12px; }

.sec-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 44px; }

.sec-head h2 {
  font-size: 15px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft); white-space: nowrap;
}

.sec-head .rule { flex: 1; height: 1px; background: var(--line); }

.case {
  display: grid; grid-template-columns: 1fr 1.25fr;
  gap: 60px; align-items: center; padding: 52px 0;
}

.case + .case { border-top: 1px solid var(--line); }
.case.flip .case-media { order: -1; }

.case .k {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 14px;
}

.case h3 {
  font-size: clamp(25px, 2.9vw, 34px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.022em;
  margin-bottom: 16px;
}

.case p { font-size: 16.5px; color: var(--ink-soft); font-weight: 300; max-width: 470px; }

/* One-line deliverables summary under a case paragraph */
.case .mini {
  margin-top: 14px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}

.case .go {
  display: inline-block; margin-top: 24px;
  font-size: 14.5px; font-weight: 600; color: var(--orange);
  border-bottom: 1.5px solid var(--orange); padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

.case .go:hover { color: var(--ink); border-color: var(--ink); }

.case-media {
  border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lift);
}

.case-media img, .case-media video { width: 100%; transition: transform .5s ease; }
.case-media:hover img, .case-media:hover video { transform: scale(1.02); }

.case-media.pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  background: none; box-shadow: none; border-radius: 0;
}

.case-media.pair img { border-radius: 12px; box-shadow: var(--shadow-lift); }

/* ---------- Three doors (home) ---------- */

.doors { padding: 80px 0 88px; border-top: 1px solid var(--line); }

.doors .intro { margin-bottom: 40px; max-width: 640px; }
.doors .intro h2 { font-size: clamp(25px, 2.9vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.doors .intro p { color: var(--ink-soft); font-weight: 300; margin-top: 8px; font-size: 17px; }

.door-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.door {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.door:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: transparent; }

.door .ph {
  border-radius: 10px; overflow: hidden; aspect-ratio: 4/3;
  margin-bottom: 18px; background: var(--paper-2);
}

.door .ph img, .door .ph video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}

.door:hover .ph img, .door:hover .ph video { transform: scale(1.04); }

.door h3 { font-size: 19px; font-weight: 750; margin-bottom: 6px; }
.door p { font-size: 14.5px; color: var(--ink-soft); flex-grow: 1; }

.door .see {
  margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--orange);
  align-self: flex-start; border: 1.5px solid var(--orange);
  border-radius: 999px; padding: 7px 16px;
  transition: background .25s ease, color .25s ease;
}

.door:hover .see { background: var(--orange); color: #fff; }

/* Door slideshow: slides crossfade on a 15s CSS loop inside the
   Design door. The first slide is also the base layer, so nothing
   is ever blank (and with animations off, slide 1 simply stays). */

.door-show { position: relative; width: 100%; height: 100%; }

.door-show img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  animation: doorcycle 15s infinite;
}

.door-show img:nth-child(1) { opacity: 1; animation-delay: 0s; }
.door-show img:nth-child(2) { animation-delay: 5s; }
.door-show img:nth-child(3) { animation-delay: 10s; }

@keyframes doorcycle {
  0% { opacity: 0; }
  7% { opacity: 1; }
  33% { opacity: 1; }
  42% { opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- About strip (home) ---------- */

.about-strip {
  border-top: 1px solid var(--line);
  padding: 80px 0;
  display: grid; grid-template-columns: 200px 1fr; gap: 56px;
  align-items: start;
}

.about-strip img {
  width: 168px; height: 168px; object-fit: cover;
  border-radius: 50%; box-shadow: var(--shadow-soft);
}

.about-strip h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }

.about-strip p {
  font-size: 17.5px; color: var(--ink-soft);
  font-weight: 300; max-width: 640px; line-height: 1.65;
}

.about-strip p strong { color: var(--ink); font-weight: 500; }

.about-strip .go {
  display: inline-block; margin-top: 18px;
  font-size: 14.5px; font-weight: 600; color: var(--orange);
  border-bottom: 1.5px solid var(--orange); padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

.about-strip .go:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- CTA panel (home) ---------- */

.final-cta {
  border-top: 1px solid var(--line);
  padding: 92px 0; text-align: center;
  background: var(--paper-2); border-radius: 24px;
  margin: 8px 0 48px;
}

.final-cta h2 {
  font-size: clamp(29px, 3.8vw, 44px);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.08;
  max-width: 720px; margin: 0 auto 16px;
}

.final-cta h2 span { color: var(--orange-deep); }
.final-cta p { color: var(--ink-soft); font-weight: 300; font-size: 17px; margin-bottom: 34px; }

/* v5: the support line above the button was removed on the home page;
   this keeps breathing room between the headline and the button. */
.final-cta .btn { margin-top: 40px; }

/* ---------- Buttons / page CTA / footer (all pages) ---------- */

.btn {
  display: inline-block; background: var(--orange); color: #fff;
  font-size: 16px; font-weight: 600;
  padding: 14px 30px; border-radius: 999px;
  transition: background .2s ease, transform .2s ease;
}

.btn:hover { background: var(--orange-deep); transform: translateY(-2px); }

.page-cta {
  margin-top: 8px; padding: 36px 0 64px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}

.page-cta .line { font-size: 19px; font-weight: 400; }

footer {
  padding: 44px 0 60px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 20px;
}

footer .email {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 21px; font-weight: 700; color: var(--ink);
  transition: color .2s ease;
}

footer .email:hover { color: var(--orange); }
footer .meta { font-size: 13px; color: var(--ink-soft); text-align: right; }
footer .meta .role { margin-bottom: 4px; }

/* =============================================
   Inner page styles
   ============================================= */

.page-head {
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--line);
  max-width: 880px;
}

.page-head .eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 18px;
  animation: rise .6s ease both;
}

/* Page label (v5): replaces the orange all-caps eyebrow on inner pages.
   Black, normal case, straight orange underline, sits up near the top bar. */
.page-label {
  display: inline-block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700; font-size: 17px; color: var(--ink);
  padding-bottom: 4px; border-bottom: 3px solid var(--orange);
  margin-bottom: 44px;
  animation: rise .6s ease both;
}

.page-head h1 {
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.028em;
  margin-bottom: 24px;
  animation: rise .7s .08s ease both;
}

.page-head .intro {
  font-size: clamp(19px, 2.1vw, 21px); color: var(--ink-soft);
  font-weight: 300; line-height: 1.55; max-width: 700px;
  animation: rise .7s .16s ease both;
}

/* ---------- Pieces ---------- */

.pieces { padding: 48px 0 56px; }

.piece { padding: 60px 0; border-bottom: 1px solid var(--line); }

.piece:first-child { padding-top: 16px; }
.piece:last-child { border-bottom: none; }

.piece .piece-eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 12px;
}

.piece h2 {
  font-size: clamp(27px, 3.3vw, 38px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.022em;
  margin-bottom: 18px; max-width: 720px;
}

.piece .caption {
  font-size: 17.5px; color: var(--ink); max-width: 660px;
  font-weight: 400; line-height: 1.6;
  margin-bottom: 28px;
}

.piece .caption + .caption {
  margin-top: -16px; color: var(--ink-soft); font-weight: 300;
}

/* Deliverables list: short scannable facts in a 2x2 grid.
   Each item is one bold lead + one short line. */

.piece .fact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 32px;
  max-width: 720px; margin: 0 0 30px;
}

.piece .fact-grid div {
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.5;
  padding-left: 14px; border-left: 2px solid var(--orange);
}

.piece .fact-grid b {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14.5px; font-weight: 750; color: var(--ink);
}

/* Screenshot row: labeled thumbnails at natural aspect ratio
   (for guideline pages and template slides). */

.piece .shot-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 22px;
}

.piece .shot-row figure { margin: 0; display: flex; flex-direction: column; }

.piece .shot-row img {
  width: 100%; height: auto; display: block;
  border-radius: 10px; background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .4s ease, box-shadow .4s ease;
}

.piece .shot-row img:hover { transform: scale(1.02); box-shadow: var(--shadow-lift); }

.piece .shot-row figcaption {
  margin-top: 9px; text-align: center;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
}

/* Images */

.piece .images { display: grid; gap: 22px; grid-template-columns: 1fr; }
.piece .images.two-up { grid-template-columns: repeat(2, 1fr); }
.piece .images.three-up { grid-template-columns: repeat(3, 1fr); }

.piece .images img,
.piece .tall-image img,
.piece .hero-image img {
  width: 100%; height: auto; display: block;
  border-radius: 12px; background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .4s ease, box-shadow .4s ease;
}

.piece .images img:hover,
.piece .tall-image img:hover,
.piece .hero-image img:hover {
  transform: scale(1.012);
  box-shadow: var(--shadow-lift);
}

.piece .tall-image { max-width: 648px; margin: 0 auto; }
.piece .hero-image { max-width: 720px; margin: 0 auto; }
.piece .hero-image.small { max-width: 520px; }
.piece .hero-image.mid { max-width: 620px; }

/* Transparent artwork: no frame, the drawing edge is the shape. */

.piece .hero-image.bare img,
.piece .images.bare img,
.piece .hero-image.bare img:hover,
.piece .images.bare img:hover {
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  filter: drop-shadow(0 10px 16px rgba(60,50,30,.22));
}

/* Video frames */

.piece .video-frame {
  position: relative; background: #fff;
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-width: 720px; margin: 0 auto;
}

.piece .video-frame video { display: block; width: 100%; height: auto; }

.piece .video-frame.square { max-width: 480px; aspect-ratio: 1 / 1; }
.piece .video-frame.square video { width: 100%; height: 100%; object-fit: cover; }
.piece .video-frame.small { max-width: 480px; }

.piece .video-grid { display: grid; gap: 22px; max-width: 720px; margin: 0 auto; }
.piece .video-grid.two-up { grid-template-columns: repeat(2, 1fr); }
.piece .video-grid .video-frame { max-width: none; margin: 0; }

/* Rive frame */

.piece .rive-frame {
  border-radius: 12px; padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-width: 560px; margin: 0 auto;
}

.piece .rive-frame canvas {
  display: block; width: 100%; height: auto; aspect-ratio: 640 / 560;
}

.piece .rive-hint {
  margin: 16px auto 0; text-align: center;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 15px; font-weight: 700; color: var(--orange);
}

/* Process rows */

.piece .process-row {
  margin: 22px auto 0; max-width: 380px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}

.piece .process-row.two { grid-template-columns: repeat(2, 1fr); max-width: 320px; }

.piece .process-row.medium { max-width: 560px; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.piece .process-row.medium.two { grid-template-columns: repeat(2, 1fr); max-width: 500px; }

.piece .process-row figure { margin: 0; display: flex; flex-direction: column; }

.piece .process-row img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border-radius: 10px; background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .4s ease, box-shadow .4s ease;
}

.piece .process-row img:hover { transform: scale(1.02); box-shadow: var(--shadow-lift); }

.piece .process-row figcaption {
  margin-top: 9px; text-align: center;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
}

/* Vector pair */

.piece .vector-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  max-width: 520px; margin: 0 auto;
  align-items: end; justify-items: center;
}

.piece .vector-pair figure { margin: 0; text-align: center; width: 100%; }

.piece .vector-pair img {
  max-width: 100%; max-height: 220px; width: auto; height: auto;
  display: block; margin: 0 auto;
  background: transparent;
  transition: transform .35s ease;
}

.piece .vector-pair img:hover { transform: scale(1.04) rotate(-1deg); }

.piece .vector-pair figcaption {
  margin-top: 12px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
}

/* =============================================
   About page
   ============================================= */

.about-main {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px;
  padding: 56px 0 8px; align-items: start;
}

.about-text h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.015em;
  margin: 36px 0 10px;
}

.about-text h2:first-child { margin-top: 0; }

.about-text p {
  font-size: 17.5px; line-height: 1.65; color: var(--ink);
  max-width: 620px; font-weight: 400;
}

.about-portrait {
  margin: 0; position: sticky; top: 110px;
  max-width: 300px; justify-self: end;
}

.about-portrait img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  display: block; border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.about-cta {
  margin: 48px 0 72px; padding-top: 32px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  font-size: 19px; font-weight: 400; max-width: 720px;
}

/* =============================================
   Contact page
   ============================================= */

.contact-main {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px;
  padding: 56px 0 24px; align-items: start;
}

.form-wrap { max-width: 560px; }

.form-wrap .field { margin-bottom: 22px; }

.form-wrap label {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  margin-bottom: 7px;
}

.form-wrap input,
.form-wrap textarea {
  width: 100%;
  font-family: 'Albert Sans', sans-serif;
  font-size: 16px; color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-wrap textarea { min-height: 160px; resize: vertical; }

.form-wrap input:focus,
.form-wrap textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(210,98,45,.15);
}

/* Honeypot field: invisible to people, tempting to bots.
   Do not remove; it cuts spam without any captcha. */
.form-wrap .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-wrap .btn { border: none; cursor: pointer; font-family: 'Albert Sans', sans-serif; }
.form-wrap .btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* Hidden until the script shows them */
.form-error, .form-success { display: none; }

.form-error.show {
  display: block;
  margin-top: 18px; padding: 14px 18px;
  background: #fbe9dd; border-left: 3px solid var(--orange);
  border-radius: 8px;
  font-size: 15px; color: var(--ink);
}

.form-success.show {
  display: block;
  padding: 28px;
  background: var(--paper-2); border-radius: 14px;
  font-size: 17px;
}

.form-success.show h2 {
  font-size: 21px; font-weight: 800; margin-bottom: 8px;
}

.form-success.show .btn {
  margin-top: 18px; border: none; cursor: pointer;
  font-family: 'Albert Sans', sans-serif;
}

/* "Prefer email?" aside */

.contact-aside {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 28px;
  position: sticky; top: 110px;
}

.contact-aside h2 { font-size: 19px; font-weight: 750; margin-bottom: 8px; }
.contact-aside p { font-size: 15px; color: var(--ink-soft); font-weight: 300; }

.contact-aside .mail {
  display: inline-block; margin: 10px 0 6px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--orange);
}

.contact-aside .mail:hover { color: var(--orange-deep); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .hero { padding: 64px 0 32px; }
  .proof { flex-direction: column; }
  .proof div { border-left: none; border-top: 1px solid var(--line); padding-left: 0; }
  .proof div:first-child { border-top: none; }
  .case { grid-template-columns: 1fr; gap: 28px; }
  .case.flip .case-media { order: 0; }
  .door-grid { grid-template-columns: 1fr; }
  .about-strip { grid-template-columns: 1fr; gap: 24px; }
  .nav { gap: 14px; flex-wrap: wrap; }
  .piece { padding: 44px 0; }
  .piece .images.two-up,
  .piece .images.three-up { grid-template-columns: 1fr; }
  .piece .fact-grid { grid-template-columns: 1fr; }
  .piece .shot-row { grid-template-columns: 1fr; }
  .piece .video-grid.two-up { grid-template-columns: 1fr; }
  .piece .video-frame.square { max-width: 100%; }
  .piece .rive-frame { max-width: 100%; }
  .piece .process-row { max-width: 100%; }
  .piece .process-row.medium.two { max-width: 100%; }
  .piece .vector-pair { grid-template-columns: 1fr; gap: 28px; max-width: 280px; }
  .about-main { grid-template-columns: 1fr; gap: 36px; }
  .about-portrait { position: static; max-width: 240px; justify-self: start; order: -1; }
  .contact-main { grid-template-columns: 1fr; gap: 36px; }
  .contact-aside { position: static; }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    gap: 14px;
    padding: 20px 0 16px;
    position: static; /* sticky OFF on phones: the stacked bar is too tall to pin */
  }
  .brand { justify-content: center; }
  .nav { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Temporary slot while waiting for a file (local build only) */
.tmp-slot {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--line);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  line-height: 1.5;
}
