/* ═══════════════════════════════════════════════════════════
   Gail Curtis Gleeson Portfolio — main.css v2
   No serif/italic. Clean, sharp, all-sans-serif.
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --ink:          #0f0f0f;
  --ink-mid:      #525252;
  --ink-light:    #909090;
  --ink-faint:    #e5e5e5;
  --bg:           #ffffff;
  --bg-soft:      #f7f7f6;
  --bg-dark:      #0f0f0f;
  --accent:       #1a6651;
  --accent-hover: #134f3e;
  --accent-light: #e6f2ee;
  --sans:         'DM Sans', system-ui, -apple-system, sans-serif;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-pill:  100px;
  --shadow:       0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.1);
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* ── Typography scale: desktop ──────────────────────────────
     These are overridden by the Customizer via inline <style>  */
  --fs-hero:       62px;
  --fs-h2:         40px;
  --fs-h3:         24px;
  --fs-body:       16px;
  --fs-body-lg:    17px;
  --fs-card-title: 20px;

  /* ── Typography scale: mobile (applied inside @media ≤600px) */
  --fs-hero-mob:       36px;
  --fs-h2-mob:         26px;
  --fs-h3-mob:         20px;
  --fs-body-mob:       16px;
  --fs-body-lg-mob:    16px;
  --fs-card-title-mob: 17px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ─── Skip Link ─────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--accent); color: #fff;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  z-index: 9999; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ─── Container ─────────────────────────────────────────── */
.container { max-width: 1100px; margin-inline: auto; padding-inline: 48px; }

/* ─── Type helpers ──────────────────────────────────────── */
.label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 12px 24px; border-radius: var(--radius-pill);
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.15s var(--ease), box-shadow 0.18s var(--ease);
  white-space: nowrap;
}
/* Button colour tokens — overridden by Customizer via inline <style> in <head> */
:root {
  --btn-primary-bg:      var(--accent);
  --btn-primary-bg-hover: var(--accent-hover);
  --btn-primary-text:    #ffffff;
  --btn-outline-border:  var(--ink-faint);
  --btn-outline-text:    var(--ink);
  --btn-outline-border-hover: var(--accent);
  --btn-outline-text-hover:   var(--accent);
}
.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn--primary:hover { background: var(--btn-primary-bg-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.btn--outline { background: transparent; color: var(--btn-outline-text); border: 1.5px solid var(--btn-outline-border); }
.btn--outline:hover { border-color: var(--btn-outline-border-hover); color: var(--btn-outline-text-hover); }
.btn--text { background: none; color: var(--ink-mid); padding: 0; font-size: 14px; font-weight: 400; border-radius: 0; }
.btn--text:hover { color: var(--accent); }
.btn--text-dark { background: none; color: rgba(255,255,255,0.5); padding: 0; font-size: 14px; font-weight: 400; border-radius: 0; }
.btn--text-dark:hover { color: #fff; }

/* ─── Pills ─────────────────────────────────────────────── */
.pill {
  display: inline-block; font-size: 11px; font-weight: 500;
  background: var(--accent-light); color: var(--accent);
  padding: 3px 10px; border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}
.pill--dark {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.75);
}

/* ═══ NAV ═══════════════════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-faint);
  height: 58px; transition: box-shadow 0.2s;
}
.site-nav.nav--scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1100px; margin-inline: auto; padding-inline: 48px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.nav-menu { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-menu li a {
  font-size: 13px; font-weight: 400; color: var(--ink-mid);
  text-decoration: none; padding: 6px 12px; border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.nav-menu li a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-cta {
  font-size: 13px !important; font-weight: 500 !important;
  background: var(--accent) !important; color: #fff !important;
  padding: 7px 16px !important; border-radius: var(--radius-pill) !important;
  transition: background 0.18s !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  position: relative;
}
.nav-toggle-bar {
  display: block; width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.2s ease,
              width 0.32s cubic-bezier(0.65, 0, 0.35, 1);
  transform-origin: center;
}
/* Active (X) state — driven by JS adding .is-active to the button */
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ═══ HERO ════════════════════════════════════════════════════ */
.hero {
  padding-top: 118px; padding-bottom: 80px;
  min-height: 100vh; display: flex; align-items: center;
  border-bottom: 1px solid var(--ink-faint);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 80px; align-items: center;
}
.hero-copy .label { margin-bottom: 24px; display: block; }
.hero-headline {
  font-size: var(--fs-hero);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.02; color: var(--ink); margin-bottom: 24px;
}
.hero-headline span { color: var(--accent); }
.hero-body {
  font-size: var(--fs-body-lg); font-weight: 300; line-height: 1.8;
  color: var(--ink-mid); margin-bottom: 40px; max-width: 460px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Hero aside */
.hero-aside {
  position: relative;
  border-radius: var(--hero-img-radius, var(--radius-lg));
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--ink-faint);
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Circle mode: also set aspect-ratio */
  aspect-ratio: var(--hero-img-aspect, auto);
}
.hero-aside img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  position: absolute; inset: 0;
}
.hero-aside-placeholder {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  color: var(--ink-light); font-size: 13px; font-weight: 300; text-align: center;
  padding: 32px;
}
.hero-aside-placeholder svg { opacity: 0.3; }

/* ═══ MARQUEE ══════════════════════════════════════════════════ */
.marquee-bar {
  background: var(--accent); padding: 12px 0; overflow: hidden; white-space: nowrap;
}
.marquee-track { display: inline-flex; animation: gcg-marquee 32s linear infinite; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
@keyframes gcg-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.7);
  padding: 0 24px; letter-spacing: 0.1em; text-transform: uppercase; flex-shrink: 0;
}
.marquee-dot { color: rgba(255,255,255,0.3); }

