/* ==========================================================================
   Rory Hardwick — UGC Portfolio
   White + beige base, dark "Midnight" greens, black text.
   Fonts: Anton (titles), Instrument Serif (accents), Manrope (body).
   All brand values live in :root.
   ========================================================================== */

:root {
  /* Colour — "Midnight" greens (token names kept as --sage-*) */
  --white: #FFFFFF;
  --beige: #F4F1EA;            /* warm light sections (Process, Contact, hero photo panel) */
  --sage-50: #F1F4F3;          /* nav pill background */
  --sage-100: #E1E8E5;         /* light text on dark sections */
  --sage-300: #9DB8AC;         /* hairlines, decorative outlines */
  --sage-500: #2F6F57;         /* decorative strokes */
  --sage-700: #0E4D3A;         /* emerald: buttons, accents, hovers on light (9:1 on white) */
  --sage-900: #0A1F18;         /* midnight: dark sections and strips */
  --ink: #000000;              /* body text */
  --muted: #474C4A;            /* secondary text on light */
  --line: #D8DFDC;             /* hairlines on light */
  --line-dark: rgba(255,255,255,.18); /* hairlines on dark */

  /* Type */
  --font-display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 136px;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --radius: 20px;
  --radius-sm: 12px;
  --pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22, .8, .24, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 700ms;

  /* Layers */
  --z-header: 40;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
em { font-style: normal; }

:focus-visible { outline: 2px solid var(--sage-700); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--white); }

.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-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--sage-900); color: var(--white); padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Shared type ---------- */
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-700); }
.kicker-light { color: var(--white); }

.title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(48px, 7vw, 104px); line-height: 1.06; letter-spacing: -.005em;
  margin-top: var(--s-4); text-wrap: balance;
}

.blurb { font-size: 17px; color: var(--muted); max-width: 44ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 54px; padding: 0 28px; border-radius: var(--pill);
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn svg { transition: transform var(--t-med) var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--sage-700); color: var(--white); }
.btn-primary:hover { background: var(--sage-900); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-ghost:hover svg { transform: none; }
/* Light button for dark sections */
.btn-light { background: var(--white); color: var(--sage-900); }
.btn-light:hover { background: var(--sage-100); color: var(--sage-900); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--t-med);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-5); }

.logo {
  justify-self: start; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); white-space: nowrap;
  transition: color var(--t-fast);
}
.logo:hover { color: var(--sage-700); }
.logo-sep { margin: 0 .4em; color: var(--sage-500); font-weight: 400; }

.site-nav { display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: var(--pill); background: var(--sage-50); border: 1px solid var(--line); }
.site-nav a {
  padding: 9px 18px; border-radius: var(--pill); font-size: 14px; font-weight: 500;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.site-nav a:hover { color: var(--sage-700); }
.site-nav a.is-current { background: var(--white); color: var(--sage-700); box-shadow: 0 1px 4px rgba(10,31,24,.08); }
.nav-mobile-cta { display: none; }

.header-actions { justify-self: end; display: flex; align-items: center; gap: var(--s-2); }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; border-radius: 50%; border: 1px solid var(--line); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  :root { --header-h: 68px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; top: var(--header-h); left: var(--s-3); right: var(--s-3);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-3); border-radius: var(--radius); background: var(--white);
    box-shadow: 0 24px 48px -12px rgba(10,31,24,.22);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--t-med), transform var(--t-med) var(--ease), visibility var(--t-med);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 14px 16px; font-size: 16px; border-radius: var(--radius-sm); }
  .site-nav a.is-current { box-shadow: none; background: var(--sage-50); }
  .nav-mobile-cta { display: block; margin-top: var(--s-2); text-align: center; background: var(--sage-700); color: var(--white) !important; font-weight: 600; }
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; }
@media (min-width: 1600px) { .hero { grid-template-columns: 1fr 720px; } } /* keep the photo panel snug on very wide screens */
.hero-left {
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(24px, 2.4vw, 36px) var(--gutter) clamp(36px, 3.4vw, 48px) max(var(--gutter), calc((100vw - var(--scrollbar, 0px) - var(--container)) / 2 + var(--gutter)));
}
.hero-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(24px, 2.2vw, 32px); }
.hero-top { display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow { display: flex; align-items: center; gap: var(--s-3); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-700); margin-bottom: clamp(16px, 1.4vw, 20px); }
.eyebrow .rule { width: 32px; height: 1.5px; background: currentColor; flex: none; }
.hero-name { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(64px, 10vw, 168px); line-height: .9; letter-spacing: -.005em; }
.hero-name .accent, .title .accent { color: var(--sage-700); }
.nowrap { white-space: nowrap; }
.hero-tagline { font-family: var(--font-serif); font-style: normal; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.25; max-width: 30ch; margin-top: clamp(12px, 1.1vw, 16px); text-wrap: balance; }
.hero-tagline em { font-style: normal; color: var(--sage-700); }

