/* ============================================
   BENDERWORKS — BASE STYLES
   Layout, spacing, and structure live here.
   Colors and fonts are set as CSS variables
   below, swapped per "theme" for the prototype.
   ============================================ */

/* Your licensed logo font, self-hosted from /fonts.
   Three weights, matching the files you uploaded. */
@font-face {
  font-family: "Liberator";
  src: url("../fonts/Liberator-Light.woff2") format("woff2"),
       url("../fonts/Liberator-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Liberator";
  src: url("../fonts/Liberator-Medium.woff2") format("woff2"),
       url("../fonts/Liberator-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Liberator";
  src: url("../fonts/Liberator-Heavy.woff2") format("woff2"),
       url("../fonts/Liberator-Heavy.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Archivo", sans-serif;

  --bg: #15171a;
  --bg-rgb: 21, 23, 26;
  --bg-raised: #1c1f23;
  --bg-sunken: #0e0f11;
  --text: #f3f1ec;
  --text-dim: #a7aaad;
  --accent: #4c6ef5;
  --accent-2: #4c6ef5;
  --border: #2a2d31;
}

/* THEME A — Technical / Studio (default) */
.theme-a {
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Archivo", sans-serif;
  --bg: #15171a;
  --bg-rgb: 21, 23, 26;
  --bg-raised: #1c1f23;
  --bg-sunken: #0e0f11;
  --text: #f3f1ec;
  --text-dim: #a7aaad;
  --accent: #4c6ef5;
  --accent-2: #4c6ef5;
  --border: #2a2d31;
}

/* THEME B — Rugged / Stenciled */
.theme-b {
  --font-head: "Big Shoulders Display", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --bg: #23271f;
  --bg-rgb: 35, 39, 31;
  --bg-raised: #2b3025;
  --bg-sunken: #181b15;
  --text: #f0ead8;
  --text-dim: #b3ad9b;
  --accent: #d9572c;
  --accent-2: #d9572c;
  --border: #383d31;
}

/* THEME C — Editorial / Premium */
.theme-c {
  --font-head: "Fraunces", serif;
  --font-body: "Archivo", sans-serif;
  --bg: #1c1714;
  --bg-rgb: 28, 23, 20;
  --bg-raised: #261f1a;
  --bg-sunken: #130f0d;
  --text: #f4ede2;
  --text-dim: #b5a896;
  --accent: #b8954f;
  --accent-2: #b8954f;
  --border: #342b23;
}

/* THEME D — Your Brand, Dark (real BenderWorks colors + fonts) */
.theme-d {
  --font-head: "Liberator", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --bg: #2a2a2a;
  --bg-rgb: 42, 42, 42;
  --bg-raised: #4b4b4b;
  --bg-sunken: #1c1c1c;
  --text: #f4f2ef;
  --text-dim: #c5c5c4;
  --accent: #eb682c;
  --accent-2: #5e33fa;
  --border: #4b4b4b;
}

/* THEME E — Your Brand, Light (same palette, flipped to your light-mode lockup) */
.theme-e {
  --font-head: "Liberator", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --bg: #f4f2ef;
  --bg-rgb: 244, 242, 239;
  --bg-raised: #ffffff;
  --bg-sunken: #d9d6d1;
  --text: #2a2a2a;
  --text-dim: #6b6b6b;
  --accent: #eb682c;
  --accent-2: #5e33fa;
  --border: #c5c5c4;
}

/* Liberator ships at Medium weight in your actual logo — match that
   for headlines in your brand themes rather than the heavier 700
   used as the default elsewhere. */
.theme-d h1, .theme-d h2, .theme-d h3,
.theme-e h1, .theme-e h2, .theme-e h3 {
  font-weight: 500;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  transition: background 0.2s ease, color 0.2s ease;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 28px;
  width: auto;
  display: block;
}

/* ---------- Floating nav (bottom, centered) ---------- */
.floating-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(var(--bg-rgb), 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  max-width: 92vw;
}

/* "Go home" shortcut, shown at the leading edge of the floating nav on
   every page except the homepage itself. */
.nav-home-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-dim);
  flex-shrink: 0;
}

.nav-home-icon:hover {
  color: var(--text);
  background: rgba(94, 51, 250, 0.16);
  box-shadow: 0 0 14px rgba(94, 51, 250, 0.4);
}

.nav-home-icon svg {
  display: block;
}

.nav-links {
  position: relative;
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-dim);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(94, 51, 250, 0.16);
  box-shadow: 0 0 14px rgba(94, 51, 250, 0.4);
}