/* ═══ ABOUT ═════════════════════════════════════════════════════ */
.about-strip { background: var(--bg-soft); padding: 52px 0; }
.about-inner {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 80px; align-items: start;
}
.about-label-col .label { padding-top: 4px; display: block; }
.about-content h2 {
  font-size: var(--fs-h2); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 20px;
}
.about-content p {
  font-size: var(--fs-body); font-weight: 300; color: var(--ink-mid);
  line-height: 1.85; margin-bottom: 16px;
}
.skills-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-top: 28px;
}
.skill-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-mid);
}
.skill-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

/* ═══ WORK ══════════════════════════════════════════════════════ */
.work-section { padding: 52px 0; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px;
}
.section-header-left .label { margin-bottom: 8px; display: block; }
.section-header h2 {
  font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.025em;
}

/* ── Case studies 3-per-row grid ────────────────────────────── */
.case-studies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case-grid-small { display: contents; }

/* ── All cards share the same style ─────────────────────────── */
.case-card--large,
.case-card--small {
  background: var(--bg-soft); border: 1px solid var(--ink-faint);
  border-radius: var(--radius-lg); overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s;
  will-change: transform;
}
/* JS controls transform — CSS hover is a fallback for non-JS / mobile */
.case-card--large:hover,
.case-card--small:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,0.08);
  border-color: #aaaaaa;
}
.case-card--large .case-card__visual,
.case-card--small .case-card__visual {
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  aspect-ratio: 16 / 10;
  width: 100%;
}
.case-card--large .case-card__visual img,
.case-card--small .case-card__visual img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
}

/* "Read case study" link slides right on hover */
.case-card--large:hover .case-card__link,
.case-card--small:hover .case-card__link {
  color: var(--accent);
}

/* ── Shared card content ─────────────────────────────────────── */
.case-card__content {
  padding: 24px 28px;
  display: flex; flex-direction: column; flex: 1;
}
.case-card__org {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.case-card__title {
  font-size: var(--fs-card-title); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 12px; color: var(--ink);
}
.case-card__desc {
  font-size: var(--fs-body); font-weight: 300; line-height: 1.75;
  color: var(--ink-mid); margin-bottom: 24px;
}
.case-card__tags { display: none; }
.case-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--accent); margin-top: auto;
}
.case-card__link svg { transition: transform 0.18s var(--ease); }
.case-card--large:hover .case-card__link svg,
.case-card--small:hover .case-card__link svg { transform: translateX(4px); }

.case-card__visual {
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  aspect-ratio: 16 / 10;
  width: 100%;
}
.case-card__visual img { width: 100%; height: 100%; object-fit: cover; }
.case-card__visual-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--accent); opacity: 0.35;
}

