/* ==========================================================================
   Take Five Media — shared stylesheet
   --------------------------------------------------------------------------
   1. Brand tokens   ← to re-brand the template, start here
   2. Base & reset
   3. Layout helpers
   4. Typography
   5. Buttons & links
   6. Header & mobile menu
   7. Footer
   8. Motion (scroll reveal, reduced motion)
   ========================================================================== */


/* 0. Fonts (files in assets/fonts/, hosted with the site)
   ========================================================================== */
/* FONTS:START (generated by tools/download-fonts.py, do not edit by hand) */
/* Inter, latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter, latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter, latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter, latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter, latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter, latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Libre Caslon Condensed, latin-ext */
@font-face {
  font-family: 'Libre Caslon Condensed';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/libre-caslon-condensed-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Libre Caslon Condensed, latin */
@font-face {
  font-family: 'Libre Caslon Condensed';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/libre-caslon-condensed-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Mrs Saint Delafield, latin-ext */
@font-face {
  font-family: 'Mrs Saint Delafield';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/mrs-saint-delafield-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Mrs Saint Delafield, latin */
@font-face {
  font-family: 'Mrs Saint Delafield';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/mrs-saint-delafield-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* FONTS:END */


/* 1. Brand tokens
   ========================================================================== */
:root {
  /* Colors */
  --navy: #2C507B;          /* primary, from the logo */
  --navy-deep: #22426A;     /* hover state for navy buttons */
  --ink: #1E3757;           /* body text */
  --navy-dark: #1E3757;     /* footer, so the logo's navy oval still stands out */
  --cream: #FBF6EE;         /* light text on navy, logo inner */
  --paper: #EEE7DA;         /* page background */
  --rule: rgb(44 80 123 / 0.28);        /* thin lines on paper */
  --rule-on-navy: rgb(251 246 238 / 0.28); /* thin lines on navy */
  --error: #A3322A;         /* form error text and borders (5:1 on paper) */

  /* Fonts (loaded from Google Fonts in each page's <head>) */
  --font-display: "Libre Caslon Condensed", "Playfair Display", Georgia, serif;
  --font-script: "Mrs Saint Delafield", "Pinyon Script", cursive;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale (fluid: grows smoothly between phone and desktop) */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --step-3: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
  --step-4: clamp(3rem, 1.9rem + 5vw, 6rem);
  --step-5: clamp(4rem, 1.5rem + 11vw, 10.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --section-pad: clamp(4rem, 2.5rem + 6vw, 8rem);
  --gutter: clamp(1rem, 0.5rem + 3vw, 3rem);
  --max-width: 75rem;

  /* Shapes */
  --radius-pill: 999px;
  --radius-card: 1.25rem;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Header */
  --header-h: 4.5rem;

  /* Paper grain image laid over the background */
  --texture: url("../assets/web/bg-paper-texture-700.webp");

  /* Focus ring color (switches to cream on navy areas) */
  --focus: var(--navy);
}


/* 2. Base & reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Warm paper grain over the whole page (sits behind all content). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--texture) center / cover;
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: var(--navy); color: var(--cream); }

/* Sections that receive focus from a jump link don't need an outline. */
[tabindex="-1"]:focus { outline: none; }

/* "Skip to content" link: hidden until a keyboard user tabs to it. */
.skip-link {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* 3. Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }

/* Navy sections: cream text, slightly grainy like printed ink. */
.section--navy,
.site-footer {
  --focus: var(--cream);
  position: relative;
  isolation: isolate;
  background-color: var(--navy);
  color: var(--cream);
}
.section--navy::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--texture) center / cover;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* Section title with the deck's thin rule underneath. */
.section-head {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-7);
  border-bottom: 1px solid var(--rule);
}
.section--navy .section-head { border-color: var(--rule-on-navy); }


/* 4. Typography
   ========================================================================== */
.display-1,
.display-2,
.display-3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word; /* safety net: a very long word wraps instead of widening the page */
}
.display-1 { font-size: var(--step-5); }
.display-2 { font-size: var(--step-4); }
.display-3 { font-size: var(--step-3); line-height: 0.95; }

.heading {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.1;
}

/* Script flourishes ("Who are we?", "we've got this"). Decorative, so keep them large. */
.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem);
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 36em;
}