/* Sliding highlight behind the active section on the homepage. Lives
   inside .floating-nav (its own stacking context, since it's
   position: fixed), with z-index: -1 so it tucks behind the link text
   but stays above the nav bubble's own background. */
.nav-pill {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #eb682c, #ff8a50);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: left 0.25s ease, width 0.25s ease, opacity 0.2s ease;
}

.nav-links a.active {
  color: #1a1a1a;
  font-weight: 600;
}

/* Highlights whichever nav item matches the page you're currently on,
   for every page except the homepage (which uses the sliding .nav-pill
   and scroll-spy .active class instead). */
.nav-links a.nav-current {
  background: linear-gradient(135deg, #eb682c, #ff8a50);
  color: #1a1a1a;
  font-weight: 600;
}

/* ---------- Hero ---------- */
/* Back to an adaptive, content-driven height — no forced min-height —
   so the next section sits closer beneath the card again rather than
   being pushed almost to the bottom of the screen. */
.hero {
  position: relative;
  padding: 140px 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero/forest-bg-2.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.47) 0%, rgba(var(--bg-rgb), 0.78) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  max-width: none;
  padding: 0;
}

/* The "floating window" — a frosted glass card sitting on top of the
   ambient background image, same idea as github.com's homepage hero.
   Height is content-driven (adaptive); text-align centers everything
   inside it. */
.hero-card {
  position: relative;
  width: 70%;
  margin: 0 auto;
  background: rgba(var(--bg-rgb), 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px 20px 0 0;
  /* Top padding is clamp(84px, vw rate, 142.8px), same growth pattern
     as the headline below it: flat at 84px through 1512px-wide screens,
     then grows in step with the viewport past that, capped at 170% of
     the floor. This keeps the gap above the headline proportional as
     the headline itself grows toward its own ceiling on ultrawide
     monitors, instead of a fixed 84px that reads as cramped once the
     headline gets large. Bottom stays flat at 72px since that side
     wasn't the issue. */
  padding: clamp(84px, 5.56vw, 142.8px) 56px 72px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  text-align: center;
}

/* Pinned to the card's top-left corner instead of sitting in the
   centered text flow with the rest of the heading block. Taking it
   out of flow with position:absolute means it no longer needs
   margin-bottom to push the headline down. Sized 30% smaller than
   the original corner-pin size, per request. */
.eyebrow {
  position: absolute;
  top: 28px;
  left: 32px;
  z-index: 1;
  font-size: clamp(12.29px, 0.81vw, 20.89px);
  text-transform: uppercase;
  text-align: left;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}

/* Each remaining size below is clamp(floor, a vw rate, ceiling). Below
   a 1512px-wide screen (a 14" MacBook Pro) the vw side stays under the
   floor, so the flat px value holds, matching today's approved look
   on a MacBook and everything smaller. Past 1512px the vw side takes
   over and the block grows in step with the card's own 70vw width, up
   to a hard ceiling of 170% of the floor, so it never balloons past
   that no matter how wide the monitor is. The mobile media query
   below drops the headline to a smaller size under 860px, since a
   phone screen shouldn't carry the full MacBook-size heading. */

/* Reverted to its pre-scale-up size (this is what was making the
   headline read as too big) and centered with margin:0 auto. The old
   max-width with no auto margin is what was pulling it to the left
   edge of the card on ultrawide monitors once the card grew wider
   than the max-width cap. */
.hero h1 {
  font-size: clamp(54px, 3.57vw, 91.8px);
  max-width: clamp(820px, 54.23vw, 1394px);
  margin: 0 auto clamp(24px, 1.59vw, 40.8px);
}

.brand-rule {
  width: clamp(162px, 10.71vw, 275.4px);
  height: clamp(5.4px, 0.36vw, 9.18px);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin: 0 auto clamp(37.8px, 2.5vw, 64.26px);
  border-radius: 2.7px;
}

.hero p {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent);
  color: #15171a;
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
}

/* ---------- Section heading ---------- */
.section {
  padding: 90px 0;
  border-bottom: 1px solid var(--border);
}

.section-heading {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 12px;
}

#capabilities .section-heading {
  text-align: center;
  font-size: clamp(30px, 5vw, 46px);
}

/* Soft orange glow bleeding down from the seam under the hero card. */
#capabilities {
  position: relative;
  z-index: 0;
  padding: 0 0 90px;
}

#capabilities::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: radial-gradient(ellipse 90% 100% at 50% 0%, rgba(235, 104, 44, 0.32) 0%, rgba(235, 104, 44, 0) 75%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

/* Centers the heading within the glow band above (same height as the
   glow itself, so the text sits squarely inside the glow rather than
   just below it). */