/* ═══ PROCESS ════════════════════════════════════════════════════ */
.process-section { background: var(--bg-soft); padding: 52px 0; border-top: 1px solid var(--ink-faint); border-bottom: 1px solid var(--ink-faint); }
.process-section .label { display: block; margin-bottom: 8px; }
.process-section h2 { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.025em; margin-bottom: 28px; }
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
}
.process-step {
  background: var(--bg); border: 1px solid var(--ink-faint);
  padding: 32px 28px; border-radius: var(--radius-md);
}
.process-num {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.process-title { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.process-desc { font-size: var(--fs-body); font-weight: 300; color: var(--ink-mid); line-height: 1.75; }

/* ═══ EXPERIENCE ═══════════════════════════════════════════════ */
.experience-section { padding: 52px 0; }
.experience-section .section-header { margin-bottom: 0; }
.exp-list { display: flex; flex-direction: column; max-width: 840px; margin-top: 28px; }
.exp-item {
  display: grid; grid-template-columns: 180px 1fr;
  gap: 32px; padding: 18px 0; border-bottom: 1px solid var(--ink-faint);
}
.exp-item:last-child { border-bottom: none; }
.exp-date { font-size: 12px; color: var(--ink-light); padding-top: 2px; }
.exp-org {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 2px;
}
.exp-role { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.exp-desc { font-size: 13px; font-weight: 300; color: var(--ink-mid); line-height: 1.65; }

/* ═══ CONTACT ═════════════════════════════════════════════════ */
.contact-section { background: var(--bg-dark); padding: 52px 0; color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact-left .label { color: rgba(255,255,255,0.4); display: block; margin-bottom: 10px; }
.contact-left h2 {
  font-size: var(--fs-h2); font-weight: 700;
  letter-spacing: -0.03em; color: #fff; line-height: 1.05;
}
.contact-links { display: flex; flex-direction: column; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: rgba(255,255,255,0.55); font-size: 14px; font-weight: 300;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.18s;
}
.contact-link:last-child { border-bottom: none; }
.contact-link:hover { color: #fff; }
.contact-link-icon {
  width: 34px; height: 34px; background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.contact-link-icon svg { width: 15px; height: 15px; }

/* ═══ FOOTER ══════════════════════════════════════════════════ */
.site-footer {
  background: var(--footer-bg, var(--bg-dark));
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 48px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-back-top {
  font-size: 13px; font-weight: 500; color: #fff;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 18px; border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}
.footer-back-top:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.4); }

/* ═══ CASE STUDY PAGE ════════════════════════════════════════ */
.case-study-page { padding-top: 58px; }

.cs-hero {
  padding: 40px 0 0;
  border-bottom: 1px solid var(--ink-faint);
}

/* Back link sits above the grid */
.cs-hero-inner { padding-bottom: 0; }

.cs-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; color: var(--ink-light);
  text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 24px; transition: color 0.18s; display: block;
}
.cs-back:hover { color: var(--accent); }

/* Two-column hero grid */
.cs-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 28px;
}

.cs-org {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.cs-title {
  font-size: var(--fs-hero); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 12px;
}
.cs-outcome { font-size: var(--fs-body-lg); font-weight: 300; color: var(--ink-mid); line-height: 1.7; }
.cs-hero-details { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.cs-detail { display: flex; flex-direction: column; gap: 4px; }
.cs-detail-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-light);
}
.cs-detail-value { font-size: 14px; font-weight: 400; color: var(--ink); }
.cs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }

/* Featured image — full bleed, no border radius, sits flush below hero */
.cs-hero-image { overflow: hidden; }
.cs-hero-image img { width: 100%; height: auto; display: block; max-height: 560px; object-fit: cover; }

/* ── Named section styles ─────────────────────────────────────── */
.cs-named-section {
  padding: 10px 0;
  position: relative;
}

.cs-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px; display: block;
}

/* Overview / Process / Outcomes — white */
.cs-white-section {
  background: #FFFFFF;
}

/* Discovery / Design / Learnings — #F0F0F0 */
.cs-grey-section {
  background: #F0F0F0;
}
.cs-grey-section .cs-section-label { color: var(--accent); }

/* Body */
.cs-body { padding: 0; }
.cs-content {
  max-width: 700px;
  font-size: var(--fs-body); font-weight: 300; line-height: 1.85; color: var(--ink-mid);
}
.cs-content h2 {
  font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); margin: 28px 0 14px; line-height: 1.2;
}
.cs-content h3 {
  font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); margin: 32px 0 10px;
}
.cs-content p { margin-bottom: 18px; }
.cs-content ul, .cs-content ol { margin: 0 0 22px; padding-left: 24px !important; list-style-position: outside !important; }
.cs-content li { margin-bottom: 7px; }
.cs-content strong, .cs-content b { color: var(--ink); font-weight: 700; }
.cs-content figure { margin: 40px 0; }
.cs-content figure img { border-radius: var(--radius-md); width: 100%; }
.cs-content figcaption { font-size: 12px; color: var(--ink-light); margin-top: 10px; }
.cs-content .cs-callout {
  background: var(--accent-light); border-radius: var(--radius-md);
  padding: 20px 24px; margin: 28px 0; color: var(--ink); font-size: 15px;
}
.cs-content .cs-callout strong { color: var(--accent); }
.cs-content .cs-meta-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--ink-faint); border-radius: var(--radius-md);
  overflow: hidden; margin: 28px 0;
}
.cs-content .cs-meta-row > div {
  padding: 16px 20px; border-right: 1px solid var(--ink-faint); background: var(--bg-soft);
}
.cs-content .cs-meta-row > div:last-child { border-right: none; }
.cs-content .cs-meta-item-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-light); margin-bottom: 5px;
}
.cs-content .cs-meta-item-value { font-size: 14px; color: var(--ink); font-weight: 400; }