.prose { max-width: 38em; }
.prose > * + * { margin-top: 1em; }

/* Small uppercase corner label, like "@TAKEFIVE_MEDIA" in the deck. Use sparingly. */
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


/* 5. Buttons & links
   --------------------------------------------------------------------------
   Every button has a small dot. On hover/focus the dot grows into a circle
   with an icon that tells you what happens: → page, ↗ new tab, phone, mail.
   On touch screens (no hover) the icon is always shown.
   ========================================================================== */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--cream);
  --btn-border: var(--navy);
  --btn-hover-bg: var(--navy-deep);
  --icon-bg: var(--cream);
  --icon-fg: var(--navy);

  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 3rem;
  padding: var(--space-2) var(--space-5) var(--space-2) var(--space-3);
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--btn-hover-bg); }

/* Cream button, for use on navy sections. */
.btn--cream {
  --btn-bg: var(--cream);
  --btn-fg: var(--navy);
  --btn-border: var(--cream);
  --btn-hover-bg: #fff;
  --icon-bg: var(--navy);
  --icon-fg: var(--cream);
}

/* Outline buttons (secondary actions). */
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  --btn-hover-bg: rgb(44 80 123 / 0.08);
  --icon-bg: var(--navy);
  --icon-fg: var(--cream);
}
.btn--outline-cream {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-border: var(--cream);
  --btn-hover-bg: rgb(251 246 238 / 0.1);
  --icon-bg: var(--cream);
  --icon-fg: var(--navy);
}

/* The dot → icon. Used by .btn and .text-link. */
.btn__icon {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
}
.btn__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--icon-bg);
  transform: scale(0.27);
  transition: transform 0.4s var(--ease-out);
}
.btn__icon svg {
  position: relative;
  width: 0.95rem;
  height: 0.95rem;
  color: var(--icon-fg);
  opacity: 0;
  transform: translateX(-5px) scale(0.5);
  transition: opacity 0.2s, transform 0.4s var(--ease-out);
}
:is(.btn, .text-link, .service-row):is(:hover, :focus-visible) .btn__icon::before { transform: scale(1); }
:is(.btn, .text-link, .service-row):is(:hover, :focus-visible) .btn__icon svg {
  opacity: 1;
  transform: none;
  transition-delay: 0.05s;
}
@media (hover: none) {
  .btn__icon::before { transform: scale(1); }
  .btn__icon svg { opacity: 1; transform: none; }
}

/* Text link with the same dot (quieter than a button). */
.text-link {
  --icon-bg: var(--navy);
  --icon-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration: none;
}
.text-link > span:last-child {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.35s var(--ease-out);
}
.text-link:hover > span:last-child { background-size: 100% 1.5px; }
.section--navy .text-link,
.site-footer .text-link {
  --icon-bg: var(--cream);
  --icon-fg: var(--navy);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}


/* 6. Header & mobile menu
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
/* The see-through blurred background lives on a separate layer: putting
   backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(238 231 218 / 0.9); /* --paper, slightly see-through so the grain shows */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.menu-open .site-header::before { background: var(--paper); }
.site-header.is-scrolled { border-color: var(--rule); }

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-h);
}

.site-header__logo { flex: none; border-radius: 6px; }
.site-header__logo img { width: auto; height: 2.75rem; }

