/* ==========================================================================
   Tessy Uzor portfolio. Tokens first, then base, then each part of the page.
   Change colours, sizes and timings HERE, never inside a component.
   ========================================================================== */

:root {
  /* Colour: light mode (warm, low contrast) */
  --bg: #FCFCFD;
  --surface: #FFFFFF;
  --line: #E6E0D6;
  --line-strong: #CFC7B9;
  --heading: #4A5568;         /* slate: headings, card titles, project headlines, quotes (Tessy, 11/16) */
  --text: #5A6577;            /* lighter slate: paragraphs, descriptions, card text */
  --text-2: #5A6577;
  --label: #555555;           /* mid grey: small uppercase labels */
  --accent: #183FDA;          /* brand blue: links, headline accents, hero, closing panel */
  --accent-hover: #1230AE;
  --on-accent: #FFFFFF;
  --headline-accent: #183FDA; /* second colour in two-tone headlines */
  --pink: #F5DADF;            /* brand pink: hero strip, field focus ring */
  --pink-rose: #FF8FC0;       /* brand pink shade (kept for later use) */
  --pink-coral: #FF9AA8;      /* brand pink shade (kept for later use) */
  --pink-mark: #F0C8CF;       /* the highlight behind key words */
  --amber: #FFC107;           /* only the small dot before the hero label */
  --mark-bg: var(--pink-mark);
  --mark-text: var(--heading);
  --panel: #0A3678;           /* closing panel */
  --panel-glow: #1556B8;
  --header-bg: rgba(252, 252, 253, 0.86);
  --hero-top: #183FDA;        /* hero: blue */
  --hero-mid: #FFFBFC;        /* hero: almost-white */
  --hero-end: #F5DADF;        /* brand light pink (dark mode reuses the name) */
  --hero-soft: #F9E7EB;       /* hero middle: a softer tint of the brand pink #F5DADF (60%) with almost-white (Tessy, 11/17) */
  --btn-blue: #4164FF;        /* main button */
  --btn-blue-hover: #5576FF;

  /* Lift and soft gloss (cards and buttons) */
  --panel-bright: #183FDA;    /* closing panel: brand blue */
  /* Glossy light cards (Tessy's spec, 11/16): only for light cards between the hero and the contact section.
     Soft top-to-bottom fill, 1px white top edge, blue-tinted two-part shadow. Solid blue surfaces get none of this. */
  --gloss-card: linear-gradient(180deg, #F2F6FC 0%, #E3EAF5 100%);
  --card-line: #D3DEEF;
  --card-line-hover: #BCCBE6;
  --shadow-card: inset 0 1px 0 #FFFFFF, 0 1px 2px rgba(24, 63, 218, 0.06), 0 10px 28px -10px rgba(24, 63, 218, 0.18);
  --shadow-card-hover: inset 0 1px 0 #FFFFFF, 0 2px 4px rgba(24, 63, 218, 0.08), 0 16px 34px -12px rgba(24, 63, 218, 0.26);
  --gloss-inner: linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 100%);
  --inner-line: #DCE5F2;
  --shadow-inner: inset 0 1px 0 #FFFFFF, 0 1px 2px rgba(24, 63, 218, 0.08), 0 4px 12px -4px rgba(24, 63, 218, 0.12);
  --radius-card-lg: 24px;
  /* Project cards keep their earlier white colour (Tessy, 11/16), with the glossy edge and shadow */
  --project-card: linear-gradient(180deg, #FFFFFF 0%, #FAFCFF 100%);
  --project-line: #DCE5F2;
  --project-line-hover: #C9D6EC;
  --radius-card-md: 20px;

  /* Type: 1.25 Major Third from 16px, nothing below 12px */
  --t-12: 0.75rem;
  --t-16: 1rem;
  --t-20: 1.25rem;
  --t-25: 1.563rem;
  --t-31: 1.953rem;
  --t-39: 2.441rem;
  --t-49: 3.052rem;
  --t-61: 3.815rem;
  --t-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);        /* 16 to 18px */
  --t-h2: clamp(1.563rem, 1.1rem + 2vw, 2.441rem);          /* 25 to 39px */
  --t-hero: clamp(1.953rem, 1rem + 3.4vw, 3.052rem);        /* 31 to 49px, one step down for the longer headline (Tessy, 11/17) */

  /* Space: 8px grid */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-6: 3rem;
  --s-8: 4rem;
  --s-12: 6rem;

  --radius-card: 12px;
  --radius-panel: 24px;
  --radius-pill: 999px;
  --page: 72rem;

  /* Motion (motion-system skill, Subtle mode) */
  --duration-xshort: 75ms;
  --duration-short: 150ms;
  --duration-normal: 250ms;
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1);
  --motion-press-scale: 0.98;
  --motion-lift: 1px;
}