/* Pagination */
.cs-pagination {
  display: flex; justify-content: space-between;
  padding: 36px 0 72px; border-top: 1px solid var(--ink-faint); gap: 24px;
}
.cs-pag-link { text-decoration: none; display: flex; flex-direction: column; gap: 5px; max-width: 300px; }
.cs-pag-link--next { text-align: right; margin-left: auto; }
.cs-pag-dir { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-light); }
.cs-pag-title { font-size: 17px; font-weight: 600; color: var(--ink); transition: color 0.18s; letter-spacing: -0.01em; }
.cs-pag-link:hover .cs-pag-title { color: var(--accent); }

/* ─── Fade-up animation ─────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.fade-up.is-visible { opacity: 1; transform: none; }

/* ═══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 960px) {
  .container { padding-inline: 24px; }
  .nav-inner { padding-inline: 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; padding: 100px 0 56px; }
  .hero-aside { min-height: 300px; }
  .about-inner { grid-template-columns: 1fr; gap: 12px; }
  .about-label-col { display: block; } /* keep visible on mobile */
  .case-studies { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .exp-item { grid-template-columns: 1fr; gap: 6px; }
  .cs-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .cs-body > p,
  .cs-body > h2,
  .cs-body > h3,
  .cs-body > h4,
  .cs-body > ul,
  .cs-body > ol,
  .cs-body > blockquote,
  .cs-body > figure,
  .cs-body > table,
  .cs-body > .cs-callout,
  .cs-body > .cs-meta-row,
  .cs-body > .wp-block-group { padding-inline: 24px !important; }
  /* Section wrapper divs (dark/light/named) stay flush edge-to-edge on
     mobile — their own .cs-section-inner already applies the 24px inset,
     so no padding goes on the wrapper itself or content ends up indented
     twice as far as everything else. */
  .cs-body > .cs-dark-section,
  .cs-body > .cs-light-section,
  .cs-body > .cs-named-section { padding-inline: 0 !important; }
  .cs-named-section .cs-section-inner { padding-inline: 24px !important; }
}