/* Buttons + socials share one row */
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.hero-ctas .socials { margin-left: var(--s-2); }
.socials { display: flex; gap: var(--s-2); }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.socials a:hover { background: var(--sage-700); border-color: var(--sage-700); color: var(--white); }
.socials svg { width: 18px; height: 18px; }

.hero-right {
  position: relative; overflow: hidden; background: var(--beige);
  display: flex; align-items: flex-end; justify-content: center;
  padding: clamp(24px, 2.4vw, 32px) var(--s-6) 0;
}
/* Very faint repeating UGC pattern */
.hero-pattern {
  position: absolute; inset: -12% -30%; display: flex; flex-direction: column; justify-content: space-around;
  font-family: var(--font-display); font-size: clamp(150px, 15vw, 240px); line-height: .9; letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1px var(--sage-300); opacity: .2;
  white-space: nowrap; pointer-events: none; user-select: none; transform: rotate(-8deg);
}
.hero-pattern span:nth-child(even) { transform: translateX(-.6em); }
.hero-photo-wrap { position: relative; z-index: 1; width: min(100%, clamp(300px, 30vw, 480px)); }
.media.hero-photo { aspect-ratio: 4 / 5; border-radius: 0; }
.hero-photo > img { object-position: center bottom; } /* keep the subject in frame; trims sky first */

@media (max-width: 1240px) and (min-width: 961px) {
  .hero { grid-template-columns: 1.15fr .85fr; }
  .hero-ctas { flex-wrap: nowrap; }
  .hero-ctas .btn { padding: 0 22px; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: clamp(20px, 4vw, 32px) var(--gutter) clamp(32px, 6vw, 48px); }
  .hero-right { padding: clamp(40px, 8vw, 64px) var(--gutter) 0; }
  .hero-photo-wrap { width: min(100%, 400px); }
  .hero-name { font-size: clamp(64px, 14vw, 128px); } /* fill tablets better once the hero stacks */
}
@media (max-width: 480px) {
  /* Two buttons side by side, icons on their own row */
  .hero-ctas .btn { flex: 1 1 0; padding: 0 14px; font-size: 14px; }
  .hero-ctas .socials { flex-basis: 100%; margin: var(--s-1) 0 0; }
}
@media (max-width: 360px) {
  .hero-ctas .btn { flex-basis: 100%; }
  .eyebrow { letter-spacing: .14em; font-size: 11px; } /* keeps the eyebrow on one line */
}

/* ---------- Media placeholder (shows until an image loads) ---------- */
.media {
  position: relative; overflow: hidden; display: block; width: 100%;
  background:
    radial-gradient(120% 70% at 30% 15%, rgba(255,255,255,.7), transparent 60%),
    linear-gradient(170deg, var(--sage-100), var(--sage-300));
}
.media > img, .media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-label {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-900); padding: var(--s-4);
}
.ph-label small { font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: none; margin-top: 4px; opacity: .8; }

/* ---------- Sections ---------- */
.section { padding: var(--s-10) 0; }
.section-beige { background: var(--beige); }

.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); margin-bottom: var(--s-8); }
.section-head .title { margin-top: 0; }
.section-head-center { align-items: center; text-align: center; }
.section-head-center .blurb { margin-inline: auto; }


@media (max-width: 900px) {
  .section { padding: var(--s-9) 0; }
  .section-head { margin-bottom: var(--s-7); }
}

/* ---------- Play buttons ---------- */
.clip-trigger { cursor: pointer; text-align: left; }
.play {
  position: absolute; left: 50%; top: 50%; z-index: 3; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--sage-900); box-shadow: 0 10px 30px rgba(10,31,24,.25);
  transition: transform var(--t-med) var(--ease), background-color var(--t-fast), color var(--t-fast);
}
.play svg { width: 22px; height: 22px; margin-left: 3px; }
.play-sm { left: auto; top: 14px; right: 14px; width: 44px; height: 44px; margin: 0; }
.play-sm svg { width: 16px; height: 16px; margin-left: 2px; }
.clip-trigger:hover .play, .clip-trigger:focus-visible .play { transform: scale(1.08); background: var(--sage-700); color: var(--white); }