:root[data-theme="dark"] {
  --bg: #141A26;               /* dark navy-grey, matches the blue family (Tessy, 11/17; was warm #16140F) */
  --surface: #1B2232;
  --line: #2A3345;
  --line-strong: #3D4860;
  --heading: #EEF1F7;
  --text: #EEF1F7;
  --text-2: #A9B2C3;
  --label: #A9B2C3;
  --accent: #A9C7F5;          /* brand blue is too dark here, so a lighter tint */
  --accent-hover: #C6DAF9;
  --on-accent: #10203A;
  --headline-accent: #F5DADF;
  --mark-bg: transparent;
  --gloss-card: linear-gradient(180deg, #1A2540 0%, #141D33 100%);
  --card-line: #33425F;
  --card-line-hover: #47597D;
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px -12px rgba(0, 0, 0, 0.6);
  --shadow-card-hover: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 4px rgba(0, 0, 0, 0.35), 0 20px 36px -14px rgba(0, 0, 0, 0.7);
  --gloss-inner: linear-gradient(180deg, #1E2A42 0%, #192338 100%);
  --project-card: linear-gradient(180deg, #222A3B 0%, #1B2232 55%);
  --project-line: #2A3345;
  --project-line-hover: #3D4860;
  --inner-line: #2A3650;
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px -4px rgba(0, 0, 0, 0.5);
  --mark-text: #F0C8CF;
  --header-bg: rgba(20, 26, 38, 0.86);
  --hero-mid: #141A26;        /* dark mode: the blue fades into the dark page instead of white and pink */
  --hero-end: #141A26;
  --hero-soft: #141A26;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "General Sans", sans-serif;
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p { margin: 0; }
h1, h2, h3, h4, blockquote { color: var(--heading); }
/* Headings on the blue hero and the blue closing panel stay white */
.hero h1, .closing-panel h2, .closing-panel h3 { color: inherit; }

a { color: var(--accent); text-underline-offset: 0.2em; transition: color var(--duration-short) var(--ease-out-quad); }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
  transition: outline-color var(--duration-xshort) var(--ease-out-quad);
}

mark {
  background: var(--mark-bg);
  color: var(--mark-text);
  padding: 0.05em 0.2em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Side margins: about 9% of the screen width (from Tessy's mock-up), never under 24px, never over 128px */
.wrap { --gutter: clamp(1.5rem, 9vw, 8rem); width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 47.99rem) { .wrap { --gutter: var(--s-3); } }
/* Hero headline: Tessy's two-line break only on wide screens, where both lines fit; narrower screens wrap naturally */
br.wide-only { display: none; }
@media (min-width: 80rem) { br.wide-only { display: inline; } .hero .wrap h1 { max-width: none; } }

.eyebrow {
  font-size: var(--t-12);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.skip {
  position: absolute; left: var(--s-2); top: -4rem;
  background: var(--surface); color: var(--text);
  padding: var(--s-1) var(--s-2); border-radius: 8px; z-index: 50;
}
.skip:focus { top: var(--s-2); }

/* ---------- Buttons (shapes, colours and hover taken from iaurora.app) ---------- */

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit; font-size: var(--t-16); font-weight: 500; line-height: 1.5;
  text-decoration: none; cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

/* Main button: bright blue, sits 2px raised, a light streak crosses it on hover */
.btn-primary {
  background: var(--btn-blue); color: #FFFFFF; border-width: 0;
  transform: translateY(-2px);
  box-shadow: inset 0 4px 14px rgba(58, 98, 255, 0.1);
}
.btn-primary::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -75%; bottom: -75%; left: 0; width: 102%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.08) 18%, rgba(255, 255, 255, 0.08) 28%, rgba(255, 255, 255, 0.58) 30%, rgba(255, 255, 255, 0.08) 32%, rgba(0, 0, 0, 0));
  rotate: -12deg; transform: translateX(-160%);
}
.btn-primary:hover { background: var(--btn-blue-hover); color: #FFFFFF; box-shadow: 0 5px 0 rgba(42, 74, 220, 0.65); }
.btn-primary:hover::before { transform: translateX(160%); transition: transform 700ms ease; }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 0 rgba(42, 74, 220, 0.65); }

/* Second button, and the buttons on the blue closing panel: white with a soft blue inner edge */
.btn-quiet, .btn-panel {
  background: rgba(255, 255, 255, 0.94); color: #2B2E37;
  border-color: #E2E8FF;
  box-shadow: inset 0 4px 4px rgba(58, 98, 255, 0.4);
}
.btn-quiet:hover, .btn-panel:hover { background: #FFFFFF; color: #2B2E37; transform: translateY(-2px); }
.btn-quiet:active, .btn-panel:active { transform: translateY(0); }
.btn-panel:focus-visible { outline-color: #FFFFFF; }

@media (max-width: 47.99rem) {
  .btn { min-height: 2.875rem; padding: 0 1rem; }
}

/* ---------- Top menu ---------- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 4.25rem;
}
.brand {
  font-weight: 600; font-size: var(--t-20); letter-spacing: -0.01em;
  color: var(--heading); text-decoration: none; margin-right: auto;
}
.brand:hover { color: var(--heading); }

.nav { display: flex; align-items: center; gap: var(--s-4); margin-right: auto; }
.nav a {
  color: var(--text-2); text-decoration: none; font-size: var(--t-16);
  padding-block: 0.5rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--heading); }

.header-actions { display: flex; align-items: center; gap: var(--s-2); }

.theme-switch {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.25rem 0.75rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text-2);
  font: inherit; font-size: var(--t-12); font-weight: 500; letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color var(--duration-short) var(--ease-out-quad);
}
.theme-switch:hover { border-color: var(--text-2); }
.theme-switch .track {
  position: relative; width: 2rem; height: 1.125rem;
  border-radius: var(--radius-pill); background: var(--line-strong);
  transition: background-color var(--duration-normal) var(--ease-in-out-cubic);
}
.theme-switch .knob {
  position: absolute; top: 2px; left: 2px;
  width: 0.875rem; height: 0.875rem; border-radius: 50%;
  background: var(--surface);
  transition: transform var(--duration-normal) var(--ease-in-out-cubic);
}
.theme-switch[aria-checked="true"] .track { background: var(--accent); }
.theme-switch[aria-checked="true"] .knob { transform: translateX(0.875rem); background: #141A26; }

.menu-btn { display: none; }

@media (max-width: 47.99rem) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header .wrap { flex-wrap: wrap; gap: var(--s-1) var(--s-2); padding-block: 0.5rem; }
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 2.75rem;
    padding: 0.25rem 0.875rem; border-radius: 10px;
    border: 1px solid var(--line-strong); background: transparent;
    color: var(--text); font: inherit; font-size: var(--t-16); cursor: pointer;
  }
  .header-cta { display: none; }
  .nav {
    display: none; order: 3; flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding-bottom: var(--s-1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0; border-top: 1px solid var(--line); color: var(--text); }
}

/* ---------- Hero ---------- */

.hero {
  display: flex; align-items: flex-start;
  min-height: 100vh; min-height: 100svh;
  padding-block: var(--s-6) var(--s-8);
  text-align: left; color: #FFFFFF;
  /* Tessy, 11/17: the fade starts right under the last line of the headline. site.js measures that
     point and sets --fade-start (in px from the top of the hero); without JavaScript it falls back to 260px
     above the bottom. The first stretch of the fade is gentle, so the sentence stays readable on it. */
  --fade-start: calc(100% - 260px);
  background: linear-gradient(180deg,
    var(--hero-top) 0%,
    var(--hero-top) var(--fade-start),
    color-mix(in srgb, var(--hero-top) 80%, var(--hero-soft)) calc(var(--fade-start) + (100% - var(--fade-start)) * 0.4),
    color-mix(in srgb, var(--hero-top) 40%, var(--hero-soft)) calc(var(--fade-start) + (100% - var(--fade-start)) * 0.7),
    color-mix(in srgb, var(--hero-top) 10%, var(--hero-soft)) calc(var(--fade-start) + (100% - var(--fade-start)) * 0.9),
    var(--hero-soft) 100%);
}
.hero .wrap { display: flex; flex-direction: column; align-items: flex-start; }

.hero-photo {
  width: 10rem; height: 10rem; border-radius: 50%;
  object-fit: cover; object-position: 50% 20%;
  border: 3px solid #FFFFFF;
  box-shadow: 0 10px 24px -10px rgba(6, 20, 90, 0.6);
  margin-bottom: var(--s-3);
}

.hero .eyebrow { color: #C9D5FF; display: flex; align-items: center; gap: 0.625rem; }
.hero .eyebrow::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--amber); flex: none; }

.hero h1 {
  font-size: var(--t-hero); font-weight: 500;
  line-height: 1.08; letter-spacing: -0.03em;
  max-width: 30ch; margin-top: var(--s-3);
  text-wrap: balance;
  color: #E3E8FB; /* same soft white as the contact form heading (Tessy, 11/16) */
}
.hero h1 .accent { color: #FFFFFF; }

/* The sentence sits where the blue starts to fade, so a soft blue glow behind the letters keeps it readable */
.hero-lede {
  max-width: 52ch; margin-top: var(--s-4);
  /* Quieter than the headline so it doesn't compete with it (Tessy, 11/17): 18px, white at 86% */
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.125rem; line-height: 1.55;
  text-wrap: pretty;
  /* no glow (Tessy, 11/17) */
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: 2.5rem; }

/* Below the hero, the pink melts into the page colour so there is no hard line */
.hero + .projects { background: linear-gradient(180deg, var(--hero-soft), var(--hero-mid) 45%, var(--bg)) top / 100% 6rem no-repeat; padding-top: var(--s-8); }

/* On wide screens the top menu sits on the blue while the page is at the very top */
@media (min-width: 48rem) {
  /* Spacing measured from Tessy's mock-up; it tightens on short screens */
  .hero { margin-top: calc(-4.25rem - 1px); padding-top: calc(4.25rem + clamp(2.5rem, 10vh, 5.5rem)); padding-bottom: clamp(3rem, 10vh, 6rem); } /* was 22vh; shorter gap to the projects (Tessy, 11/17) */
  .site-header { transition: background-color var(--duration-short) var(--ease-out-quad), border-color var(--duration-short) var(--ease-out-quad); }
  .site-header.on-hero { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.on-hero .brand, .site-header.on-hero .nav a:hover { color: #FFFFFF; }
  .site-header.on-hero .nav a { color: rgba(255, 255, 255, 0.86); }
  .site-header.on-hero .theme-switch { background: transparent; border-color: rgba(255, 255, 255, 0.45); color: #FFFFFF; }
  .site-header.on-hero .theme-switch .track { background: rgba(255, 255, 255, 0.35); }
  .site-header.on-hero .header-cta { background: rgba(255, 255, 255, 0.94); color: #2B2E37; box-shadow: inset 0 4px 4px rgba(58, 98, 255, 0.4); }
  .site-header.on-hero .header-cta:hover { background: #FFFFFF; box-shadow: inset 0 4px 4px rgba(58, 98, 255, 0.4); }
  .site-header.on-hero .header-cta::before { display: none; }
}

@media (max-width: 47.99rem) {
  .hero { padding-block: var(--s-6); }
  .hero-photo { width: 6rem; height: 6rem; }
  .hero-lede { font-size: var(--t-16); }
}

/* ---------- Projects ---------- */

.projects { padding-block: var(--s-6) var(--s-12); }

.section-head { max-width: 46rem; margin-bottom: var(--s-6); }
.section-head h2 {
  font-size: var(--t-h2); font-weight: 400;
  line-height: 1.15; letter-spacing: -0.025em; margin-top: var(--s-1);
  text-wrap: balance;
}
.section-head p { color: var(--text-2); margin-top: var(--s-2); max-width: 60ch; }

.cards { display: grid; gap: var(--s-3); grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--project-card);
  border: 1px solid var(--project-line);
  border-radius: var(--radius-card-lg);
  padding: var(--s-2);
  box-shadow: var(--shadow-card);
  transition:
    border-color var(--duration-short) var(--ease-out-quad),
    box-shadow var(--duration-short) var(--ease-out-quad),
    transform var(--duration-short) var(--ease-out-quad);
}
.card:hover { border-color: var(--project-line-hover); box-shadow: var(--shadow-card-hover); transform: translateY(calc(var(--motion-lift) * -1)); }

.clip {
  position: relative;
  aspect-ratio: 32 / 15;
  border-radius: 12px; overflow: hidden;
  background: #17151B;
}
.clip video, .clip img { width: 100%; height: 100%; object-fit: cover; }

.clip-toggle {
  position: absolute; right: 0.5rem; bottom: 0.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(20, 26, 38, 0.72); color: #FFFFFF;
  cursor: pointer;
  transition: background-color var(--duration-short) var(--ease-out-quad), transform var(--duration-xshort) var(--ease-out-quad);
}
.clip-toggle:hover { background: rgba(20, 26, 38, 0.92); }
.clip-toggle:active { transform: scale(var(--motion-press-scale)); }
.clip-toggle:focus-visible { outline-color: #FFFFFF; }
.clip-toggle svg { width: 1rem; height: 1rem; fill: currentColor; }
.clip-toggle .i-play { display: none; }
.clip-toggle[aria-pressed="true"] .i-play { display: block; }
.clip-toggle[aria-pressed="true"] .i-pause { display: none; }

.card-body { display: flex; flex-direction: column; flex: 1; padding: var(--s-3) var(--s-1) var(--s-1); }

.card-meta { display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; }
.tag {
  font-size: var(--t-12); font-weight: 500; letter-spacing: 0.02em;
  color: var(--text-2);
  border: 1px solid var(--inner-line); border-radius: var(--radius-pill);
  background: var(--gloss-inner);
  padding: 0.125rem 0.625rem;
}

.card h3 {
  font-size: var(--t-20); font-weight: 500;
  line-height: 1.3; letter-spacing: -0.01em; margin-top: var(--s-2);
  text-wrap: balance;
}
.card p { color: var(--text-2); font-size: var(--t-16); margin-top: var(--s-1); }

.card-links {
  display: flex; flex-wrap: wrap; gap: 0 var(--s-3);
  margin-top: auto; padding-top: var(--s-2);
  font-size: 0.875rem; font-weight: 500;   /* 14px: quieter than the 20px card title */
}
.card-links a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Closing panel: form on the left, ways to reach Tessy on the right ---------- */

.closing { padding-bottom: var(--s-8); }
.closing-panel {
  display: grid; grid-template-columns: 1fr; gap: var(--s-6);
  background: var(--panel-bright);
  color: #E3E8FB;             /* softer than pure white on the blue (Tessy, 11/16); buttons and icons stay #FFFFFF */
  border-radius: var(--radius-panel);
  padding: var(--s-6) var(--s-3);
  box-shadow: 0 24px 48px -24px rgba(12, 32, 120, 0.5);
}
/* Cards sit beside the form from tablet width up, so the section stays short (Tessy, 11/16) */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .closing-panel { grid-template-columns: 1.5fr 1fr; gap: var(--s-4); padding: var(--s-6) var(--s-4); align-items: stretch; }
  .closing h2 { font-size: var(--t-31); }
}
@media (min-width: 64rem) {
  .closing-panel { grid-template-columns: 1.7fr 1fr; gap: var(--s-6); padding: var(--s-8) var(--s-6); align-items: stretch; }
}
.closing .eyebrow {
  color: #B9CEF3; letter-spacing: 0.18em;
  font-weight: 500;
}
.closing h2 {
  font-size: clamp(1.953rem, 1.2rem + 2vw, 2.441rem); font-weight: 400;   /* 31 to 39px */
  line-height: 1.1; letter-spacing: -0.025em;
  margin-top: var(--s-2);
}
.closing-lede { color: #DCE6F8; max-width: 44ch; margin-top: var(--s-3); }

.contact-form { display: flex; flex-direction: column; gap: 20px; margin-top: 36px; }
/* Name + email, company + website: side by side, stacking only when the column is too narrow for two */
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 15px; font-weight: 400; color: #E3E8FB; }
.field .optional { color: #B9CDF2; }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit; font-size: 1rem; /* 16px minimum so phones don't zoom in */
  color: #1A1A1A; background: #E3E8FB;
  box-sizing: border-box;
  border: 1px solid #1232B8; border-radius: 12px;
  height: 52px; padding: 0 16px;
  box-shadow: inset 0 1px 2px rgba(31, 27, 22, 0.12);
  transition: border-color var(--duration-short) var(--ease-out-quad);
}
.field textarea { height: auto; min-height: 120px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field ::placeholder { color: #6B7280; opacity: 1; }
/* Dropdown: native arrow hidden, brand-blue chevron instead */
.select-wrap { position: relative; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.field select:invalid { color: #6B7280; }
.field select option { color: #1A1A1A; }
.select-chevron { position: absolute; right: 16px; top: 17px; width: 18px; height: 18px; pointer-events: none; fill: none; stroke: #183FDA; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
/* Spam trap: off-screen, never seen by people */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: var(--t-16); color: #FFE08A; margin: 0; }
.form-note:empty { display: none; }
/* Shown in place of the form once it has sent (focus moves here for screen readers) */
.form-success { color: #E3E8FB; max-width: 34rem; }
/* A card with a tick so it can't be mistaken for the intro text above (Tessy, 11/17) */
.form-success.is-shown {
  margin-top: 36px;
  display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-2); row-gap: 0.25rem; align-items: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: var(--s-4) var(--s-3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.form-success-icon {
  grid-row: 1 / span 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #FFFFFF;
}
.form-success-icon svg { width: 1.375rem; height: 1.375rem; fill: none; stroke: #183FDA; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.form-success-title { display: block; color: #FFFFFF; font-size: var(--t-25); font-weight: 500; line-height: 1.2; margin-top: 0.4rem; }
.form-success-text { display: block; font-size: var(--t-16); line-height: 1.5; color: #E3E8FB; }
.form-success:focus { outline: none; }
.contact-form[hidden] { display: none; }

.closing-side { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 40rem) and (max-width: 47.99rem) { .closing-side { grid-template-columns: 1fr 1fr; } }
.contact-card {
  display: flex; flex-direction: column; gap: var(--s-3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.07) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: var(--s-4) var(--s-3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.contact-card-head { display: flex; gap: var(--s-2); align-items: flex-start; }
/* The email address shrinks with its card, so it always stays on one line */
.contact-card-head > div { flex: 1; min-width: 0; container-type: inline-size; }
.contact-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
}
.contact-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: #FFFFFF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h3 { font-size: var(--t-20); font-weight: 500; line-height: 1.2; }
.contact-card p { color: #DCE6F8; font-size: var(--t-16); margin-top: 0.25rem; overflow-wrap: anywhere; }
.contact-card p a { color: #E3E8FB; font-weight: 500; font-size: clamp(0.75rem, 8.4cqi, 1rem); white-space: nowrap; display: inline-flex; align-items: center; min-height: 2.75rem; }
.contact-card p.hire-note { color: #FFF1B8; /* pale yellow (Tessy, 11/16) */ font-size: var(--t-20); font-style: italic; line-height: 1.4; margin-top: var(--s-2); overflow-wrap: normal;
  margin-left: calc(-1 * (2.75rem + var(--s-2))); /* starts under the email icon, not the title (Tessy, 11/16) */ }
.contact-card p.hire-note a { display: inline; min-height: 0; font-size: inherit; font-weight: inherit; white-space: normal; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* "What happens next" steps */
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.next-steps li { display: flex; gap: 0.875rem; align-items: flex-start; }
.step-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #FFFFFF; color: #183FDA; font-size: 0.875rem; font-weight: 600;
}
.next-steps strong { display: block; font-size: var(--t-16); font-weight: 500; color: #E3E8FB; line-height: 1.4; margin-top: 2px; }
.next-steps li span:not(.step-num) { display: block; font-size: 15px; font-weight: 400; color: #DCE6F5; line-height: 1.5; margin-top: 0.125rem; }
/* Side column is narrow on laptop-width screens: keep the email address on one line */
@media (min-width: 64rem) and (max-width: 84.99rem) {
  .closing-panel { grid-template-columns: 1.5fr 1fr; gap: var(--s-4); }
  .closing h2 { font-size: var(--t-31); }
}

.contact-social { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid rgba(255, 255, 255, 0.2); }
.contact-social ul { display: flex; gap: 0.75rem; margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.contact-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  color: #FFFFFF; background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background-color var(--duration-short) var(--ease-out-quad), transform var(--duration-xshort) var(--ease-out-quad);
}
.contact-social a:hover { background: rgba(255, 255, 255, 0.22); color: #FFFFFF; }
.contact-social a:active { transform: scale(var(--motion-press-scale)); }
.contact-social a:focus-visible { outline-color: #FFFFFF; }
.contact-social svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }

@media (max-width: 47.99rem) {
  .closing-panel { padding: var(--s-6) var(--s-2); border-radius: 16px; }
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-4); color: var(--text-2); font-size: var(--t-16); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); }
.site-footer nav { display: flex; gap: var(--s-3); }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Visitors who turn motion off: colour and focus stay, movement goes ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .clip-toggle:active, .card:hover { transform: none; }
  .btn, .btn:hover, .btn:active { transform: none; transition: background-color 150ms ease; }
  .btn-primary::before { display: none; }
  .theme-switch .knob, .theme-switch .track { transition-duration: 0ms; }
}

/* ---------- Project pages ---------- */

.project-top { padding-block: var(--s-6) var(--s-6); }
.back-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--t-16); color: var(--text-2); text-decoration: none; }
.back-link:hover { color: var(--text); }

.project-hero { display: grid; gap: var(--s-4); grid-template-columns: 1fr; align-items: center; margin-top: var(--s-2); }
@media (min-width: 60rem) { .project-hero { grid-template-columns: 1.15fr 1fr; gap: var(--s-6); } }

.project-hero .clip { border-radius: var(--radius-card); border: 1px solid var(--line); }

.project-hero h1 {
  font-size: var(--t-h2); font-weight: 400;
  line-height: 1.15; letter-spacing: -0.025em; margin-top: var(--s-2);
  text-wrap: balance;
}
.project-hero .lede { color: var(--text-2); margin-top: var(--s-2); max-width: 46ch; }
.project-hero .btn { margin-top: var(--s-3); }

.project-body { padding-bottom: var(--s-8); }
.prose { max-width: 42rem; margin-inline: auto; }
.prose h2 {
  font-size: var(--t-25); font-weight: 500;
  line-height: 1.25; letter-spacing: -0.015em;
  margin-top: var(--s-6); text-wrap: balance;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: var(--s-2); max-width: 65ch; }
.prose ul { margin: var(--s-2) 0 0; padding-left: 1.25rem; max-width: 65ch; }
.prose li { margin-top: var(--s-1); }
.prose li::marker { color: var(--accent); }

/* Facts strip: value on top, label under it */
.project-facts { padding-bottom: var(--s-6); }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2);
  margin: 0; padding: var(--s-3);
  background: var(--gloss-card); border: 1px solid var(--card-line); border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card);
}
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); padding: var(--s-4); } }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.25rem; }
.stat dd { margin: 0; font-size: var(--t-25); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: var(--accent); }
.stat dt { color: var(--text-2); font-size: var(--t-16); line-height: 1.4; }
@media (min-width: 48rem) { .stat dd { font-size: var(--t-31); } }

/* Before and after */
.compare { display: grid; grid-template-columns: 1fr; gap: var(--s-2); margin-top: var(--s-3); }
@media (min-width: 40rem) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col {
  padding: var(--s-3);
  background: var(--gloss-inner); border: 1px solid var(--inner-line); border-radius: var(--radius-card-md);
  box-shadow: var(--shadow-inner);
}
.compare-col.is-after { background: var(--gloss-card); border-color: var(--card-line); box-shadow: var(--shadow-card); }
.compare-col h3 {
  margin: 0; font-size: var(--t-12); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--label);
}
.compare-col.is-after h3 { color: var(--accent); }
.compare-col ul { margin-top: var(--s-2); padding-left: 1.1rem; }
.compare-col li { font-size: var(--t-16); }
.compare-col:not(.is-after) li { color: var(--text-2); }
.prose .takeaway { margin-top: var(--s-3); font-weight: 500; }

/* Who does what, in order */
.roles { margin: var(--s-2) 0 0; padding: 0; list-style: none; counter-reset: role; max-width: 65ch; }
.roles li {
  counter-increment: role; position: relative;
  padding: var(--s-2) 0 var(--s-2) 2.75rem; margin: 0;
  border-top: 1px solid var(--line);
}
.roles li:last-child { border-bottom: 1px solid var(--line); }
.roles li::before {
  content: counter(role, decimal-leading-zero);
  position: absolute; left: 0; top: var(--s-2);
  font-size: var(--t-16); font-weight: 500; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.roles strong { font-weight: 600; }

/* Why it holds up */
.holds { margin: var(--s-2) 0 0; max-width: 65ch; }
.holds > div { display: grid; grid-template-columns: 1fr; gap: 0.125rem; padding-block: 0.75rem; border-top: 1px solid var(--line); }
@media (min-width: 40rem) { .holds > div { grid-template-columns: 9rem 1fr; gap: var(--s-2); } }
.holds dt { font-weight: 600; }
.holds dd { margin: 0; color: var(--text-2); }

.shot { margin: var(--s-6) auto 0; max-width: 60rem; }
.shot img { width: 100%; height: auto; border-radius: var(--radius-card); border: 1px solid var(--line); }
.shot figcaption { margin-top: var(--s-1); color: var(--text-2); font-size: var(--t-16); text-align: center; }

.next-project {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2);
  max-width: 42rem; margin: var(--s-6) auto 0; padding-top: var(--s-3);
  border-top: 1px solid var(--line); font-weight: 500;
}
.next-project a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* ---------- Services and About pages ---------- */

.page-top { padding-block: var(--s-8) var(--s-6); }
.page-top h1 {
  font-size: clamp(1.563rem, 1rem + 2.6vw, 3.052rem); font-weight: 400;  /* 25 to 49px */
  line-height: 1.1; letter-spacing: -0.03em; margin-top: var(--s-1);
  max-width: 20ch; text-wrap: balance;
}
.page-top h1 .accent { color: var(--headline-accent); }
.page-top .lede { color: var(--text-2); margin-top: var(--s-2); max-width: 52ch; }
@media (max-width: 47.99rem) { .page-top { padding-block: var(--s-6) var(--s-4); } }

/* Services: numbered offers */
.offers { padding-bottom: var(--s-8); }
.offer-list { margin: 0; padding: 0; list-style: none; }
.offer {
  display: grid; grid-template-columns: 1fr; gap: var(--s-3);
  padding-block: var(--s-6); border-top: 1px solid var(--line);
}
@media (min-width: 60rem) { .offer { grid-template-columns: 4rem 1.1fr 1fr; gap: var(--s-6); } }
/* Each offer sits on its own pale panel: 01 yellow, 02 pink, 03 aqua (Tessy, 11/16) */
:root:not([data-theme="dark"]) .offer {
  border: 1px solid transparent; border-radius: var(--radius-card-lg);
  padding: var(--s-4) var(--s-3); margin-top: var(--s-3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%), var(--offer-fill);
  border-color: var(--offer-line);
}
@media (min-width: 60rem) { :root:not([data-theme="dark"]) .offer { padding: var(--s-6); } }
.offer:nth-child(1) { --offer-fill: #FFF8E1; --offer-line: #F2E3B3; --offer-tick: #B58500; }
.offer:nth-child(2) { --offer-fill: #FFF2F7; --offer-line: #F3D6E2; --offer-tick: #D63C7A; }
.offer:nth-child(3) { --offer-fill: #EBFBFC; --offer-line: #CDEBEE; --offer-tick: #168F99; }
/* On the coloured panels, the "What's included" box is white so the colours don't clash */
:root:not([data-theme="dark"]) .offer .offer-included { background: var(--gloss-inner); border-color: var(--inner-line); }
.offer-num { font-size: var(--t-25); color: var(--text-2); font-variant-numeric: tabular-nums; line-height: 1.2; }
.offer h2 {
  font-size: clamp(1.563rem, 1.3rem + 1vw, 1.953rem); font-weight: 400;   /* 25 to 31px */
  line-height: 1.2; letter-spacing: -0.02em; margin-top: var(--s-2);
  text-wrap: balance;
}
.offer-outcome { margin-top: var(--s-2); max-width: 46ch; }
.offer-link { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: var(--s-2); font-weight: 500; }
.offer-included {
  background: var(--gloss-card); border: 1px solid var(--card-line);
  border-radius: var(--radius-card-md); padding: var(--s-3);
  box-shadow: var(--shadow-card);
}
.offer-included h3 { font-size: var(--t-16); font-weight: 600; }
.checks { margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 2.25rem; margin-top: 0.75rem; font-size: var(--t-16); }
/* Each tick sits in a circle of its offer's pale colour, the tick in a strong shade of it (Tessy, 11/16) */
.checks li::after {
  content: ""; position: absolute; left: 0; top: 0.05em;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--offer-fill, #F1F3FD); border: 1px solid var(--offer-line, #D5DBF6);
}
.checks li::before {
  content: ""; position: absolute; z-index: 1; left: 0.56rem; top: 0.3em;
  width: 0.375rem; height: 0.7rem;
  border: solid var(--offer-tick, var(--accent)); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
:root[data-theme="dark"] .checks li::after { background: rgba(255, 255, 255, 0.06); border-color: var(--line); }
:root[data-theme="dark"] .checks li::before { border-color: var(--accent); }

/* Services: how every build runs */
.method { padding-bottom: var(--s-12); }
/* "How I work" sits on a pale blue panel, like the offers above it (Tessy, 11/16) */
:root:not([data-theme="dark"]) .method-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%), #F1F3FD;
  border: 1px solid #D5DBF6; border-radius: var(--radius-card-lg);
  padding: var(--s-4) var(--s-3);
}
@media (min-width: 60rem) { :root:not([data-theme="dark"]) .method-panel { padding: var(--s-6); } }
.method-panel .section-head { margin-bottom: var(--s-4); }
.steps {
  display: grid; grid-template-columns: 1fr; gap: var(--s-3);
  margin: 0; padding: 0; list-style: none; counter-reset: step;
}
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { border-top: 1px solid var(--line-strong); padding-top: var(--s-2); counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-size: var(--t-12); font-weight: 600; letter-spacing: 0.12em; color: var(--accent);
}
.steps h3 { font-size: var(--t-20); font-weight: 500; margin-top: var(--s-1); }
.steps p { color: var(--text-2); font-size: var(--t-16); margin-top: var(--s-1); }

/* About */
.about { padding-block: var(--s-8) var(--s-6); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 60rem) { .about-grid { grid-template-columns: 17rem 1fr; gap: var(--s-8); align-items: start; } }
.about-photo { width: 100%; max-width: 17rem; height: auto; border-radius: var(--radius-card); border: 1px solid var(--line); }
@media (max-width: 59.99rem) { .about-photo { max-width: 9rem; } }
.about .page-title {
  font-size: clamp(1.563rem, 1rem + 2.6vw, 3.052rem); font-weight: 400;
  line-height: 1.1; letter-spacing: -0.03em; margin-top: var(--s-1);
  max-width: 22ch; text-wrap: balance;
}
.about .page-title .accent { color: inherit; } /* one colour (Tessy, 11/16) */
.about .statement {
  margin-top: var(--s-4); padding-left: var(--s-2);
  border-left: 3px solid var(--accent); color: var(--heading);
  font-size: var(--t-20); font-weight: 400; line-height: 1.4; max-width: 44ch;
}
.story-links { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

/* About: three numbered parts, built to be scanned (Tessy's mock-up, 11/16) */
.about-part { padding-block: var(--s-6); }
.part-head { margin-bottom: var(--s-4); }
.part-head h2 {
  font-size: var(--t-h2); font-weight: 400; line-height: 1.15; letter-spacing: -0.025em;
  margin-top: var(--s-2); max-width: 30ch; text-wrap: balance;
}
.part-label {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--t-12); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.part-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--accent); color: #FFFFFF; font-size: var(--t-12); letter-spacing: 0;
}
:root[data-theme="dark"] .part-num { color: #10203A; }

.story-rows { border-top: 1px solid var(--line); }
.story-row { display: grid; grid-template-columns: 1fr; gap: var(--s-1); padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.story-row:last-child { border-bottom: 0; }
.story-row:last-child h3 { color: var(--accent); } /* "Today" in blue (Tessy, 11/16) */
.story-row h3 { font-size: var(--t-20); font-weight: 500; line-height: 1.3; transition: color 250ms var(--ease-out-quad); }
/* Scroll highlight: the row in the middle of the screen gets a blue title (Tessy, 11/16) */
.story-row.is-active h3 { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .story-row h3 { transition: none; } }
.story-row p { color: var(--text-2); max-width: 65ch; padding-left: var(--s-2); border-left: 3px solid #D1D9F8; } /* pale blue line in front of each paragraph (Tessy, 11/16) */
:root[data-theme="dark"] .story-row p { border-left-color: #33425F; }
@media (min-width: 48rem) { .story-row { grid-template-columns: minmax(12rem, 1fr) 1.6fr; gap: var(--s-4); } }

.why-card {
  background: var(--gloss-card); border: 1px solid var(--card-line); border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card); padding: var(--s-4) var(--s-3);
}
@media (min-width: 48rem) { .why-card { padding: var(--s-6) var(--s-6); } }
.why-card h2 { font-size: var(--t-25); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; max-width: 34ch; text-wrap: balance; }
@media (min-width: 48rem) { .why-card h2 { font-size: var(--t-31); } }
.why-card p { color: var(--text-2); max-width: 62ch; margin-top: var(--s-3); }
.why-card .why-promise { color: var(--heading); font-weight: 500; margin-top: var(--s-2); }

.principles { display: grid; grid-template-columns: 1fr; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .principles { grid-template-columns: repeat(4, 1fr); } }
.principle {
  background: var(--gloss-card); border: 1px solid var(--card-line); border-radius: var(--radius-card-md);
  box-shadow: var(--shadow-card); padding: var(--s-3);
}
.principle h3 { font-size: var(--t-20); font-weight: 500; line-height: 1.25; }
.principle p { color: var(--text-2); font-size: var(--t-16); margin-top: var(--s-1); }
/* The three other principle cards: one fill each (Tessy, 11/16), with the same soft sheen */
.principle:nth-child(1) { background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%), #EBFBFC; border-color: #CDEBEE; }
.principle:nth-child(3) { background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%), #FFF8E1; border-color: #F2E3B3; }
.principle:nth-child(4) { background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%), #FFF2F7; border-color: #F3D6E2; }
:root[data-theme="dark"] .principle:not(.is-accent) { background: var(--gloss-card); border-color: var(--card-line); }
/* The emphasised card: pale blue since 11/16 (it was solid pink) */
.principle.is-accent {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%), #F1F3FD; /* Tessy, 11/16 */
  border-color: #D5DBF6;
}
:root[data-theme="dark"] .principle.is-accent { background: var(--gloss-card); border-color: var(--card-line); } /* matches the others now the light card is pale blue (11/17) */
:root[data-theme="dark"] .principle.is-accent p { color: var(--text-2); }


.credentials { padding-block: var(--s-6) var(--s-12); }
.certs { display: grid; grid-template-columns: 1fr; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) { .certs { grid-template-columns: repeat(2, 1fr); } }
.cert {
  display: flex; gap: var(--s-2); align-items: center; height: 100%;
  background: var(--gloss-card); border: 1px solid var(--card-line);
  border-radius: var(--radius-card-md); padding: var(--s-2);
  box-shadow: var(--shadow-card);
}
.cert img { width: 6rem; height: 6rem; flex: none; border-radius: 8px; object-fit: cover; }
.cert h3 { font-size: var(--t-20); font-weight: 500; line-height: 1.3; }
.cert p { color: var(--text-2); font-size: var(--t-16); margin-top: 0.25rem; }
.cert a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--t-16); font-weight: 500; }

/* Dark mode: the highlight is coloured text with no background, so it needs no padding */
:root[data-theme="dark"] mark { padding: 0; }

/* ---- Tools used: small round logo tags on the project cards (same shape as the form's social icons) ---- */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.card-tools { display: flex; gap: 0.375rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.tool {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--gloss-inner); border: 1px solid var(--inner-line);
}
.tool svg { width: 1rem; height: 1rem; }
.tool .brand-make { fill: #6D00CC; }
.tool .brand-gmail { fill: #EA4335; }
.tool .brand-n8n { fill: #EA4B71; }
/* Dark mode: a light disc so every logo keeps its true brand colour */
:root[data-theme="dark"] .tool { background: #FFFBFC; border-color: rgba(255, 255, 255, 0.6); }