@media (max-width: 600px) {
  /* ── Mobile typography overrides ─────────────────────────── */
  :root {
    --fs-hero:       var(--fs-hero-mob);
    --fs-h2:         var(--fs-h2-mob);
    --fs-h3:         var(--fs-h3-mob);
    --fs-body:       var(--fs-body-mob);
    --fs-body-lg:    var(--fs-body-lg-mob);
    --fs-card-title: var(--fs-card-title-mob);
  }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none; position: absolute; top: 58px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--ink-faint);
    flex-direction: column; padding: 24px 32px 32px; gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    align-items: flex-start;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu li a {
    font-size: 40px; font-weight: 600; letter-spacing: -0.02em;
    color: var(--ink); padding: 10px 0; display: block;
    line-height: 1.1; background: none;
  }
  .nav-menu li a:hover { color: var(--accent); background: none; }
  .nav-cta {
    font-size: 40px !important; font-weight: 600 !important;
    background: none !important; color: var(--accent) !important;
    padding: 10px 0 !important; border-radius: 0 !important;
  }
  .hero-aside { flex-direction: column; }
  .process-grid { grid-template-columns: 1fr; }
  .case-studies { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; gap: 16px; align-items: flex-start; }
  .site-footer { flex-direction: column; gap: 6px; text-align: center; padding: 20px 24px; }
  .cs-pagination { flex-direction: column; }
  .cs-pag-link--next { text-align: left; margin-left: 0; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ═══ CASE STUDY — DARK & LIGHT SECTIONS ════════════════════════
   Content outside shortcodes falls into .cs-body and gets a
   standard container + white background.
   ═══════════════════════════════════════════════════════════════ */

/* Default body wrapping for standard content blocks */
.cs-body > p,
.cs-body > h2,
.cs-body > h3,
.cs-body > h4,
.cs-body > ul,
.cs-body > ol,
.cs-body > blockquote,
.cs-body > figure,
.cs-body > table,
.cs-body > .cs-callout,
.cs-body > .cs-meta-row,
.cs-body > .wp-block-group {
  max-width: 700px;
  margin-inline: auto;
  padding-inline: 48px;
}

/* Wrap loose paragraphs in cs-body */
.cs-body {
  padding: 0;
}

/* Standard (no shortcode) content — apply reading width + padding */
.cs-body > * {
  max-width: 700px;
  margin-inline: auto;
  padding-left: 48px;
  padding-right: 48px;
  display: block;
}

/* But sections override that full-bleed */
.cs-dark-section,
.cs-light-section,
.cs-named-section,
.cs-full-image-wrap {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100%;
}

/* Shared inner typography for named sections */
.cs-named-section .cs-section-inner {
  max-width: 700px;
  margin-inline: auto;
  padding-inline: 48px;
}

.cs-named-section h2 {
  font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.1; margin: 0 0 10px; color: var(--ink);
}

.cs-named-section h3 {
  font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em;
  margin: 24px 0 8px; color: var(--ink);
}

.cs-named-section p {
  font-size: var(--fs-body); font-weight: 300; line-height: 1.8;
  color: var(--ink-mid); margin-bottom: 14px;
}

.cs-named-section ul,
.cs-named-section ol {
  font-size: var(--fs-body); font-weight: 300; color: var(--ink-mid);
  line-height: 1.8; padding-left: 24px !important; list-style-position: outside !important; margin-bottom: 16px;
}

.cs-named-section li { margin-bottom: 6px; }
.cs-named-section strong,
.cs-named-section b { color: var(--ink); font-weight: 700; }

/* Section image — full width inside a named section */
.cs-section-image {
  margin: 28px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cs-section-image img { width: 100%; height: auto; display: block; }
.cs-section-image figcaption {
  font-size: 12px; color: var(--ink-light);
  margin-top: 8px; line-height: 1.5;
}

/* ── Dark section ──────────────────────────────────────────────── */
.cs-dark-section {
  background: #ffffff;
  color: var(--ink);
  padding: 10px 0;
  margin: 0;
}

.cs-dark-section .cs-section-inner {
  max-width: 700px;
  margin-inline: auto;
  padding-inline: 48px;
}

.cs-dark-section h2,
.cs-dark-section h3,
.cs-dark-section h4 {
  color: var(--ink);
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.cs-dark-section h3 { font-size: var(--fs-h3); }

.cs-dark-section p {
  color: var(--ink-mid);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 18px;
}

.cs-dark-section strong,
.cs-dark-section b { color: var(--ink); font-weight: 700; }

.cs-dark-section ul,
.cs-dark-section ol {
  color: var(--ink-mid);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.85;
  padding-left: 24px !important;
  list-style-position: outside !important;
  margin-bottom: 20px;
}

.cs-dark-section li { margin-bottom: 8px; }

.cs-dark-section .pill {
  background: var(--bg-soft);
  color: var(--ink-mid);
}

/* ── Light section (soft grey) ─────────────────────────────────── */
.cs-light-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  padding: 10px 0;
  margin: 0;
}

.cs-light-section .cs-section-inner {
  max-width: 700px;
  margin-inline: auto;
  padding-inline: 48px;
}

.cs-light-section h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink);
}

