/* =====================================================
   SITE CHROME — shared header, footer and layout rules.
   Loaded LAST on every page so all pages share one
   navigation, one footer, one container width and one
   type scale.
   ===================================================== */

:root {
  /* Roles: white = primary, teal = secondary, orange = tertiary accent */
  --site-bg:         #ffffff;
  --site-surface:    #f5f7f8;
  --site-card:       #ffffff;
  --site-ink:        #233D4D;
  --site-ink-deep:   #1a2d3a;
  --site-orange:     #FE7F2D;
  --site-orange-2:   #ff9448;
  --site-orange-ink: #b8500c;   /* orange for text: passes 4.5:1 on white */
  --site-text:       #233D4D;
  --site-text-2:     #4a6473;
  --site-text-3:     #5b7382;
  --site-line:       rgba(35, 61, 77, 0.12);
  --site-line-2:     rgba(35, 61, 77, 0.2);
  --site-max:       1200px;
  --site-gutter:    clamp(16px, 4vw, 24px);
  --site-header-h:  64px;
  --site-radius:    12px;
  --site-font:      'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --site-display:   'Sora', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --site-ease:      cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--site-font); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--site-display); }

html { scroll-padding-top: calc(var(--site-header-h) + 16px); }
body { background-color: var(--site-bg); }

/* Old per-page navs, loaders and overlays are retired */
.loading, .page-transition{ display: none !important; }

/* ── MASTHEAD + NAV ─────────────────────────────────
   Signature row scrolls away; the nav row stays. */
.site-masthead {
  background: var(--site-ink);
  display: flex; justify-content: center;
  padding: 1.4rem var(--site-gutter) 0.6rem;
}
.site-sign {
  display: inline-flex; flex-direction: column; align-items: center;
  color: #fff !important; text-decoration: none !important;
}
.site-sign__name {
  font-family: 'Mrs Saint Delafield', 'Brush Script MT', cursive;
  font-size: clamp(3.1rem, 6vw, 4.4rem); line-height: 1; font-weight: 400;
  white-space: nowrap; padding: 0.15em 0.2em 0;
}
.site-sign__role {
  margin-top: 0.1rem;
  font: 600 0.72rem/1 var(--site-font);
  letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.site-sign__role i { font-style: normal; color: var(--site-orange); margin: 0 0.35em; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--site-header-h);
  background: var(--site-ink);
  font-family: var(--site-font);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(35, 61, 77, 0.22); }
.site-header__inner {
  position: relative;
  max-width: var(--site-max); height: 100%;
  margin: 0 auto; padding: 0 var(--site-gutter);
  display: flex; align-items: center; justify-content: center; gap: 2rem;
}

.site-nav__list { display: flex; align-items: center; gap: 2.1rem; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  position: relative; display: block; padding: 0.5rem 0;
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86); text-decoration: none;
  transition: color 0.2s ease;
}
/* Underline grows out from the centre */
.site-nav__list a::after {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: 0.1rem;
  height: 2px; background: var(--site-orange);
  transition: left 0.25s var(--site-ease), right 0.25s var(--site-ease);
}
.site-nav__list a:hover, .site-nav__list a[aria-current="page"] { color: #fff; }
.site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { left: 0; right: 0; }

.site-header__cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 1.25rem;
  background: linear-gradient(100deg, var(--site-orange), #ffb26b);
  color: var(--site-ink-deep) !important; text-decoration: none !important;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.site-header__cta:hover { filter: brightness(1.07); transform: translateY(-1px); }

.site-menu-btn {
  display: none; width: 40px; height: 40px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.site-menu-btn span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform 0.25s var(--site-ease), opacity 0.2s ease;
}
.site-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-sign:focus-visible, .site-nav__list a:focus-visible, .site-header__cta:focus-visible,
.site-menu-btn:focus-visible, .site-footer a:focus-visible { outline: 2px solid var(--site-orange); outline-offset: 3px; }

@media (max-width: 860px) {
  .site-header__inner { justify-content: flex-end; gap: 0.75rem; }
  .site-menu-btn { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--site-ink);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 32px rgba(35, 61, 77, 0.25);
    padding: 0.25rem var(--site-gutter) 0.75rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .site-header.is-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a { padding: 0.85rem 0.25rem; font-size: 0.95rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .site-nav__list li:last-child a { border-bottom: 0; }
  .site-nav__list a::after { display: none; }
  .site-nav__list a[aria-current="page"] { color: var(--site-orange); }
}

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer { background: var(--site-ink); color: rgba(255, 255, 255, 0.78); font-family: var(--site-font); }
.site-footer__inner {
  max-width: var(--site-max); margin: 0 auto;
  padding: 3rem var(--site-gutter) 0;
  display: flex; flex-direction: column; align-items: center;
}
.site-footer__nav {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0.75rem 2.1rem; margin-top: 1.75rem;
}
.site-footer__nav a:not(.site-header__cta) {
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86); text-decoration: none; transition: color 0.2s ease;
}
.site-footer__nav a:not(.site-header__cta):hover { color: var(--site-orange); }
.site-footer__social { display: flex; gap: 0.6rem; margin-top: 1.75rem; }
.site-footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; font-size: 0.92rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-footer__social a:hover { color: var(--site-orange); border-color: var(--site-orange); }
.site-footer__bottom {
  width: 100%; margin-top: 2.25rem; padding: 1.1rem 0 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  font-size: 0.82rem; color: rgba(255, 255, 255, 0.66);
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer__bottom a:hover { color: var(--site-orange); }
.site-footer__totop { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
@media (max-width: 640px) { .site-footer__bottom { flex-direction: column; text-align: center; } }

/* Print: chrome is noise on paper */
@media print { .site-header, .site-footer { display: none !important; } }

/* =====================================================
   PAGE SYSTEM — shared look for every inner page so it
   matches the homepage: one hero, one container width,
   one card, one tag, one filter style.
   ===================================================== */

/* ── Page hero ──────────────────────────────────────── */
.page-hero {
  background: var(--site-bg);
  border-bottom: 1px solid var(--site-line);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.75rem);
  font-family: var(--site-font);
}
.page-hero__inner { max-width: var(--site-max); margin: 0 auto; padding: 0 var(--site-gutter); }
.page-hero__title {
  margin: 0; max-width: 20ch;
  font-family: var(--site-display); font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.75rem); line-height: 1.06; letter-spacing: -0.03em;
  color: #233D4D;
}
.page-hero__lead {
  margin: 1.25rem 0 0; max-width: 60ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.75; color: var(--site-text-2);
}

/* ── Cards: flat surface, hairline border{
  background: #f5f7f8 !important;
  border: 1px solid var(--site-line-2) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

/* ── Icons: outlined{
  background: transparent !important;
  border: 1px solid rgba(254, 127, 45, 0.45) !important;
  color: var(--site-orange-ink) !important;
  box-shadow: none !important;
}

/* Sidebar is taller than the viewport now{ position: static !important; align-self: start; }

/* ── Segmented filter (shared by Portfolio and Blog) ── */
.seg {
  position: relative;
  display: inline-flex; padding: 4px; gap: 2px;
  border-radius: 12px;
  background: #f5f7f8;
  border: 1px solid var(--site-line-2);
}
.seg__indicator {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: var(--seg-w, 0); transform: translateX(var(--seg-x, 0));
  border-radius: 8px;
  background: var(--site-orange);
  transition: transform 0.35s var(--site-ease), width 0.35s var(--site-ease);
}
.seg__btn {
  position: relative; z-index: 1;
  padding: 0.55rem 1.1rem;
  border: 0; border-radius: 8px; background: transparent;
  font: 600 0.9rem/1 var(--site-font);
  color: var(--site-text-2);
  cursor: pointer;
  transition: color 0.25s ease;
}
.seg__btn:hover { color: #233D4D; }
.seg__btn[aria-selected="true"] { color: #233D4D; }
.seg__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }


/* ── Continue reading (articles + case study) ── */
.ar-continue { max-width: 1080px; margin: 0 auto; padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem clamp(4rem, 8vw, 6rem); }
.ar-continue__title {
  margin: 0 0 1.25rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--site-orange-ink);
}
.ar-continue__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ar-next {
  position: relative; display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.5rem 1.6rem;
  border-radius: 16px; border: 1px solid var(--site-line-2, rgba(35,61,77,.14));
  background: #f5f7f8; text-decoration: none; color: inherit;
  transition: border-color .25s ease, transform .3s var(--site-ease, ease), background .25s ease;
}
.ar-next--older { text-align: right; align-items: flex-end; }
.ar-next:hover { border-color: rgba(254,127,45,.55); background: #ffffff; transform: translateY(-2px); }
.ar-next__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--site-orange-ink); }
.ar-next__title { font-family: var(--site-display, 'Sora', sans-serif); font-weight: 700; font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.35; color: #233D4D; }
.ar-next__meta { font-size: 0.83rem; color: var(--site-text-3, #4a6473); }

@media (max-width: 760px) {
  .ar-continue__grid { grid-template-columns: 1fr; }
  .ar-next--older { text-align: left; align-items: flex-start; }
}
/* base.css styles every <nav> as the old fixed bar; this block is in-flow content */
nav.ar-continue {
  position: static !important; height: auto !important; z-index: auto !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}

/* ── Experience: duty bullets, read links{
  margin: 0.85rem 0 0; padding: 0; list-style: none;
  display: grid; gap: 0.55rem; max-width: 64ch;
}


/* =====================================================
   THEME ROLES — white primary, teal secondary, orange tertiary.
   ===================================================== */
html, html body { background: var(--site-bg) !important; color: var(--site-text) !important; }

/* Main actions are teal; orange stays an accent */
.seg { background: var(--site-surface) !important; }
.seg__indicator { background: var(--site-ink) !important; }
.seg__btn[aria-selected="true"], .seg__btn[aria-selected="true"]:hover { color: #fff !important; }
.seg__btn:focus-visible { outline-color: var(--site-orange); }
.seg__btn[aria-selected="true"] .seg__count { background: rgba(255, 255, 255, 0.22); }

/* Stroke: a firm teal outline on the cards that matter, orange offset on hover */
:root { --site-stroke: 1.5px solid var(--site-ink); }
.tile, .work__media, .form, .impact-card, .ar-next, .feature__media, .cs-tool, .cs-outcome {
  border: var(--site-stroke) !important;
  box-shadow: none !important;
}
.tile, .impact-card, .ar-next, .cs-tool, .cs-outcome, a.work__media, a.feature__media {
  transition: transform 0.25s var(--site-ease), box-shadow 0.25s var(--site-ease) !important;
}
.tile:hover, .impact-card:hover, .ar-next:hover, .cs-tool:hover, .cs-outcome:hover, a.work__media:hover, a.feature__media:hover {
  transform: translate(-3px, -3px) !important;
  box-shadow: 5px 5px 0 var(--site-orange) !important;
}
.work__media:hover img, .feature:hover .feature__media img { transform: none; } .cs-tool, .cs-outcome, .ar-next { background: #fff !important; }

/* Case study: same actions, numbers and tiles as the rest of the site */
.cs-btn-view { background: var(--site-ink) !important; border-color: var(--site-ink) !important; color: #fff !important; }
.cs-btn-view:hover { background: var(--site-ink-deep) !important; }
.cs-step-num { color: var(--site-orange-ink) !important; -webkit-text-stroke: 0 !important; font-size: 1.15rem !important; letter-spacing: 0; }
.cs-tool-icon, .cs-outcome-icon { width: 40px !important; height: 40px !important; flex: 0 0 40px; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 10px !important; }
.cs-tools { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.cs-poster-preview { border: var(--site-stroke); box-shadow: none !important; }
.cs-poster-caption { background: var(--site-surface) !important; color: var(--site-text-2) !important; }
@media (max-width: 640px) { .cs-tools { grid-template-columns: 1fr !important; } }

/* ── Text link: underlined, no icons ───────────────── */
.action-link {
  display: inline-block;
  font-family: var(--site-font); font-size: 0.92rem; font-weight: 600;
  color: var(--site-orange-ink) !important;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.action-link:hover, .story:hover .action-link { color: var(--site-ink) !important; }
.action-link:focus-visible { outline: 2px solid var(--site-orange); outline-offset: 3px; border-radius: 2px; }
/* On the teal band */
.stories-band .section__head-row .action-link { color: #fff !important; }
.stories-band .section__head-row .action-link:hover { color: var(--site-orange) !important; }
.story .action-link { align-self: flex-start; margin-top: 0.2rem; }
.work__body .action-link, .about-split__body .action-link { align-self: flex-start; }

/* ── Inner page heading: the same teal band on Portfolio, Blog and Experience ── */
.page-hero { background: var(--site-ink-deep); border-bottom: 0; }
.page-hero__title { color: #fff !important; text-transform: uppercase; max-width: none; }
.page-hero__lead { color: rgba(255, 255, 255, 0.82) !important; }

/* Case study and article headings share the teal band */
.cs-hero, .ar-header { background: var(--site-ink-deep) !important; border-bottom: 0 !important; }
.ar-header { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); overflow: visible; }
.cs-hero h1, .ar-title { color: #fff !important; text-transform: uppercase; }
.cs-hero-subtitle, .ar-subtitle { color: rgba(255, 255, 255, 0.82) !important; }
.cs-kicker, .ar-kicker { color: var(--site-orange) !important; }
.cs-kicker a, .cs-kicker span, .ar-kicker a, .ar-kicker span { color: rgba(255, 255, 255, 0.66) !important; }
.cs-kicker a:hover, .ar-kicker a:hover { color: #fff !important; }
.cs-btn-view { background: linear-gradient(100deg, var(--site-orange), #ffb26b) !important; border-color: var(--site-orange) !important; color: var(--site-ink-deep) !important; }
.cs-hero .cs-btn-back { background: transparent !important; border-color: rgba(255, 255, 255, 0.45) !important; color: #fff !important; }
.ar-byline { border-top-color: rgba(255, 255, 255, 0.2); }
.ar-byline__name { color: #fff !important; }
.ar-byline__info { color: rgba(255, 255, 255, 0.72) !important; }
.ar-hero img { border-color: rgba(255, 255, 255, 0.2) !important; }

/* Article covers: tall enough that a portrait photo keeps the head in frame */
.ar-hero img { aspect-ratio: 16 / 9; }

/* Text links keep their look but get a larger tap area on touch screens */
@media (pointer: coarse) {
  .action-link, .site-footer__nav a:not(.site-header__cta), .site-footer__bottom a { position: relative; }
  .action-link::after, .site-footer__nav a:not(.site-header__cta)::after, .site-footer__bottom a::after {
    content: ''; position: absolute; inset: -0.6rem -0.25rem;
  }
}