/* "Menu" pill (phones and small tablets only). */
.menu-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0 var(--space-5);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle__bars {
  position: relative;
  width: 1rem;
  height: 0.625rem;
}
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars::after { top: calc(100% - 1.5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: calc(50% - 0.75px); transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: calc(50% - 0.75px); transform: rotate(-45deg); }

/* Mobile: the nav is a full-screen navy panel under the header bar. */
.site-nav {
  --focus: var(--cream);
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  padding: var(--space-7) var(--gutter) var(--space-6);
  overflow-y: auto;
  background: var(--navy);
  color: var(--cream);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s var(--ease-out), visibility 0s linear 0.55s;
}
.menu-open .site-nav {
  visibility: visible;
  clip-path: inset(0);
  transition: clip-path 0.55s var(--ease-out), visibility 0s;
}
.menu-open { overflow: hidden; }

.site-nav__list { display: grid; gap: var(--space-2); }

/* "Work with us" is cream inside the navy mobile panel, navy on desktop. */
.site-nav__cta {
  --btn-bg: var(--cream);
  --btn-fg: var(--navy);
  --btn-border: var(--cream);
  --btn-hover-bg: #fff;
  --icon-bg: var(--navy);
  --icon-fg: var(--cream);
  align-self: flex-start;
}

.site-nav__link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
}

.site-nav__extra {
  display: grid;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-on-navy);
}
.site-nav__extra .text-link { --icon-bg: var(--cream); --icon-fg: var(--navy); }
.site-nav__extra .script { margin-top: var(--space-3); font-size: 2.75rem; }

/* Desktop: plain horizontal nav, no toggle. */
@media (min-width: 56.25em) {
  :root { --header-h: 5.5rem; }

  .site-header__logo img { height: 3.25rem; }
  .menu-toggle { display: none; }

  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
    padding: 0;
    overflow: visible;
    background: none;
    color: var(--ink);
    visibility: visible;
    clip-path: none;
    transition: none;
    --focus: var(--navy);
  }
  .site-nav__list { display: flex; gap: var(--space-6); }
  .site-nav__link {
    position: relative;
    padding-block: var(--space-2);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    text-transform: none;
  }
  /* Thin navy rule that draws in under the link. */
  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.15rem;
    height: 1.5px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease-out);
  }
  .site-nav__link:hover::after,
  .site-nav__link[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
  }
  .site-nav__link[aria-current="page"] { text-decoration: none; }
  .site-nav__extra { display: none; }
  .site-nav__cta {
    --btn-bg: var(--navy);
    --btn-fg: var(--cream);
    --btn-border: var(--navy);
    --btn-hover-bg: var(--navy-deep);
    --icon-bg: var(--cream);
    --icon-fg: var(--navy);
    align-self: auto;
  }
}


/* 7. Footer
   ========================================================================== */
.site-footer {
  overflow: hidden;
  background-color: var(--navy-dark);
}

/* Repeating "TAKE FIVE. WE'VE GOT THIS!" type pattern from the deck's last slide. */
.type-pattern {
  display: grid;
  gap: 0.1em;
  padding-block: var(--space-6) var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.5rem + 6vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.type-pattern__row {
  display: flex;
  gap: 0.45em;
}
.type-pattern__row span { flex: none; }
.type-pattern__row:nth-child(odd) span { color: rgb(251 246 238 / 0.14); }
.type-pattern__row:nth-child(even) {
  margin-left: -2.2em;
}
.type-pattern__row:nth-child(even) span {
  color: transparent;
  -webkit-text-stroke: 1px rgb(251 246 238 / 0.32);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-7);
  padding-block: var(--space-7);
  border-top: 1px solid var(--rule-on-navy);
}

.site-footer__brand { display: grid; gap: var(--space-3); justify-items: start; }
.site-footer__logo img { width: 10rem; }
/* One line, so the write-on effect reads left to right. */
.site-footer__tagline {
  font-size: clamp(2.25rem, 1.75rem + 1.6vw, 2.9rem);
  white-space: nowrap;
}