.cs-light-section h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 12px; color: var(--ink); }

.cs-light-section p {
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.85;
  margin-bottom: 18px;
}

.cs-light-section ul,
.cs-light-section ol {
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--ink-mid);
  padding-left: 24px !important;
  list-style-position: outside !important;
  margin-bottom: 20px;
  line-height: 1.85;
}

.cs-light-section li { margin-bottom: 8px; }
.cs-light-section strong,
.cs-light-section b { color: var(--ink); font-weight: 700; }

/* ── Full-bleed image ──────────────────────────────────────────── */
.cs-full-image-wrap {
  margin: 48px 0;
  display: block;
}

.cs-full-image-wrap .cs-full-image,
.cs-full-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.cs-image-caption {
  font-size: 12px !important;
  color: var(--ink-light) !important;
  text-align: center;
  padding: 10px 48px 0 !important;
  max-width: 100% !important;
}

/* Standard cs-body content (outside shortcodes) */
.cs-body > p,
.cs-body > h2,
.cs-body > h3,
.cs-body > ul,
.cs-body > ol,
.cs-body > blockquote {
  padding-top: 0;
  padding-bottom: 0;
}

/* First block of content top padding */
.cs-body > *:first-child {
  padding-top: 20px;
}

/* Last block bottom padding */
.cs-body > *:last-child:not(.cs-dark-section):not(.cs-light-section):not(.cs-full-image-wrap) {
  padding-bottom: 80px;
}

/* Headings in normal content area */
.cs-body > h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 14px;
}

.cs-body > h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 10px;
}

.cs-body > p {
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.85;
  margin-bottom: 18px;
}

.cs-body > ul,
.cs-body > ol {
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.85;
  padding-left: 24px !important;
  list-style-position: outside !important;
  margin-bottom: 20px;
}

.cs-body strong,
.cs-body b { color: var(--ink); font-weight: 700; }

/* cs-callout inside normal content */
.cs-body .cs-callout {
  background: var(--accent-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 15px;
}

/* cs-meta-row inside normal content */
.cs-body .cs-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink-faint);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
}
.cs-body .cs-meta-row > div {
  padding: 16px 20px;
  border-right: 1px solid var(--ink-faint);
  background: var(--bg-soft);
}
.cs-body .cs-meta-row > div:last-child { border-right: none; }
.cs-body .cs-meta-item-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-light); margin-bottom: 5px; display: block;
}
.cs-body .cs-meta-item-value { font-size: 14px; color: var(--ink); font-weight: 400; }

@media (max-width: 960px) {
  .cs-body > .cs-dark-section,
  .cs-body > .cs-light-section,
  .cs-body > .cs-named-section { padding-inline: 0 !important; }
  .cs-dark-section .cs-section-inner,
  .cs-light-section .cs-section-inner { padding-inline: 24px !important; }
  .cs-image-caption { padding-inline: 24px !important; }
}

/* ═══ EDUCATION SECTION ═══════════════════════════════════════ */
.education-section { padding: 52px 0; background: var(--bg-soft); border-top: 1px solid var(--ink-faint); }
.education-section .section-header { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════
   MICRO-INTERACTIONS
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Custom cursor ──────────────────────────────────────────
   Hidden on touch devices via JS. Hides the native cursor
   only when the custom one is visible.                          */
@media (hover: hover) {
  body.gcg-cursor-active { cursor: none; }
  body.gcg-cursor-active a,
  body.gcg-cursor-active button { cursor: none; }
}

.gcg-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 24px; height: 28px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s;
  will-change: transform;
}

.gcg-cursor-arrow {
  display: block;
  width: 100%; height: 100%;
  transition: transform 0.18s ease, filter 0.18s ease;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.18));
}