/* ---------- 01 Projects ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-7); border-bottom: 1px solid var(--line); }
.tab {
  position: relative; min-height: 48px; padding: 0 2px; font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color var(--t-fast);
}
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sage-700);
  transform: scaleX(0); transition: transform var(--t-med) var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 600; }
.tab.is-active::after { transform: scaleX(1); }

.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.clip { animation: clip-in var(--t-med) var(--ease) both; }
.clip[hidden] { display: none; }
.clip-card {
  aspect-ratio: 9 / 16; border-radius: var(--radius);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
/* Darkening layer that fades in on hover */
.clip-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: rgba(10,31,24,.28); opacity: 0; transition: opacity var(--t-med) var(--ease);
}
/* Caption below each card */
.clip-meta { display: flex; flex-direction: column; gap: 4px; padding-top: var(--s-3); }
.clip-brand { font-family: var(--font-display); font-weight: 400; font-size: 24px; text-transform: uppercase; line-height: 1; color: var(--ink); }
.clip-type { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-700); }
/* Hover (mouse/trackpad only) and keyboard focus, placeholder cards */
@media (hover: hover) {
  .clip-trigger:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -18px rgba(10,31,24,.45); }
  .clip-trigger:hover::after { opacity: 1; }
}
.clip-trigger:focus-visible { transform: translateY(-6px); box-shadow: 0 24px 40px -18px rgba(10,31,24,.45); }
.clip-trigger:focus-visible::after { opacity: 1; }
/* Cards with a video: the platform player fills the card */
.clip-frame { background: var(--ink); }
.clip-frame::after { display: none; }
.clip-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
@keyframes clip-in { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .work-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); } .clip-brand { font-size: 19px; } }

/* ---------- Mid-page banner (midnight strip) ---------- */
.midcta { background: var(--sage-900); color: var(--white); }
.midcta-inner { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: var(--s-5); padding-block: clamp(40px, 4.4vw, 64px); }
.midcta-text { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 3.5vw, 54px); line-height: 1; white-space: nowrap; }
.midcta .btn { flex: none; }
@media (max-width: 860px) {
  .midcta-inner { flex-direction: column; flex-wrap: wrap; gap: var(--s-4); text-align: center; }
  .midcta-text { white-space: normal; font-size: clamp(32px, 8vw, 44px); }
}

/* ---------- 02 Process: timeline ---------- */
#process { padding: clamp(56px, 8vw, 112px) 0; }
#process .section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7); }
.timeline::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 1px; background: var(--sage-300); }
.timeline li { position: relative; display: flex; flex-direction: column; gap: var(--s-3); }
.tl-dot {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--sage-500); color: var(--sage-700);
  font-family: var(--font-display); font-weight: 400; font-size: 20px; margin-bottom: var(--s-3);
}
.timeline h3 { font-family: var(--font-display); font-weight: 400; font-size: 40px; text-transform: uppercase; line-height: 1; }
.timeline p { color: var(--muted); max-width: 34ch; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: var(--s-6); }
  .timeline::before { left: 28px; right: auto; top: 28px; bottom: 28px; width: 1px; height: auto; }
  .timeline li { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--s-5); }
  .tl-dot { grid-row: span 2; margin: 0; }
}

/* ---------- Value strip (midnight strip under the hero) ---------- */
.strip { background: var(--sage-900); color: var(--white); }
.strip-inner { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); padding-block: clamp(24px, 2.8vw, 36px); }
.strip-list { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-3) clamp(20px, 2.4vw, 36px); }
.strip-list li {
  display: flex; align-items: center; gap: clamp(20px, 2.4vw, 36px);
  font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 24px); text-transform: uppercase; letter-spacing: .02em;
  color: var(--white); white-space: nowrap;
}
.strip-list li + li::before { content: "|"; flex: none; font-family: var(--font-body); font-weight: 400; color: var(--white); opacity: .4; }
@media (max-width: 1100px) {
  .strip-inner { flex-direction: column; text-align: center; gap: var(--s-4); }
  .strip-list { justify-content: center; gap: var(--s-3) var(--s-4); }
  .strip-list li { gap: var(--s-4); }
}
@media (max-width: 1000px) {
  /* The list can wrap here, so drop the dividers to avoid one starting a line */
  .strip-list li + li::before { display: none; }
  .strip-list { gap: var(--s-2) var(--s-6); }
}