.vp-heading-wrap {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-sub {
  color: var(--text-dim);
  margin-bottom: 48px;
  font-size: 16px;
}

/* ---------- Value prop tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.tile {
  background: var(--bg);
  padding: 32px 24px;
  text-align: center;
}

.tile h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.tile p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------- Work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.work-card:hover {
  border-color: var(--accent);
}

.work-card-image {
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-raised), var(--border));
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card-body {
  padding: 20px;
}

.work-view-all {
  display: inline-block;
  margin-top: 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.work-view-all:hover {
  text-decoration: underline;
}

/* Generic "Discover More" / "Explore"-style CTA, same look as
   .work-view-all, reused on the About and Capabilities homepage
   sections. */
.cta-link {
  display: inline-block;
  margin-top: 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.cta-link:hover {
  text-decoration: underline;
}

.section-cta-wrap {
  margin-top: 4px;
}

#capabilities .section-cta-wrap {
  text-align: center;
}

.work-card-tag {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  font-weight: 600;
}

.work-card h3 {
  font-size: 17px;
}

/* ---------- Capabilities ("What we do") ---------- */
/* Reusable wrapper for any section using the braptor-1 background +
   frosted card treatment (the homepage's "What we do" section, and the
   same section reused at the top of capabilities.html). */
.bg-image-section {
  position: relative;
  overflow: hidden;
}

.capabilities-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/capabilities/braptor-1.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  z-index: 0;
}

/* Same frosted-glass treatment as .hero-card, so the text stays readable
   against the photo behind it. */
.capabilities-card {
  position: relative;
  z-index: 1;
  background: rgba(var(--bg-rgb), 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 56px;
}

.cap-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cap-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.cap-item p {
  color: var(--text-dim);
  font-size: 15px;
}

/* ---------- Generic photo-background sections ---------- */
/* Same visual idea as .bg-image-section / .capabilities-bg /
   .capabilities-card, deliberately duplicated as its own generic
   pattern (rather than reusing those classes directly) so future photo
   sections can't accidentally regress the tuned hero/capabilities
   treatments. Each instance sets its own background-image inline on
   .photo-bg, so one set of rules covers any photo. */
.photo-section {
  position: relative;
  overflow: hidden;
}

.photo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  z-index: 0;
}

.photo-card {
  position: relative;
  z-index: 1;
  background: rgba(var(--bg-rgb), 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 56px;
}

/* Lighter padding for page headers, which carry less content than a
   full section card. */
.photo-card.photo-card-sm {
  padding: 40px 56px;
}

/* About page: headshot next to the bio copy inside the photo card. */
.about-intro-row {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-headshot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .about-intro-row {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- About page: "How I work" emphasis ---------- */
/* Scoped to this page's unique #how-heading/#how-list IDs, not the
   shared .section-heading/.cap-list/.cap-item classes those also use
   -- so the homepage "what we do" section and the Capabilities page
   services section (which reuse the same classes) are unaffected. */
.how-frame {
  border: 2px dotted var(--accent);
  border-radius: 18px;
  padding: 40px 36px;
}

#how-heading {
  font-size: clamp(32.5px, 5vw, 47.5px); /* .section-heading's clamp, +25% */
}

/* Centers each item's title + body, while #how-heading above (the
   section's actual title) keeps its default left alignment. */
#how-list .cap-item {
  position: relative;
  text-align: center;
}

/* Vertical orange line between (not after) each item, centered in the
   grid's 32px gap. */
#how-list .cap-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: -16px;
  width: 2px;
  background: var(--accent);
}

#how-list .cap-item h3 {
  font-size: 22.5px; /* 18px, +25% */
}

#how-list .cap-item p {
  font-size: 18.75px; /* 15px, +25% */
}

/* ---------- Prose (About page body copy) ---------- */
.prose p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 720px;
  margin-bottom: 20px;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Pricing tiers (Capabilities page) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

/* Subtle topographic-contour texture behind each tier card, on brand
   for an outdoor/overland studio. Drawn as its own layer (rather than
   directly on .price-card's background) so its opacity can be tuned
   independently of the card's base color, and so card content can sit
   above it via z-index. Each tier gets its own contour layout and line
   color/treatment below, rather than sharing one pattern. */
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  pointer-events: none;
}

/* Trail: calm, light grey lines, still clearly darker than the body
   text so the texture never competes with the copy. */
.price-card-trail::before {
  background-image: url("../images/patterns/topo-trail.svg");
  opacity: 0.22;
}

/* Summit: a single dominant peak in brand orange. */
.price-card-summit::before {
  background-image: url("../images/patterns/topo-summit.svg");
  opacity: 0.18;
}