.site-footer__nav ul,
.site-footer__contact { display: grid; gap: var(--space-1); }
.site-footer__nav ul { list-style: none; padding: 0; }
.site-footer__nav a {
  display: inline-block;
  padding-block: var(--space-1);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  text-decoration: none;
}
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-5) var(--space-6);
  border-top: 1px solid var(--rule-on-navy);
  font-size: var(--step--1);
}

@media (min-width: 48em) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr; }
  .site-footer__brand { grid-column: auto; }
}


/* 8. Motion
   --------------------------------------------------------------------------
   Elements with .reveal fade up once when scrolled into view. main.js adds
   the .js class, so without JavaScript everything is simply visible.
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Script lines with .write-on are "written" left to right when scrolled into
   view (same effect as the intro). The padding leaves room for the swashes. */
.write-on { padding-inline: 0.2em; margin-inline: -0.2em; }
.js .write-on {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s ease-in-out 0.15s;
}
.js .write-on.is-visible { clip-path: inset(0 0 0 0); }
.write-on--late { transition-delay: 0.55s; } /* waits for the page title to rise */

/* Page entrance (Services, Contact, 404): a short version of the Home hero.
   The title slides up inside its own box, then the text below fades in.
   Pure CSS, under a second, nothing hidden if animations are off. */
.page-title { overflow: hidden; padding-bottom: 0.05em; }
.page-title > span {
  display: inline-block;
  animation: hero-rise 0.9s var(--ease-out) 0.05s both;
}
.page-enter-fade { animation: hero-fade 0.8s var(--ease-out) 0.3s both; }
.page-enter-fade--2 { animation-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .write-on { clip-path: none; }
}


/* 9. Small utilities
   ========================================================================== */
.mt-6 { margin-top: var(--space-6); }


/* 10. "Taking five" intro (Home only)
   --------------------------------------------------------------------------
   Pure CSS, so it always finishes and lifts away by itself, even if
   JavaScript fails. js/intro.js adds .intro-seen to skip it after the first
   visit in a browser tab. Hidden completely for reduced-motion users.
   Timeline: script writes on, digits count 1 to 5, page lifts (about 2.9s).
   ========================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: var(--paper);
  color: var(--navy);
  animation: intro-exit 0.8s cubic-bezier(0.7, 0, 0.2, 1) 2.1s forwards;
}
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--texture) center / cover;
  opacity: 0.22;
  mix-blend-mode: multiply;
}
.intro-seen .intro { display: none; }

.intro__inner {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 30rem);
}

.intro__script {
  padding-inline: 0.35em; /* room for the swashes of the script letters */
  font-family: var(--font-script);
  font-size: clamp(3.25rem, 2.25rem + 5vw, 5.5rem);
  line-height: 1.3;
  clip-path: inset(0 100% 0 0);
  animation: intro-write 1.4s ease-in-out 0.15s forwards;
}

/* The five digits sit in a column; the column slides up one digit at a time. */
.intro__count {
  height: 1em;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(6rem, 4rem + 10vw, 10rem);
  font-weight: 700;
  line-height: 1;
}
.intro__digits {
  display: grid;
  animation: intro-count 1.75s ease-in-out 0.25s forwards;
}
.intro__digits span { height: 1em; text-align: center; }

.intro__line {
  width: 100%;
  height: 1.5px;
  margin-top: var(--space-5);
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  animation: intro-line 1.75s cubic-bezier(0.6, 0, 0.2, 1) 0.25s forwards;
}

.intro__labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: var(--space-3);
}