/* ---------- 03 About (midnight) ---------- */
.about-section { background: var(--sage-900); color: var(--white); padding: clamp(56px, 8vw, 112px) 0; }
.about-head {
  display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: clamp(32px, 4.4vw, 64px);
  padding-bottom: clamp(24px, 2.4vw, 32px); margin-bottom: clamp(40px, 4.4vw, 64px);
  border-bottom: 1px solid var(--line-dark);
}
.about-head .title { margin-top: var(--s-4); }
.about-section .title .accent { color: var(--white); }
.about-blurb { font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; color: var(--sage-100); max-width: 480px; justify-self: start; }

.about { display: grid; grid-template-columns: minmax(300px, 500px) 1fr; gap: clamp(40px, 5.6vw, 80px); align-items: stretch; }
.about-photo { height: 100%; min-height: 360px; border-radius: 10px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.about-photo > img { object-position: center 85%; } /* keep the subject (lower half of the photo) in frame */
@media (max-width: 1240px) and (min-width: 1001px) {
  .about { grid-template-columns: minmax(260px, 0.7fr) 1fr; align-items: end; }
  .about-photo { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
}

.about-body { display: flex; flex-direction: column; align-items: flex-start; }
.about-body > p:not(.about-hook):not(.mini-head) { max-width: 620px; }
.about-hook {
  margin-bottom: var(--s-6); text-wrap: balance;
  font-family: var(--font-serif); font-style: italic; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.25; color: var(--white);
}
.about-body > p:not(.about-hook):not(.mini-head) { font-size: 17px; line-height: 1.7; color: var(--sage-100); margin-bottom: var(--s-4); }
.about-body strong { color: var(--white); font-weight: 600; }
.about-body .mini-head {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; margin: var(--s-6) 0 var(--s-4);
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--white);
}
.about-body .mini-head::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }
.services { display: flex; flex-wrap: wrap; gap: var(--s-2); max-width: 620px; }
.services li {
  padding: 9px 16px; border-radius: var(--pill); border: 1px solid var(--line-dark); font-size: 14px; font-weight: 500; color: var(--white);
  cursor: default; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast) var(--ease);
}
/* Smaller laptops: slightly more compact pills so they stay on two lines */
@media (max-width: 1240px) and (min-width: 1001px) {
  .services { gap: 6px; max-width: none; }
  .services li { padding: 7px 11px; font-size: 12.5px; }
}
@media (hover: hover) {
  .services li:hover { background: var(--white); border-color: var(--white); color: var(--sage-900); transform: translateY(-2px); }
}
@media (max-width: 1000px) {
  .about-head { grid-template-columns: 1fr; gap: var(--s-4); }
  .about-blurb { justify-self: start; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 500px; height: auto; min-height: 0; aspect-ratio: 1 / 1; }
}

/* ---------- Contact (beige) ---------- */
.contact { background: var(--beige); color: var(--ink); padding: clamp(72px, 8.4vw, 120px) 0; text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-700); margin-bottom: var(--s-5); }
.contact-headline { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(56px, 8.2vw, 120px); line-height: .9; margin-bottom: var(--s-6); }
.contact-headline .accent { color: var(--sage-700); }
.contact-tag { font-size: 18px; color: var(--muted); max-width: 46ch; margin-bottom: var(--s-7); }
.contact-email {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 56px; padding: 0 40px;
  border-radius: var(--pill); background: var(--sage-700); color: var(--white);
  font-family: var(--font-body); font-size: 16px; font-weight: 600; letter-spacing: .02em;
  overflow-wrap: anywhere; transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease);
}
.contact-email span { display: inline-block; transition: transform var(--t-med) var(--ease); }
.contact-email:hover { background: var(--sage-900); color: var(--white); }
.contact-email:hover span { transform: translateX(4px); }
.contact-email:active { transform: scale(.97); }
@media (max-width: 480px) { .contact-tag { font-size: 16px; } .contact-email { padding: 0 24px; font-size: 15px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); }
.footer-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding-block: var(--s-6); border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer-row nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer-row a { padding-block: var(--s-2); font-weight: 600; color: var(--ink); transition: color var(--t-fast); }
.footer-row a:hover { color: var(--sage-700); }

/* ---------- Video cards ---------- */
.clip { position: relative; }
/* "Coming soon" note for clips without a video yet */
.clip::after {
  content: "Video coming soon"; position: absolute; left: 50%; top: 40%; z-index: 5; transform: translate(-50%, -50%);
  padding: 8px 14px; border-radius: var(--pill); background: rgba(10,31,24,.85); color: var(--white);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--t-fast);
}
.clip.is-soon::after { opacity: 1; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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