.gcg-cursor--hover .gcg-cursor-arrow {
  transform: scale(1.25);
  filter: drop-shadow(0 2px 8px rgba(26,102,81,0.35));
}

/* ── 2. Magnetic card tilt ─────────────────────────────────────
   Cards have perspective set via JS. We just disable the
   CSS hover transform while JS takes over.                      */
.case-card--large:hover,
.case-card--small:hover {
  transform: none; /* JS controls this */
}

/* ── 3. Hero headline word reveal ──────────────────────────────  */
.gcg-word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.08;
}

.gcg-word {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.45s ease;
}

.gcg-word--visible {
  transform: translateY(0);
  opacity: 1;
}

/* ── 4. Hero image parallax ─────────────────────────────────────
   The image already scales 1.06 via JS — no overflow flash     */
.hero-aside {
  overflow: hidden; /* clip parallax drift */
}

.hero-aside img {
  transform-origin: center center;
  will-change: transform;
  transition: none; /* JS handles this */
}

/* ── 5. Marquee speed-up — handled via JS animationDuration ──── */

/* ── 6. Skill dot ripple ───────────────────────────────────────  */
.skill-dot { position: relative; overflow: visible; }

.gcg-ripple {
  position: absolute;
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  transform: scale(0);
  animation: gcg-ripple-anim 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes gcg-ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* Respect reduced motion across all micro-interactions */
@media (prefers-reduced-motion: reduce) {
  .gcg-word { transform: none; opacity: 1; transition: none; }
  .gcg-cursor { display: none; }
  body.gcg-cursor-active { cursor: auto; }
  .hero-aside img { transform: none !important; }
  .gcg-ripple { animation: none; }
}

/* ═══ ABOUT SECTION IMAGE ══════════════════════════════════════ */

/* When an image is present, about-content becomes a flex/grid layout */
.about-content--has-image.about-content--img-right,
.about-content--has-image.about-content--img-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-content--has-image.about-content--img-bottom {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Image styles shared */
.about-image {
  padding-top: 24px;
  padding-left: 24px;
}

.about-image figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

.about-image figcaption {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-light);
  line-height: 1.5;
  padding-left: 4px;
}

/* Right: image sits in second column, text in first */
.about-content--img-right .about-text { order: 1; }
.about-content--img-right .about-image--right { order: 2; }

/* Left: image sits in first column, text in second */
.about-content--img-left .about-image--left { order: 1; }
.about-content--img-left .about-text { order: 2; }

/* Bottom: full-width image below text */
.about-image--bottom img {
  max-height: 400px;
  object-fit: cover;
}

/* No image — keep existing single-column layout */
.about-content:not(.about-content--has-image) .about-text { display: contents; }

@media (max-width: 900px) {
  .about-content--has-image.about-content--img-right,
  .about-content--has-image.about-content--img-left {
    grid-template-columns: 1fr;
  }
  /* Image always goes below text on mobile regardless of setting */
  .about-content--img-right .about-text,
  .about-content--img-left .about-text { order: 1; }
  .about-content--img-right .about-image--right,
  .about-content--img-left .about-image--left { order: 2; }
}

/* ═══ SECTION BACKGROUND UTILITIES ═════════════════════════════
   Applied via Customizer — overrides each section's default bg.
   ═══════════════════════════════════════════════════════════════ */
.section-bg--white {
  background: var(--bg) !important;
  border-color: var(--ink-faint) !important;
}
.section-bg--soft {
  background: var(--bg-soft) !important;
  border-color: var(--ink-faint) !important;
}
.section-bg--dark {
  background: var(--bg-dark) !important;
  border-color: transparent !important;
}

/* Contact section — light mode overrides text colours */
.contact-section.section-bg--white,
.contact-section.section-bg--soft {
  color: var(--ink);
}
.contact-section.section-bg--white .label,
.contact-section.section-bg--soft .label {
  color: var(--accent);
}
.contact-section.section-bg--white h2,
.contact-section.section-bg--soft h2 {
  color: var(--ink);
}
.contact-section.section-bg--white h2 span,
.contact-section.section-bg--soft h2 span {
  color: var(--accent);
}
.contact-section.section-bg--white .contact-link,
.contact-section.section-bg--soft .contact-link {
  color: var(--ink-mid);
  border-bottom-color: var(--ink-faint);
}
.contact-section.section-bg--white .contact-link:hover,
.contact-section.section-bg--soft .contact-link:hover {
  color: var(--ink);
}
.contact-section.section-bg--white .contact-link-icon,
.contact-section.section-bg--soft .contact-link-icon {
  background: var(--accent-light);
}
.contact-section.section-bg--white .contact-link-icon svg,
.contact-section.section-bg--soft .contact-link-icon svg {
  stroke: var(--accent);
}

/* Heading colours, body text colour, and font sizes are now controlled
   dynamically from the Customizer (Typography & Font Sizes panel) and
   output as an inline <style> block in <head> via gcg_button_colours_css(). */

/* ── Stylised quote block ─────────────────────────────────────────
   Used for any blockquote in case study content — main body copy,
   named sections (Overview/Discovery/Process/Design/Outcomes/Learnings),
   and the dark/light shortcode sections. A tinted card with a large
   decorative quotation mark, replacing the old plain left-border style. */
.cs-content blockquote,
.cs-body > blockquote,
.cs-named-section blockquote,
.cs-dark-section blockquote,
.cs-light-section blockquote {
  position: relative;
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px 68px !important;
  margin: 32px 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  font-style: normal;
}

.cs-content blockquote::before,
.cs-body > blockquote::before,
.cs-named-section blockquote::before,
.cs-dark-section blockquote::before,
.cs-light-section blockquote::before {
  content: "\201C";
  position: absolute;
  top: 14px;
  left: 22px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.cs-content blockquote p,
.cs-body > blockquote p,
.cs-named-section blockquote p,
.cs-dark-section blockquote p,
.cs-light-section blockquote p {
  margin: 0;
}
.cs-content blockquote p + p,
.cs-body > blockquote p + p,
.cs-named-section blockquote p + p,
.cs-dark-section blockquote p + p,
.cs-light-section blockquote p + p {
  margin-top: 12px;
}

.cs-content blockquote cite,
.cs-body > blockquote cite,
.cs-named-section blockquote cite,
.cs-dark-section blockquote cite,
.cs-light-section blockquote cite {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.01em;
  color: var(--ink-mid);
}
.cs-content blockquote cite::before,
.cs-body > blockquote cite::before,
.cs-named-section blockquote cite::before,
.cs-dark-section blockquote cite::before,
.cs-light-section blockquote cite::before {
  content: "\2014\00A0";
}

@media (max-width: 600px) {
  .cs-content blockquote,
  .cs-body > blockquote,
  .cs-named-section blockquote,
  .cs-dark-section blockquote,
  .cs-light-section blockquote {
    padding: 28px 20px 22px 48px !important;
    font-size: 18px;
  }
  .cs-content blockquote::before,
  .cs-body > blockquote::before,
  .cs-named-section blockquote::before,
  .cs-dark-section blockquote::before,
  .cs-light-section blockquote::before {
    font-size: 40px;
    top: 10px;
    left: 14px;
  }
}

/* ── Image captions (native WordPress/Gutenberg image captions) ──
   These previously had no styling at all, so they rendered at the
   same size as body paragraph text (16px). Sized smaller and muted,
   consistent with the theme's other image captions (12px). */
.cs-content figure figcaption,
.cs-body > figure figcaption,
.cs-named-section figure figcaption,
.cs-dark-section figure figcaption,
.cs-light-section figure figcaption,
.cs-content .wp-block-image figcaption,
.cs-body > .wp-block-image figcaption,
.cs-named-section .wp-block-image figcaption,
.cs-dark-section .wp-block-image figcaption,
.cs-light-section .wp-block-image figcaption,
.cs-content .wp-caption .wp-caption-text,
.cs-body > .wp-caption .wp-caption-text,
.cs-named-section .wp-caption .wp-caption-text,
.cs-dark-section .wp-caption .wp-caption-text,
.cs-light-section .wp-caption .wp-caption-text {
  font-size: 12px !important;
  font-weight: 400;
  color: var(--ink-light);
  line-height: 1.5;
  margin-top: 8px;
  text-align: center;
}
