/* =========================================================
   Config Marketing — site styles
   Brand rules live in README.md. Change colors/fonts here,
   in :root, and they update everywhere.
   ========================================================= */

/* Brand type follows the config.marketing design system:
   Roca One (titles), Space Mono (labels, numbers), DM Sans (headings,
   UI) and Google Sans Flex (body). Space Mono, DM Sans and Google Sans
   Flex load from Google Fonts in each page's <head>.
   Roca One (licensed for web use) is self-hosted from /public/fonts/,
   copied from the design system's font files. */
@font-face {
  font-family: "Roca One";
  src: url("/fonts/RocaOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roca One";
  src: url("/fonts/RocaOne-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Brand palette */
  --orange: #ff7f30;
  --navy: #192733;
  --off-white: #fff1e9;
  --mocha: #8d796e;
  --light-blue: #728fa8;

  /* Derived tints */
  --navy-90: #24333f;
  --line: #ecd9cc;
  --white: #fffaf6;
  /* Deeper shades of the secondaries/accent for logo thumbnails, so off-white logos read on all of them */
  --mocha-deep: #6e5c52;  /* off-white 5.7:1 */
  --blue-deep: #4f6b85;   /* off-white 5.0:1 */
  --orange-deep: #b8561a; /* off-white 4.3:1 */
  --light-blue-tint: #c7d2dc; /* light-blue at 40% on white: headline highlight */

  /* Brand type: Title / Subtitle / Heading / Subheading+body */
  --font-title: "Roca One", Fraunces, Georgia, serif;
  --font-subtitle: "Space Mono", ui-monospace, monospace;
  --font-heading: "DM Sans", system-ui, sans-serif;
  --font-body: "Google Sans Flex", "DM Sans", system-ui, sans-serif;

  --max: 1120px;
  /* Radius tokens from the design system. Full-width bands stay square. */
  --radius-sm: 4px;  /* buttons, inputs, tags */
  --radius-md: 8px;  /* cards, images, panels */
  --radius-lg: 24px; /* headshot frames only */
  --radius: var(--radius-md);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--off-white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.625; /* body: 16 / 26 */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration-color: var(--orange); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--navy); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: var(--radius-sm); }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* ---------- Type ---------- */
h1, .title {
  font-family: var(--font-title);
  font-weight: 400; /* Roca One Regular for page headlines (Cassidy's call, Nov 2026) */
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.07;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}
h2 {
  font-family: var(--font-heading);
  font-weight: 400; /* DM Sans Regular, enlarged for section headings (Cassidy's call, Nov 2026) */
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0 0 1rem;
}
h3 {
  font-family: var(--font-heading); /* heading-sm: DM Sans SemiBold, 20 / 28 */
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0 0 .5rem;
}
.eyebrow {
  font-family: var(--font-subtitle); /* eyebrow: Space Mono Bold, 12 / 16 */
  font-weight: 700;
  font-size: .75rem;
  line-height: 1.33;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-90);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: var(--orange); }