@keyframes intro-write { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-line { to { transform: scaleX(1); } }
@keyframes intro-count {
  0%, 14%   { transform: translateY(0); }
  22%, 36%  { transform: translateY(-1em); }
  44%, 58%  { transform: translateY(-2em); }
  66%, 80%  { transform: translateY(-3em); }
  88%, 100% { transform: translateY(-4em); }
}
@keyframes intro-exit {
  to { transform: translateY(-100%); visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
}


/* 11. Home page
   ========================================================================== */

/* Hero: headline beside a slowly scrolling strip of printed photos.
   Darker navy so the logo's navy oval stays visible.
   Phones: the strip runs sideways above the headline.
   Desktop: it runs upward in a column on the right. */
.hero {
  --hero-delay: 2.45s; /* waits for the intro to lift */
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100svh - var(--header-h));
  padding-block: var(--space-8) var(--space-7);
  overflow: hidden;
  background-color: var(--navy-dark);
}
.intro-seen .hero { --hero-delay: 0.1s; }

.hero__corners {
  position: absolute;
  top: var(--space-5);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  opacity: 0.85;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: var(--space-5);
}

.hero__logo {
  width: clamp(8.5rem, 5rem + 14vw, 10rem);
  transform: rotate(-6deg);
  animation: hero-stamp 0.7s var(--ease-out) var(--hero-delay) both;
}

.hero__title { display: grid; }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__line > span {
  display: inline-block;
  animation: hero-rise 1s var(--ease-out) var(--hero-delay) both;
}
.hero__line + .hero__line > span { animation-delay: calc(var(--hero-delay) + 0.1s); }

.hero__fade {
  animation: hero-fade 0.9s var(--ease-out) calc(var(--hero-delay) + 0.3s) both;
}
.hero__descriptor { font-size: var(--step-1); max-width: 22em; }
.hero__tagline { margin-top: calc(-1 * var(--space-2)); }

/* The film strip. Edges fade out so photos slide in and out softly. */
.hero__strip {
  position: relative;
  overflow: hidden;
  height: 10.5rem;
  margin: var(--space-5) 0 var(--space-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  animation: hero-fade 0.9s var(--ease-out) var(--hero-delay) both;
}
.hero__strip-track {
  display: flex;
  width: max-content;
  animation: strip-left 45s linear infinite;
}
.hero__strip:hover .hero__strip-track { animation-play-state: paused; }
.hero__strip-track img {
  width: 7.5rem;
  height: 9.5rem;
  margin: 0.5rem 0.6rem;
  object-fit: cover;
}
.hero__strip-track img:nth-child(odd) { transform: rotate(-2deg); }
.hero__strip-track img:nth-child(even) { transform: rotate(2deg); }

@keyframes hero-rise { from { transform: translateY(105%); } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(1rem); } }
@keyframes hero-stamp { from { opacity: 0; transform: rotate(-14deg) scale(1.15); } }
@keyframes strip-left { to { transform: translateX(-50%); } }
@keyframes strip-up { to { transform: translateY(-50%); } }

@media (min-width: 56.25em) {
  .hero__inner { padding-right: 24rem; }
  .hero__title { font-size: clamp(4rem, 1.5rem + 8vw, 8.5rem); }
  .hero__strip {
    position: absolute;
    top: 0;
    bottom: 0;
    right: max(var(--gutter), (100% - var(--max-width)) / 2);
    width: 20rem;
    height: auto;
    margin: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  }
  .hero__strip-track {
    flex-direction: column;
    width: 100%;
    animation-name: strip-up;
    animation-duration: 60s;
  }
  .hero__strip-track img {
    width: 15rem;
    height: auto;
    aspect-ratio: 3 / 4;
    margin: 0.75rem auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__strip-track { animation: none; }
}

/* Welcome: "Who are we?" */
.welcome__grid { display: grid; gap: var(--space-5); }
.welcome__title { transform: rotate(-4deg); transform-origin: left; }
.welcome__text {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.35;
  max-width: 30em;
}
.statement {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--rule);
}

@media (min-width: 56.25em) {
  .welcome__grid { grid-template-columns: 1fr 2fr; }
}

/* About: text beside two "printed" studio photos. */
.about__grid { display: grid; gap: var(--space-8); align-items: center; }
.about__text .lead { margin-bottom: var(--space-5); }

.about__photos {
  position: relative;
  padding: 0 0 18% 14%;
  max-width: 34rem;
}
.print {
  border: 0.5rem solid var(--cream);
  border-radius: 0.25rem;
  box-shadow: 0 1.25rem 2.5rem rgb(15 30 50 / 0.35);
  background: var(--cream);
}
.about__photo-main { transform: rotate(2deg); }
.about__photo-small {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  transform: rotate(-5deg);
}

@media (min-width: 56.25em) {
  .about__grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* Vision & mission */
.vm__grid { display: grid; gap: var(--space-8); }
.vm__item { display: grid; gap: var(--space-5); align-content: start; }
.vm__item img {
  width: 100%;
  max-width: 28rem;
  border-radius: 0.5rem;
  box-shadow: 0 1rem 2rem rgb(15 30 50 / 0.18);
}
.vm__item .display-3 { margin-top: var(--space-3); }

@media (min-width: 48em) {
  .vm__grid { grid-template-columns: 1fr 1fr; gap: var(--space-7) clamp(2rem, 6vw, 6rem); }
  .vm__item:nth-child(2) { margin-top: var(--space-8); }
}

/* What we do: service rows linking to the Services page. */
.service-rows { border-top: 1px solid var(--rule-on-navy); }
.service-row {
  --icon-bg: var(--cream);
  --icon-fg: var(--navy);
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--rule-on-navy);
  text-decoration: none;
  transition: background-color 0.3s;
}
.service-row__num { font-size: var(--step--1); opacity: 0.7; }
.service-row__name {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease-out);
}
.service-row__desc {
  grid-column: 2 / -1;
  max-width: 34em;
  opacity: 0.85;
}
.service-row .btn__icon { grid-column: 3; grid-row: 1; }
.service-row:hover { background-color: rgb(251 246 238 / 0.05); }
.service-row:hover .service-row__name { transform: translateX(0.5rem); }