/* Expedition: a longer range of peaks with a gold metallic gradient
   stroke baked into the SVG itself, for a bit of sheen. */
.price-card-expedition::before {
  background-image: url("../images/patterns/topo-expedition.svg");
  opacity: 0.24;
}

.price-card > * {
  position: relative;
  z-index: 1;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.price-name {
  font-family: var(--font-head);
  font-size: 22px;
  margin-bottom: 4px;
}

.price-tagline {
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 20px;
}

.price-amount {
  font-family: var(--font-head);
  font-size: 36px;
  margin-bottom: 16px;
}

.price-suffix {
  font-size: 16px;
  color: var(--text-dim);
  font-family: var(--font-body);
}

.price-body {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  font-size: 14px;
  color: var(--text-dim);
  margin-top: auto;
}

.price-features li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.price-features li:first-child {
  border-top: none;
}

/* Wrapper can hold any number of note lines (rendered from the
   pricing.notes array in content/capabilities-content.js). */
.pricing-notes {
  margin-top: 28px;
  max-width: 720px;
}

.pricing-note {
  font-size: 13px;
  color: var(--text-dim);
}

.pricing-note:not(:first-child) {
  margin-top: 6px;
}

/* ---------- Contact ---------- */
.contact-section {
  text-align: center;
  border-bottom: none;
}

.contact-section h2 {
  font-size: clamp(28px, 5vw, 44px);
  margin-bottom: 16px;
}

.contact-section p {
  color: var(--text-dim);
  margin-bottom: 32px;
}

/* Standalone Contact page needs more breathing room than the homepage's
   in-flow contact section. Top padding is lighter than other photo
   sections since this one now sits below its own plain .page-header
   rather than being the first thing on the page. */
.contact-page-header {
  padding: 60px 0 100px;
}

/* Netlify-backed contact form. Left-aligned and width-capped inside
   the otherwise centered .photo-card, since a form reads better
   left-to-right than centered. */
.contact-form {
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-dim);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  border: none;
  cursor: pointer;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  min-height: 20px;
}

.form-status.success { color: var(--accent); }
.form-status.error { color: #e25c5c; }

.contact-divider {
  margin: 32px 0 16px;
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
}

/* ---------- Footer ---------- */
/* Extra bottom padding so page content gets real breathing room above
   the floating nav bubble, instead of feeling squished against it. */
.footer {
  padding: 48px 0 130px;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Work page / project page header ---------- */
.page-header {
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(30px, 5vw, 48px);
}

.project-header {
  padding: 140px 0 60px;
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-dim);
}

.back-link:hover {
  color: var(--text);
}

.project-header .eyebrow {
  margin-bottom: 14px;
}

.project-header h1 {
  font-size: clamp(30px, 5vw, 48px);
  margin-bottom: 14px;
  max-width: 820px;
}

.project-header p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 640px;
}

/* ---------- Project pages (the exported PNGs) ---------- */
.project-pages {
  padding: 60px 0;
}

.project-pages img {
  display: block;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto 24px;
  border: 1px solid var(--border);
}

.project-nav-section {
  padding: 0 0 90px;
}

.project-nav-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .cap-list { grid-template-columns: 1fr; gap: 28px; }
  .floating-nav { bottom: 16px; padding: 6px; }
  .nav-links { flex-wrap: nowrap; gap: 3px; }
  .nav-links a { padding: 8px 12px; font-size: 12px; white-space: nowrap; }
  /* Card is inset from full width (not flush edge-to-edge) so the
     background photo still shows on the sides on mobile, same as on
     desktop. */
  /* Top padding bumped from 32px to 48px for more room below the
     pinned eyebrow badge, since mobile felt the most cramped. */
  .hero-card { width: 90%; padding: 48px 24px 32px; border-radius: 16px 16px 0 0; }
  .hero { padding-top: 32px; }
  /* The eyebrow and headline both get a true mobile-specific size here.
     Their desktop floor values are sized for a MacBook-width card and
     would look oversized on a phone-width one. The eyebrow's corner
     buffer also shrinks slightly to match the card's smaller mobile
     padding above. Font size is 30% smaller than before, per request. */
  .eyebrow { font-size: 9.1px; top: 18px; left: 20px; }
  .hero h1 { font-size: 36px; margin-bottom: 24px; }
  .capabilities-card { padding: 32px 24px; }
  /* .cap-list stacks to one column above, so the vertical dividers
     between "How I work" items no longer apply. */
  #how-list .cap-item:not(:last-child)::after { display: none; }
  .how-frame { padding: 28px 20px; }
}

@media (max-width: 420px) {
  .floating-nav { padding: 5px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 9px; font-size: 10.5px; }
}

@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