.lede { font-size: 1.125rem; line-height: 1.55; max-width: 40rem; color: var(--navy-90); } /* body-lg: 18 / 28 */
.muted { color: #4b5866; } /* navy tint, 6.6:1 on off-white; mocha is for large text only */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--navy); color: var(--off-white); /* off-white on navy, 13.8:1 */
  border-bottom: 1px solid #36475a;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.logo { display: inline-flex; text-decoration: none; }
.logo img { height: 24px; width: auto; }
.site-footer .logo img { height: 27px; }
.footer-tag { font-family: var(--font-subtitle); font-size: .8rem; color: var(--light-blue); margin: .6rem 0 0; }
.nav { display: flex; gap: 1.75rem; align-items: center; }
.nav a { font-family: var(--font-heading); font-weight: 500; text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); }
.nav a.btn[aria-current="page"] { text-decoration: none; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; background: none; border: 1px solid var(--off-white); border-radius: var(--radius-sm);
    padding: .4rem .9rem; font: 500 .9rem var(--font-heading); color: var(--off-white); cursor: pointer;
  }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: var(--navy); border-bottom: 1px solid #36475a; padding: 1.25rem; gap: 1rem; }
  .nav.open { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.4rem; border-radius: var(--radius-sm); text-decoration: none;
  border: 2px solid var(--navy); transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.btn-primary:hover { background: #ff954f; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--off-white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-dark { background: var(--navy); color: var(--off-white); }
.section-dark .eyebrow { color: var(--light-blue); }
.section-dark .muted { color: #b9c4d1; }
.section-head { margin-bottom: 3rem; } /* spans the full content width, matching the cards below */

.hero { padding-top: clamp(4.5rem, 10vw, 8rem); position: relative; overflow: hidden; }
.hero h1 { max-width: 15ch; }
/* Highlighted phrase: navy text on a pale light-blue block, square corners.
   Motion: an 8s loop like a marker pass. The block draws in left to right
   (about 1s), holds, then wipes off to the right and redraws. Its resting
   state is the full highlight, and reduced-motion settings keep it still. */
.hero h1 em { font-style: normal; padding: 0 .14em; margin: 0 -.04em;
  background: linear-gradient(var(--light-blue-tint), var(--light-blue-tint)) left / 100% 100% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 em { animation: highlight-pass 8s ease-in-out infinite; }
}
@keyframes highlight-pass {
  0%   { background-size: 0% 100%;   background-position: left; }
  14%  { background-size: 100% 100%; background-position: left; }
  86%  { background-size: 100% 100%; background-position: right; }
  100% { background-size: 0% 100%;   background-position: right; }
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.hero-card {
  background: var(--navy); color: var(--off-white); border-radius: var(--radius);
  padding: 1.75rem; font-family: var(--font-subtitle); font-size: .92rem; line-height: 1.9;
}
/* The code card reads as a YAML config file, like Cassidy's business card:
   comments muted, keys orange, values pale light blue, punctuation off-white. */
.hero-card .ln { white-space: pre-wrap; min-height: 1.8em; }
.hero-card .c { color: #9aa8b6; }
.hero-card .k { color: var(--orange); }
.hero-card .v { color: var(--light-blue-tint); }
.hero-card .p { color: #c9d3dd; }
/* Typing motion (js/main.js): untyped characters keep their space so nothing shifts */
.hero-card .untyped { visibility: hidden; }
.hero-card .caret { display: inline-block; width: 0; position: relative; }
.hero-card .caret::after { content: ""; position: absolute; left: 1px; top: -1.05em; width: .55em; height: 1.2em; background: var(--orange); animation: caret-blink 1.1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Home hero, dark: navy ground like the code card and header ("dark mode").
   Headshot in an orange radius-lg frame, code card overlapping its foot. */
.hero-dark .btn-ghost { color: var(--off-white); border-color: var(--off-white); }
.hero-dark .btn-ghost:hover { background: var(--off-white); color: var(--navy); }
.hero-dark { background: linear-gradient(180deg, var(--navy) 0%, #101a22 45%, #080d12 100%); color: var(--off-white); padding-bottom: clamp(4rem, 8vw, 6rem); }
/* Grain: a fine noise texture over the gradient (Cassidy's call, Nov 2026; the design
   system otherwise rules out textures and gradients). */
.hero-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-dark > .wrap { position: relative; z-index: 1; }
.hero-dark .eyebrow { color: var(--light-blue); }
.hero-dark .lede { color: #c9d3dd; }
/* Highlight: off-white text like the rest of the headline, with a translucent orange
   band (45% over navy) behind the lower half of the letters. Off-white on it: 6.2:1. */
.hero-dark h1 .accent { color: var(--orange); } /* orange on the dark hero: 6:1 or better */
.hero-dark h1 em { color: inherit; background-image: linear-gradient(transparent 52%, rgba(255, 127, 48, .45) 52%, rgba(255, 127, 48, .45) 94%, transparent 94%); }
.hero-art { display: grid; justify-items: end; }
.hero-photo { width: min(100%, 22rem); aspect-ratio: 1 / 1; border-radius: var(--radius-lg); background: var(--orange); overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-art .hero-card { position: relative; justify-self: start; margin-top: -4.5rem; max-width: 24rem;
  padding: 1.25rem 1.4rem; font-size: .82rem; line-height: 1.8;
  background: var(--navy-90); border: 1px solid #36475a; border-top: 8px solid var(--orange);
  box-shadow: 0 0 0 6px #0d151b; } /* a gap in the hero's dark ground keeps the card apart from the photo */
@media (max-width: 860px) {
  .hero-art { margin-top: 1rem; justify-items: center; }
  .hero-photo { width: min(100%, 19rem); }
  .hero-art .hero-card { justify-self: stretch; margin-top: -3rem; max-width: none; }
}

.page-hero { padding-bottom: 3rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1040px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; gap: .5rem;
}
.section-dark .card { background: #2d3f4e; border-color: #3e5267; } /* a step lighter than navy-90 so cards lift off the navy */
.section-dark .card .eyebrow { color: #b3c5d6; } /* brighter label on the lighter card: 6.1:1 */
.card .num { font-family: var(--font-subtitle); color: var(--navy-90); font-size: .9rem; }
.section-dark .card .num { color: var(--orange); } /* orange text only on navy */
.card ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.card li { margin-bottom: .3rem; }
.card .tag-row { margin-top: auto; padding-top: 1rem; }

.tag {
  display: inline-block; font-family: var(--font-subtitle); font-size: .7rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: .25rem .6rem; border-radius: var(--radius-sm); border: 1px solid var(--light-blue);
  color: var(--navy-90); margin: 0 .35rem .35rem 0;
}
.section-dark .tag { color: var(--off-white); }

/* Portfolio */
.work-card { padding: 0; overflow: hidden; }
.work-thumb {
  aspect-ratio: 16 / 10; background: var(--navy);
  display: grid; place-items: center; color: var(--light-blue);
  font-family: var(--font-subtitle); font-size: .85rem;
}
.work-thumb.alt { background: var(--mocha); color: var(--off-white); }
.work-thumb.blue { background: var(--light-blue); color: var(--navy); }
.work-body { padding: 1.75rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }

/* Process steps */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
.step { border-top: 2px solid var(--orange); padding-top: 1.25rem; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-subtitle); font-weight: 700; color: var(--navy-90); display: block; margin-bottom: .5rem; }
.section-dark .step::before { color: var(--orange); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta { background: var(--orange); color: var(--navy); border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 4rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; }
.cta h2 { font-family: var(--font-title); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; max-width: 20ch; }
.cta .btn-ghost:hover { background: var(--navy); color: var(--orange); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3.5rem; align-items: start; }
/* Headshot on brand orange with radius-lg, per the design system's imagery rules.
   The photo's own background is the orange frame. */
.portrait { aspect-ratio: 1 / 1; max-width: 26rem; border-radius: var(--radius-lg); background: var(--orange); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Contact form */
form { display: grid; gap: 1.1rem; max-width: 40rem; }
label { font-family: var(--font-heading); font-weight: 500; display: grid; gap: .4rem; }
input, textarea, select {
  font: inherit; color: var(--navy); background: var(--white);
  border: 1px solid var(--mocha); border-radius: var(--radius-sm); padding: .8rem 1rem;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
textarea { min-height: 9rem; resize: vertical; }
button.btn { cursor: pointer; }

.hero-card { border-top: 8px solid var(--orange); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--off-white); padding: 3.5rem 0 2.5rem; border-top: 1px solid #36475a; } /* thin rule, like the header's, so a navy section above still ends visibly */
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--orange); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; font-family: var(--font-heading); }
.footer-meta { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #36475a; font-family: var(--font-subtitle); font-size: .8rem; color: var(--light-blue); }

/* ---------- Stats band ---------- */
.stats-band { padding: 0 0 clamp(3rem, 6vw, 4.5rem); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
/* Stats favor readability (Cassidy's call, Nov 2026, over the design system's
   Space Mono stat style): DM Sans numbers with clear numerals (Roca One's 1 reads
   as an I), sentence-case body-font labels. */
.stat { display: block; font-family: var(--font-heading); font-weight: 600; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.01em; margin-bottom: .5rem; }
.stat-label { display: block; font-family: var(--font-body); font-size: 1rem; line-height: 1.45; color: var(--navy-90); max-width: 16rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Portfolio details */
.work-thumb span { font-family: var(--font-title); font-weight: 700; font-size: 1.75rem; letter-spacing: 0; text-align: center; padding: 0 1rem; }
.work-thumb { color: var(--off-white); }
.work-thumb.blue { color: var(--navy); }
/* Card thumbnails: rotating brand grounds, always with off-white logos (Cassidy's call:
   cards prefer a white logo). Mocha, blue and orange use deeper shades so white reads.
   Logos are one-color masks painted in that ink, fitted into the same box
   (60% wide x 50% tall) so wide marks fill the width and tall marks the height. */
.work-thumb.t-navy { background: var(--navy); color: var(--off-white); }
.work-thumb.t-mocha { background: var(--mocha-deep); color: var(--off-white); }
.work-thumb.t-blue { background: var(--blue-deep); color: var(--off-white); }
.work-thumb.t-orange { background: var(--orange-deep); color: var(--off-white); }
.work-thumb .logo { display: block; width: 60%; height: 50%; padding: 0; background: currentColor;
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; } /* the mask image itself is set on each logo element */
/* Fractional clients: a 2x2 checkerboard of named logos and pixelated private ones */
.work-thumb.logo-grid { display: grid; grid-template: 1fr 1fr / 1fr 1fr; place-items: stretch; }
.work-thumb.logo-grid .cell { display: grid; place-items: center; }
.work-thumb.logo-grid .cell { color: var(--off-white); }
.work-thumb.logo-grid .cell.t-navy { background: var(--navy); }
.work-thumb.logo-grid .cell.t-mocha { background: var(--mocha-deep); }
.work-thumb.logo-grid .cell.t-blue { background: var(--blue-deep); }
.work-thumb.logo-grid .cell.t-orange { background: var(--orange-deep); }
.work-thumb.logo-grid .logo { width: 72%; height: 44%; }
.results { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .95rem; }
.results li { margin-bottom: .35rem; }

/* Orange bands: navy text (6.0:1); the gray "muted" tone is too faint on orange */
.band-orange, .section-orange { background: var(--orange); color: var(--navy); }
.band-orange .stat-label { color: var(--navy); }
.hero-dark + .stats-band { padding-top: clamp(3rem, 6vw, 4.5rem); }
.section-orange .eyebrow { color: var(--navy); }
.section-orange .eyebrow::before { background: var(--off-white); } /* decorative rule in paper; label text stays navy */
.section-orange .muted { color: var(--navy-90); }
.section-orange .card { background: var(--white); border-color: transparent; }
.section-orange .card .num { color: var(--navy-90); }
.section-orange .btn-primary { background: var(--navy); border-color: var(--navy); color: var(--off-white); }
.section-orange .btn-primary:hover { background: var(--navy-90); }

/* Work cards on navy: the navy thumbnail turns orange so it doesn't sink into the section */
.section-dark .btn-ghost { color: var(--off-white); border-color: var(--off-white); }
.section-dark .btn-ghost:hover { background: var(--off-white); color: var(--navy); }

/* A light section right after a dark one needs its top padding back */
.section-dark + section { padding-top: clamp(4rem, 9vw, 7rem) !important; }

/* Featured case study (Work) */
.months { display: grid; gap: 1rem; }
.month { border-top: 2px solid var(--orange); padding-top: .9rem; }
.month h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.month p { margin: 0; font-size: .95rem; }

/* Photos (Community page): award cards and event photos */
.photo-card { padding: 0; overflow: hidden; margin: 0; }
.photo-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-card figcaption { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: .4rem; }
.photo { margin: 0; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.photo figcaption { margin-top: .6rem; font-size: .95rem; color: #4b5866; }

/* Card line icons, in the design system's style: single-weight outlines, round ends,
   no fills. Orange on dark cards; navy on light ones (orange is too faint on paper). */
.card-icon { width: 2.75rem; height: 2.75rem; color: var(--navy); margin-bottom: .5rem; flex: none; }
.section-dark .card-icon { color: var(--orange); }

/* Org logos at the top of text cards: one-color masks in the card's ink, fitted to a
   shared box (left-aligned) so wide and tall marks carry similar weight */
.card-logo { display: block; width: 100%; max-width: 11rem; height: 3.5rem; margin-bottom: .75rem; background: currentColor;
  -webkit-mask-position: left center; mask-position: left center; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.card-logo-text { display: flex; align-items: center; height: 3.5rem; margin-bottom: .75rem; font-family: var(--font-title); font-size: 1.5rem; line-height: 1.1; }

/* Orange section with off-white text (Cassidy's call): brand orange is too light for
   off-white type (2.3:1), so this variant deepens it to burnt orange (#b05317, 4.6:1). */
.section-orange.on-ember { background: #b05317; color: var(--off-white); }
.section-orange.on-ember > .wrap > .section-head .eyebrow,
.section-orange.on-ember > .wrap > .section-head .muted { color: var(--off-white); }
.section-orange.on-ember .card { color: var(--navy); } /* cards keep navy text on white */

/* Organization links on community cards */
.org-link { margin: auto 0 0; padding-top: .75rem; font-family: var(--font-subtitle); font-size: .8rem; letter-spacing: .02em; }
.org-link a { font-weight: 700; }
.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; }

/* Featured project (Work): logo panel beside the summary, highlights across the bottom */
.featured-work { --feat-pad: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0; }
.featured-thumb { aspect-ratio: auto; height: auto; }
.featured-thumb .logo { width: 70%; height: 35%; }
.featured-body { padding: var(--feat-pad); }
.featured-body .tag-row { margin-bottom: 0; }
.featured-body h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.featured-highlights { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  padding: var(--feat-pad); border-top: 1px solid var(--light-blue-tint); }
.featured-highlights .month { border-top: 0; padding-top: 0; border-left: 3px solid var(--orange); padding-left: 1rem; }
.featured-highlights .month { display: flex; flex-direction: column; }
.featured-highlights .hl-action { margin: auto 0 0; padding-top: 1rem; }
.featured-highlights .card-icon { width: 2.5rem; height: 2.5rem; margin-bottom: .75rem; }
@media (max-width: 760px) {
  .featured-work { grid-template-columns: 1fr; }
  .featured-thumb { height: 8rem; }
  .featured-thumb .logo { width: min(18rem, 70%); height: 55%; }
  .featured-highlights { grid-template-columns: 1fr; gap: 1.5rem; }
}
.work-grid .work-thumb { aspect-ratio: 2 / 1; }

.on-ember .photo figcaption { color: var(--off-white); } /* 4.6:1 on #b05317 */
.card-action { margin: .75rem 0 0; }
.photo-wide { grid-column: 1 / -1; }
.photo-wide img { aspect-ratio: 21 / 9; object-position: center 35%; }

/* Small buttons with icons (org and project links) */
.btn-sm { padding: .55rem 1rem; font-size: .88rem; gap: .5rem; display: inline-flex; align-items: center; }
.btn-ico { width: 1.05em; height: 1.05em; flex: none; }
.org-link { font-family: inherit; letter-spacing: 0; }
.org-link a.btn { font-weight: 600; }

/* Photo galleries: two columns on phones */
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .gallery .photo figcaption { font-size: .82rem; margin-top: .4rem; }
}

/* Open to (bottom of every page) */
.open-to { background: var(--light-blue-tint); }
.open-to .card { background: var(--white); border-color: transparent; }
.open-to .card h3 { margin-top: .75rem; }
.open-to .eyebrow { color: var(--navy); }
.open-to .card { display: flex; flex-direction: column; }
.open-to .card-action { margin-top: auto; padding-top: 1.25rem; }
.open-to .card h3 { margin-bottom: .35rem; }
.open-to .card p.muted { margin: 0; }
.btn-sm { white-space: nowrap; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card { padding: clamp(1.5rem, 3vw, 2.25rem); }
.contact-card form { max-width: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.5em; font-size: .95rem; }
.form-status.ok { color: #2f6b3a; }
.form-status.err { color: #a3361a; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.card-action { display: flex; gap: .5rem; flex-wrap: wrap; }
.open-to .card-action .btn { width: 100%; justify-content: center; }

/* Resources page */
.resources-group { padding: 0 0 clamp(2.5rem, 5vw, 4rem); }
.resource-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.resource { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--white); border: 1px solid #ecd9cc; border-radius: var(--radius-md); padding: 1.1rem 1.4rem; }
.resource h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.resource p { margin: 0; font-size: .95rem; }
@media (max-width: 640px) { .resource { flex-direction: column; align-items: flex-start; gap: .75rem; } }

/* Section heading with its call to action on the right, vertically centered on the heading */
.head-with-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2.5rem; }
.head-with-action > div { display: contents; }
.head-with-action > div > * { grid-column: 1; }
.head-with-action > div > .eyebrow { grid-row: 1; }
.head-with-action > div > h2 { grid-row: 2; }
.head-with-action > div > :not(.eyebrow):not(h2) { grid-row: 3; margin-top: 0; }
.head-with-action > .btn { grid-column: 2; grid-row: 2; align-self: center; }
@media (max-width: 760px) {
  .head-with-action { grid-template-columns: 1fr; }
  .head-with-action > .btn { grid-column: 1; grid-row: 4; justify-self: start; margin-top: 1.25rem; }
}

/* LinkedIn logo links (hero and footer) */
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem;
  border: 2px solid currentColor; border-radius: var(--radius-sm); color: var(--navy); transition: transform .15s ease, background .15s ease; }
.social-link svg { width: 1.3rem; height: 1.3rem; }
.social-link:hover { transform: translateY(-2px); background: var(--navy); color: var(--off-white); }
.hero-dark .social-link { color: var(--off-white); }
.hero-dark .social-link:hover { background: var(--off-white); color: var(--navy); }
.footer-social { display: inline-flex; align-items: center; gap: .45rem; }
.footer-social svg { width: 1em; height: 1em; }
.footer-links { align-self: flex-start; align-items: center; }
@media (min-width: 761px) { .footer-links { flex: none; flex-wrap: nowrap; } }

.resource-thumb { flex: none; width: 6.5rem; height: 4rem; aspect-ratio: auto; border-radius: var(--radius-sm); }
.resource-thumb .logo { width: 78%; height: 62%; }
.resource-ico { width: 1.9rem; height: 1.9rem; }
.resource-text { flex: 1; min-width: 0; }
@media (max-width: 640px) { .resource-thumb { width: 5.5rem; height: 3.4rem; } }

/* About intro: photo and quick facts stay in view beside the bio on desktop */
.about-grid > div { max-width: 40rem; }
.about-side { position: sticky; top: 6.5rem; display: grid; gap: 1.75rem; max-width: 26rem; }
.about-side .portrait { max-width: none; }
.facts { margin: 0; display: grid; border-top: 2px solid var(--orange); }
.facts div { display: grid; grid-template-columns: 6.75rem 1fr; gap: 1rem; align-items: baseline; padding: .85rem 0; border-bottom: 1px solid #e3cfc2; }
.facts dt { font-family: var(--font-subtitle); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mocha-deep); }
.facts dd { margin: 0; font-size: .95rem; line-height: 1.45; }
@media (max-width: 860px) { .about-side { position: static; } }

/* About: community cards with a photo (or logo panel) and a linked org logo */
.org-media { position: relative; aspect-ratio: 4 / 3; background: var(--navy); }
.org-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.org-logo { display: grid; place-items: center; color: var(--off-white); transition: filter .15s ease; }
.org-logo:hover { filter: brightness(1.12); }
.org-logo:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.org-logo .logo { display: block; width: 70%; height: 60%; background: currentColor;
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.org-logo-full { position: absolute; inset: 0; }
.org-logo-full .logo { width: 60%; height: 45%; }
.org-logo-chip { position: absolute; left: .9rem; bottom: .9rem; width: 7rem; height: 4.25rem; border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.org-logo.t-orange { background: var(--orange-deep); }
.org-logo.t-mocha { background: var(--mocha-deep); }
.org-logo.t-navy { background: var(--navy); }
.org-logo.t-blue { background: var(--blue-deep); }
.org-logo-chip.t-navy { border: 1px solid rgba(255, 241, 233, .35); }
[hidden] { display: none !important; }