.services-teaser__more { margin-top: var(--space-6); }

@media (min-width: 56.25em) {
  .service-row {
    grid-template-columns: 3rem 1.1fr 1fr auto;
    padding-inline: var(--space-3);
  }
  .service-row__desc { grid-column: 3; grid-row: 1; }
  .service-row .btn__icon { grid-column: 4; }
}

/* Brands we've worked with: ruled logo grid. */
.brands__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-4); }
.brands__title .script { transform: rotate(-4deg) translateY(0.1em); }

.logo-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.logo-wall li {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: var(--space-4);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.logo-wall img {
  width: auto;
  max-width: 100%;
  max-height: clamp(2.25rem, 1.5rem + 4vw, 4.75rem);
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply; /* white logo backgrounds disappear into the paper */
  opacity: 0.7;
  transition: filter 0.4s, opacity 0.4s;
}
.logo-wall li:hover img { filter: none; opacity: 1; }

@media (min-width: 40em) { .logo-wall { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 64em) { .logo-wall { grid-template-columns: repeat(6, 1fr); } }

/* Closing call to action: a rounded navy panel, like the deck's rounded boxes. */
.cta-panel {
  display: grid;
  gap: var(--space-5);
  padding: clamp(2.5rem, 1.5rem + 5vw, 6rem) clamp(1.5rem, 1rem + 4vw, 6rem);
  border-radius: calc(var(--radius-card) * 1.6);
  overflow: hidden;
}
.cta-panel .script { margin-top: calc(-1 * var(--space-4)); }
.cta-panel .btn-row { margin-top: var(--space-3); }


/* 12. Services page
   ========================================================================== */

/* Page intro with jump links ("chips") to each part of the page. */
.page-intro { padding-bottom: var(--space-7); }
.page-intro .lead { margin-top: var(--space-5); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 var(--space-5);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
.chip:hover { background: var(--navy); color: var(--cream); }

/* Service rows: name on the left, details on the right. */
/* No top rule on the list: the section title's rule already sits above it. */
.service {
  display: grid;
  gap: var(--space-4) var(--space-7);
  padding-block: var(--space-7);
  border-bottom: 1px solid var(--rule);
}
.service:first-child { padding-top: 0; }
.service__body { display: grid; gap: var(--space-4); align-content: start; }
.service__label {
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}

@media (min-width: 56.25em) {
  .service { grid-template-columns: 1fr 1.4fr; }
}

/* List with check marks. */
.checklist { display: grid; gap: var(--space-2); }
.checklist li { display: flex; gap: var(--space-3); align-items: baseline; }
.checklist svg {
  flex: none;
  width: 1em;
  height: 1em;
  transform: translateY(0.15em);
}

/* Monthly packages: platform tabs. Without JavaScript all six platforms are
   simply listed one after another (main.js turns them into tabs). */
.tabs__list {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-1) var(--space-1) var(--space-3);
  overflow-x: auto;
  scrollbar-width: thin;
}
.tabs__list[hidden] { display: none; }
.tab {
  flex: none;
  min-height: 2.75rem;
  padding: 0 var(--space-5);
  border: 1.5px solid var(--cream);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--cream);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.tab:hover { background: rgb(251 246 238 / 0.1); }
.tab[aria-selected="true"] { background: var(--cream); color: var(--navy); }

.rate-panel + .rate-panel { margin-top: var(--space-8); }
.rate-panel__title { margin-bottom: var(--space-5); }
.tabs--ready .rate-panel__title {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.tabs--ready .rate-panel + .rate-panel { margin-top: 0; }

.rate-cards { display: grid; gap: var(--space-4); }
.rate-card {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-card);
  background: var(--cream);
  color: var(--ink);
  --focus: var(--navy);
}
.rate-card__tier {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1;
}
.rate-card__price {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule);
}
.rate-card__amount {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1;
}
.rate-card__per { font-size: var(--step--1); }
.rate-card__plus {
  margin-top: var(--space-2);
  font-weight: 600;
}
.checklist--extra li { font-weight: 500; }

@media (min-width: 48em) {
  .rate-cards { grid-template-columns: repeat(3, 1fr); }
}

.includes {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--rule-on-navy);
}
.includes .checklist { gap: var(--space-2) var(--space-6); }
@media (min-width: 40em) { .includes .checklist { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .includes .checklist { grid-template-columns: repeat(3, 1fr); } }

.notes {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--rule-on-navy);
  border-radius: var(--radius-card);
  font-size: var(--step--1);
}
.notes strong { font-weight: 600; }

/* Project-based rates. */
.project-rates { display: grid; gap: var(--space-6); }
.project-rate {
  display: grid;
  gap: var(--space-2);
  padding-top: var(--space-5);
  border-top: 1.5px solid var(--navy);
}
.project-rate__price {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1;
}
.project-rate__extra { font-size: var(--step--1); }
@media (min-width: 48em) {
  .project-rates { grid-template-columns: repeat(3, 1fr); }
}

/* Branding comparison tables (on navy). */
.compare + .compare { margin-top: var(--space-8); }
.compare__title { margin-bottom: var(--space-5); }
.table-scroll { overflow-x: auto; }
.compare-table {
  width: 100%;
  min-width: 19rem;
  border-collapse: collapse;
  font-size: var(--step--1);
}
.compare-table th,
.compare-table td {
  padding: var(--space-3) var(--space-1);
  border-bottom: 1px solid var(--rule-on-navy);
  vertical-align: middle;
}
.compare-table thead th { vertical-align: bottom; border-bottom: 1.5px solid var(--cream); }
.compare-table tbody th { font-weight: 400; text-align: left; }
.compare-table td,
.compare-table thead th:not(:first-child) { text-align: center; width: 22%; }
.compare-table__tier {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
@media (min-width: 48em) {
  .compare-table__tier { font-size: var(--step-1); }
}
.compare-table__price { display: block; font-weight: 600; }
.compare-table svg { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: middle; }
.compare-table .no { opacity: 0.6; }

@media (min-width: 48em) {
  .compare-table { font-size: var(--step-0); }
  .compare-table th,
  .compare-table td { padding: var(--space-4) var(--space-4); }
}


/* 13. Contact page
   ========================================================================== */
/* Smaller than other display-2 headings on phones so "UNFORGETTABLE" fits. */
.contact-title { max-width: 14em; font-size: clamp(2.25rem, 0.6rem + 7.5vw, 6rem); }
.contact-script { margin-top: var(--space-5); }

.contact { padding-top: 0; }
.contact__grid { display: grid; gap: var(--space-7); align-items: start; }
.contact__form-wrap { display: grid; gap: var(--space-4); }
.form-intro { font-size: var(--step--1); }

@media (min-width: 56.25em) {
  /* The panel never gets narrower than 20rem; the form takes the rest. */
  .contact__grid { grid-template-columns: minmax(0, 1.5fr) minmax(20rem, 1fr); gap: var(--space-7) clamp(2rem, 4vw, 4rem); }
  .contact__details { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
}

/* Form */
.form { display: grid; gap: var(--space-5); margin-top: var(--space-3); }
.form__row { display: grid; gap: var(--space-5); }
@media (min-width: 40em) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: var(--space-2); align-content: start; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.req { color: var(--navy); }
.field__optional { font-weight: 400; opacity: 0.8; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid rgb(44 80 123 / 0.4);
  border-radius: 0.75rem;
  background: var(--cream);
  color: var(--ink);
  font-size: 1rem; /* 16px or more stops phones zooming in on tap */
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--navy); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgb(44 80 123 / 0.25);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgb(163 50 42 / 0.2); }

/* Custom arrow for select boxes (drawn with CSS, no image needed). */
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; }
.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field__error {
  color: var(--error);
  font-size: var(--step--1);
  font-weight: 600;
}

/* Spam trap: moved off screen (not display:none, which some bots skip). */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.form__status {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-card);
  border: 1.5px solid currentColor;
  font-weight: 500;
}
.form__status:focus { outline: none; }
.form__status:empty { display: none; }
.form__status--success { color: var(--navy); background: rgb(44 80 123 / 0.08); }
.form__status--error { color: var(--error); background: rgb(163 50 42 / 0.06); }
.form__status a { font-weight: 600; }

/* Contact details panel */
/* container-type lets the title and sign-off size themselves to the panel's
   own width (cqi units), so they always fit inside the padding. */
.contact__details {
  container-type: inline-size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  border-radius: calc(var(--radius-card) * 1.6);
  overflow: hidden;
}
.contact__details .display-3 { font-size: clamp(2rem, 15cqi, 3.25rem); }
.contact-list { display: grid; gap: var(--space-4); }
.contact-list li {
  display: grid;
  gap: var(--space-1);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--rule-on-navy);
}
.contact-list__name {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}
.contact-list .text-link { overflow-wrap: break-word; } /* the email breaks after the @ (see <wbr> in contact.html) */
.contact__sign-off { font-size: clamp(1.75rem, 11cqi, 2.75rem); white-space: nowrap; }
.contact-list li:last-child { padding-bottom: 0; border-bottom: 0; }


/* 14. 404 page
   ========================================================================== */
.not-found { min-height: 60vh; }
.not-found .lead { margin-top: var(--space-5); }


/* 15. Photo-in-type titles (Services and Contact)
   ========================================================================== */
/* Letters filled with the navy-tinted trees photo (made by tools/optimize-images.py).
   The navy background color shows until the photo loads. */
.photo-type {
  color: transparent;
  background: var(--navy) url("../assets/web/photo-hero-trees-navy-1200.webp") center 55% / cover;
  -webkit-background-clip: text;
  background-clip: text;
}
