/* ==========================================================================
   ThinkinDigital — stylesheet
   One file for the whole site.

   1. Settings     colours, fonts, sizes (change the look here)
   2. Fonts
   3. Base
   4. Layout
   5. Buttons & links
   6. Header & menu
   7. Footer
   8. Page sections (hero, quotes, services, work, process, etc.)
   9. Contact form
   10. Placeholders
   ========================================================================== */


/* 1. SETTINGS ============================================================== */

:root {
  /* Colours */
  --color-paper: #ffffff;        /* page background */
  --color-surface: #f3f4f8;      /* light grey section background */
  --color-ink: #1d2340;          /* text and buttons (blue-black ink) */
  --color-ink-muted: #545a75;    /* secondary text */
  --color-rule: #d9dce7;         /* thin lines */
  --color-highlight: #ffe45e;    /* yellow highlighter */
  --color-correction: #d0243a;   /* red pen: headline strike + form errors only */
  --color-on-ink: #ffffff;       /* text on dark backgrounds */
  --color-on-ink-muted: #c3c7da;

  /* Fonts */
  --font-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Text sizes (they grow with the screen) */
  --text-display: clamp(3.25rem, 1.4rem + 8vw, 8.5rem);
  --text-h1: clamp(2.25rem, 1.5rem + 4.2vw, 5rem);
  --text-h2: clamp(2rem, 1.35rem + 2.6vw, 3.5rem);
  --text-h3: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --text-lead: clamp(1.25rem, 1.1rem + 0.55vw, 1.5rem);
  --text-body: 1.125rem;
  --text-small: 1rem;
  --text-caption: 0.875rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --section-space: clamp(4rem, 2.5rem + 6vw, 8rem);

  /* Layout */
  --container: 76rem;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --margin-col: 14rem;
  --measure: 40rem;

  /* Shape and motion */
  --radius-sm: 4px;
  --radius-md: 8px;
  --border: 1px solid var(--color-rule);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}


/* 2. FONTS (files are in /fonts) =========================================== */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-display: swap; src: url("../fonts/bricolage-grotesque-500.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("../fonts/bricolage-grotesque-700.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("../fonts/bricolage-grotesque-800.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-hyperlegible-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/atkinson-hyperlegible-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-hyperlegible-700.woff2") format("woff2"); }


/* 3. BASE ================================================================== */

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

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

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: var(--text-h1); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: var(--text-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--text-h3); }

p { margin: 0 0 var(--space-3); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--color-ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--color-highlight); color: var(--color-ink); }

.lead { font-size: var(--text-lead); line-height: 1.5; }
.muted { color: var(--color-ink-muted); }

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

.skip-link {
  position: absolute; left: var(--space-3); top: -100px; z-index: 100;
  padding: var(--space-2) var(--space-3);
  background: var(--color-highlight); color: var(--color-ink);
  font-weight: 700; border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-3); }


/* 4. LAYOUT ================================================================ */

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

/* A section: margin note on the left, content on the right (on wide screens) */
.section { padding-block: var(--section-space); }
.section--surface { background: var(--color-surface); }
.section--ink { background: var(--color-ink); color: var(--color-on-ink); }
.section--ink :focus-visible { outline-color: var(--color-highlight); }

.section__grid { display: grid; gap: var(--space-3); }
.section__grid > * { min-width: 0; }
.section__title { max-width: 18ch; margin-bottom: var(--space-5); }

.note {
  margin: 0;
  max-width: 22rem;
  font-size: var(--text-small);
  font-style: italic;
  line-height: 1.45;
  color: var(--color-ink-muted);
}
.note::before {
  content: ""; display: block;
  width: 2rem; height: 3px; margin-bottom: var(--space-2);
  background: currentColor;
}
.section--ink .note { color: var(--color-on-ink-muted); }

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

/* Title block at the top of inner pages */
.page-intro {
  padding-top: clamp(3rem, 2rem + 5vw, 7rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  border-bottom: var(--border);
}
.page-intro h1 { max-width: 16ch; }
.page-intro .lead { margin-top: var(--space-5); max-width: 42rem; }
.page-intro .note::before { display: none; }

@media (min-width: 64rem) {
  .section__grid { grid-template-columns: var(--margin-col) minmax(0, 1fr); gap: var(--space-6); }
  .section__margin { padding-top: 0.6rem; }
  .section__margin .note { position: sticky; top: 7rem; }
  .page-intro .section__margin { padding-top: 1.2rem; }
}


/* 5. BUTTONS & LINKS ======================================================= */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: var(--color-on-ink);
  font: 700 var(--text-small) / 1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.button:hover { background: var(--color-highlight); color: var(--color-ink); }

.button--secondary { background: transparent; color: var(--color-ink); }

.button--on-dark { background: var(--color-highlight); border-color: var(--color-highlight); color: var(--color-ink); }
.button--on-dark:hover { background: var(--color-paper); border-color: var(--color-paper); }

.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

.text-link {
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  padding-block: var(--space-1);
}
.text-link:hover { background: var(--color-highlight); }


/* 6. HEADER & MENU ========================================================= */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.96);
  border-bottom: var(--border);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.5rem; gap: var(--space-4);
}

.logo {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 800;
  letter-spacing: -0.04em; text-decoration: none;
}
.logo span { font-weight: 500; }
.logo img { height: 2.5rem; width: auto; }

.menu-button {
  min-height: 2.75rem; padding: 0 var(--space-3);
  border: 2px solid var(--color-ink); border-radius: var(--radius-sm);
  background: transparent; color: var(--color-ink);
  font: 700 var(--text-small) / 1 var(--font-body);
  cursor: pointer;
}
.menu-button[aria-expanded="true"] { background: var(--color-ink); color: var(--color-on-ink); }

/* Phones: menu drops down when the button is pressed */
.site-nav { display: none; }
.site-nav.is-open {
  display: block;
  position: absolute; inset: 100% 0 auto 0;
  padding: var(--space-3) var(--gutter) var(--space-5);
  background: var(--color-paper);
  border-bottom: var(--border);
  box-shadow: 0 24px 32px -24px rgb(29 35 64 / 0.3);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.site-nav a { display: block; padding: var(--space-2) 0; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; }
.site-nav .nav-cta {
  display: inline-flex; align-items: center;
  margin-top: var(--space-3); min-height: 3rem; padding: 0 var(--space-4);
  background: var(--color-ink); color: var(--color-on-ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: var(--text-small);
}
.site-nav .nav-cta:hover { background: var(--color-highlight); color: var(--color-ink); }

/* Laptops: normal horizontal menu */
@media (min-width: 56rem) {
  .menu-button { display: none; }
  .site-nav, .site-nav.is-open { display: block; position: static; padding: 0; border: 0; box-shadow: none; background: none; }
  .site-nav ul { flex-direction: row; align-items: center; gap: var(--space-4); }
  .site-nav a { font-family: var(--font-body); font-size: var(--text-small); }
  .site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
  .site-nav .nav-cta { margin: 0; min-height: 2.75rem; padding: 0 var(--space-3); }
  .site-nav .nav-cta:hover { text-decoration: none; }
}


/* 7. FOOTER ================================================================ */

.site-footer { background: var(--color-ink); color: var(--color-on-ink); padding-bottom: var(--space-5); }
.site-footer :focus-visible { outline-color: var(--color-highlight); }

.footer-closing {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--section-space); padding-bottom: var(--space-7);
  border-bottom: 1px solid rgb(255 255 255 / 0.18);
}
.footer-closing p {
  margin: 0; max-width: 14ch;
  font-family: var(--font-display); font-size: var(--text-h1); font-weight: 800;
  line-height: 1.02; letter-spacing: -0.035em;
}

.footer-columns { display: grid; gap: var(--space-6); padding-block: var(--space-7); }
.footer-tagline { margin-top: var(--space-3); color: var(--color-on-ink-muted); font-size: var(--text-small); max-width: 26rem; }

/* The old site's navigation that read as a sentence */
.footer-sentence {
  max-width: 18ch;
  font-family: var(--font-display); font-size: var(--text-h3); font-weight: 700;
  line-height: 1.35; letter-spacing: -0.02em;
}
.footer-sentence a { text-decoration: none; margin-right: 0.3em; }
.footer-sentence a:hover { text-decoration: underline; text-decoration-color: var(--color-highlight); text-decoration-thickness: 3px; }

.footer-heading { margin: 0 0 var(--space-3); font-family: var(--font-body); font-size: var(--text-small); font-weight: 700; letter-spacing: 0; color: var(--color-on-ink-muted); }
.footer-contact { display: grid; gap: var(--space-2); font-style: normal; font-size: var(--text-small); }
.footer-contact span { display: block; color: var(--color-on-ink-muted); }

.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid rgb(255 255 255 / 0.18);
  font-size: var(--text-caption); color: var(--color-on-ink-muted);
}
.footer-legal p { margin: 0; }

@media (min-width: 48rem) { .footer-columns { grid-template-columns: 1.2fr 1fr 1fr; } }


/* 8. PAGE SECTIONS ========================================================= */

/* --- Homepage hero: "Websites for ~~users~~ people." --- */
.hero { padding-top: clamp(3rem, 1.5rem + 7vw, 9rem); padding-bottom: var(--section-space); border-bottom: var(--border); overflow: hidden; }
.hero h1 { font-size: var(--text-display); line-height: 0.98; letter-spacing: -0.05em; max-width: none; }
.hero__line { display: block; }
.hero__struck { position: relative; display: inline-block; color: var(--color-ink-muted); font-weight: 500; }
.hero__pen { position: absolute; left: -4%; top: 30%; width: 108%; height: 0.32em; overflow: visible; pointer-events: none; }
.hero__pen path {
  fill: none; stroke: var(--color-correction); stroke-width: 4.5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: pen-strike 520ms var(--ease) 500ms forwards;
}
.hero__correction { display: inline-block; animation: pen-write 420ms var(--ease) 1000ms both; }
@keyframes pen-strike { to { stroke-dashoffset: 0; } }
@keyframes pen-write { from { opacity: 0; transform: translateY(0.12em) rotate(-2deg); } to { opacity: 1; transform: none; } }

.hero .section__grid { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.hero .lead { max-width: 36rem; }

/* --- "Have you ever felt this?" quotes --- */
.quotes { display: grid; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.quotes li {
  max-width: 24ch;
  font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  font-weight: 500; line-height: 1.15; letter-spacing: -0.025em;
}
@media (min-width: 48rem) { .quotes li:nth-child(even) { margin-left: clamp(2rem, 10vw, 9rem); } }

.answer { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 3px solid var(--color-ink); max-width: 40rem; }
.answer__title { margin: 0; font-family: var(--font-display); font-size: var(--text-h2); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
.answer__follow { margin-top: var(--space-2); font-size: var(--text-lead); color: var(--color-ink-muted); }

/* --- Services: homepage rows --- */
.service-rows { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--color-ink); }
.service-rows a {
  display: grid; gap: var(--space-1);
  padding: var(--space-4) 0; border-bottom: var(--border); text-decoration: none;
  transition: background-color 150ms var(--ease), padding 300ms var(--ease);
}
.service-rows a:hover { background: var(--color-highlight); padding-inline: var(--space-3); }
.service-name { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.service-problem { font-size: var(--text-lead); font-style: italic; line-height: 1.4; color: var(--color-ink-muted); }
.service-rows a:hover .service-problem { color: var(--color-ink); }
@media (min-width: 48rem) {
  .service-rows a { grid-template-columns: 18rem 1fr; align-items: baseline; gap: var(--space-5); }
  .service-name { white-space: nowrap; }
}

/* --- Services: full list on what-we-do.html --- */
.service { display: grid; gap: var(--space-3); padding-block: var(--space-6); border-top: 3px solid var(--color-ink); scroll-margin-top: 6rem; }
.service:first-child { padding-top: var(--space-4); }
.service h2 { font-size: var(--text-h1); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.service .service-problem { margin-bottom: var(--space-4); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.tags li { padding: var(--space-1) var(--space-3); border: var(--border); border-radius: 999px; font-size: var(--text-caption); font-weight: 700; }
@media (min-width: 48rem) { .service { grid-template-columns: 18rem 1fr; gap: var(--space-5); } }

/* --- Image frames (with a simple browser bar for website screenshots) --- */
.frame { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--color-paper); }
.frame--browser { border: var(--border); box-shadow: 0 1px 0 var(--color-rule), 0 24px 48px -32px rgb(29 35 64 / 0.35); }
.frame__bar { display: flex; align-items: center; height: 2.25rem; padding: 0 var(--space-3); border-bottom: var(--border); font-size: var(--text-caption); color: var(--color-ink-muted); }
.frame__media { position: relative; aspect-ratio: 16 / 10; background: var(--color-surface); }
.frame__media--portrait { aspect-ratio: 4 / 5; }
.frame__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.frame__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; padding: var(--space-4); text-align: center;
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgb(29 35 64 / 0.045) 10px 20px), var(--color-surface);
  color: var(--color-ink-muted);
  font-family: var(--font-display); font-size: clamp(1rem, 0.8rem + 1vw, 1.5rem); font-weight: 700;
}

/* --- Work list --- */
.work-list { display: grid; gap: clamp(3rem, 2rem + 4vw, 6rem); list-style: none; margin: 0; padding: 0; }
.work-item { position: relative; display: grid; gap: var(--space-4); align-items: center; }
.work-item__image { display: block; transition: transform 300ms var(--ease); }
.work-item:hover .work-item__image { transform: translateY(-4px); }
.work-item__meta { margin: 0 0 var(--space-2); font-size: var(--text-caption); font-weight: 700; color: var(--color-ink-muted); }
.work-item h3 { font-size: var(--text-h2); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.work-item h3 a { text-decoration: none; }
.work-item h3 a::after { content: ""; position: absolute; inset: 0; } /* makes the whole tile clickable */
.work-item__title { margin-top: var(--space-3); font-size: var(--text-lead); line-height: 1.4; }
.work-item__summary { margin-top: var(--space-3); color: var(--color-ink-muted); }
.work-item__more { display: inline-block; margin-top: var(--space-4); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.work-item:hover .work-item__more { background: var(--color-highlight); }
@media (min-width: 56rem) {
  .work-item { grid-template-columns: 7fr 5fr; gap: var(--space-6); }
  .work-item--flip { grid-template-columns: 5fr 7fr; }
  .work-item--flip .work-item__image { order: 2; }
}
.work-page-list { padding-block: var(--section-space); }

/* --- Case study pages --- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--space-4); margin: var(--space-6) 0 0; padding-top: var(--space-4); border-top: var(--border); max-width: 52rem; }
.facts dt { font-size: var(--text-caption); font-weight: 700; color: var(--color-ink-muted); }
.facts dd { margin: var(--space-1) 0 0; }
.case-hero { padding-top: var(--space-7); }
.story .section { padding-block: var(--space-6); }
.story .section:first-child { padding-top: var(--section-space); }
.story .section:last-child { padding-bottom: var(--section-space); }
.story p { font-size: var(--text-lead); line-height: 1.55; max-width: 38rem; }
.gallery { display: grid; gap: var(--space-5); }
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.next-project { display: block; padding-block: var(--section-space); border-top: var(--border); text-decoration: none; }
.next-project__label { display: block; font-weight: 700; color: var(--color-ink-muted); }
.next-project__name { display: block; margin-top: var(--space-2); font-family: var(--font-display); font-size: var(--text-h1); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.next-project:hover .next-project__name { text-decoration: underline; text-decoration-thickness: 4px; text-decoration-color: var(--color-highlight); }

/* --- Process steps --- */
.steps { display: grid; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 3rem 1fr; column-gap: var(--space-3); padding-top: var(--space-4); border-top: var(--border); }
.step__number { grid-row: span 2; font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; line-height: 0.9; color: var(--color-ink-muted); }
.step h3 { margin-bottom: var(--space-2); }
.step p { color: var(--color-ink-muted); }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); } }

/* --- "Small, but mighty" points and beliefs --- */
.points { display: grid; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.points h3 { margin-bottom: var(--space-2); max-width: 22ch; }
@media (min-width: 48rem) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.beliefs { display: grid; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.beliefs li { padding-top: var(--space-4); border-top: 3px solid var(--color-ink); }
.beliefs h3 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); letter-spacing: -0.025em; max-width: 24ch; margin-bottom: var(--space-3); }

/* --- Testimonials --- */
.testimonials { display: grid; gap: var(--space-6); }
@media (min-width: 48rem) { .testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.testimonial { margin: 0; padding-top: var(--space-4); border-top: 3px solid var(--color-ink); }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-family: var(--font-display); font-weight: 500; font-size: var(--text-h3); line-height: 1.3; letter-spacing: -0.015em; max-width: 34ch; }
.testimonial figcaption { display: grid; margin-top: var(--space-4); font-size: var(--text-small); color: var(--color-ink-muted); }
.testimonial figcaption strong { color: var(--color-ink); }

/* --- Team --- */
.team { display: grid; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.team h3 { margin-top: var(--space-4); }
.team__role { margin-top: var(--space-1); font-weight: 700; color: var(--color-ink-muted); }
@media (min-width: 40rem) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }


/* 9. CONTACT FORM ========================================================== */

.contact-layout { display: grid; gap: var(--space-7); padding-block: var(--section-space); }
@media (min-width: 64rem) { .contact-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--space-8); } }

.form { display: grid; gap: var(--space-4); max-width: 44rem; }
.form__row { display: grid; gap: var(--space-4); }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 700; }
.field .optional { font-weight: 400; color: var(--color-ink-muted); }
.field__hint { margin: 0; font-size: var(--text-caption); color: var(--color-ink-muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem;
  border: 2px solid var(--color-ink); border-radius: var(--radius-sm);
  background: var(--color-paper); color: var(--color-ink);
  font: inherit; font-size: var(--text-small);
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 3px solid var(--color-highlight); outline-offset: 0; box-shadow: 0 0 0 5px var(--color-ink);
}
.field--invalid input, .field--invalid textarea { border-color: var(--color-correction); }
.field__error { margin: 0; font-size: var(--text-caption); font-weight: 700; color: var(--color-correction); }
.field__error:empty { display: none; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[type="submit"] { justify-self: start; min-height: 3.25rem; padding: 0 var(--space-5); font-size: var(--text-body); }
.form button[disabled] { opacity: 0.6; cursor: progress; }

.form-message { padding: var(--space-5); border-left: 6px solid var(--color-ink); border-radius: var(--radius-md); background: var(--color-surface); max-width: 44rem; }
.form-message--error { border-left-color: var(--color-correction); }
.form-message:focus { outline: none; }
.form-message h2 { font-size: var(--text-h3); margin-bottom: var(--space-2); }

.contact-direct { align-self: start; padding-top: var(--space-4); border-top: 3px solid var(--color-ink); }
.contact-direct h2 { font-size: var(--text-h3); margin-bottom: var(--space-4); }
.contact-direct .big { font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); font-weight: 700; word-break: break-word; }
.contact-direct address { display: grid; margin-top: var(--space-5); font-style: normal; color: var(--color-ink-muted); }
.contact-direct address strong { color: var(--color-ink); }


/* 10. PLACEHOLDERS ========================================================= */
/* Text like [CLIENT NAME] waiting for real content.
   Search the HTML files for class="placeholder" to find them all. */

.placeholder {
  padding: 0 0.2em;
  background: repeating-linear-gradient(-45deg, transparent 0 6px, rgb(29 35 64 / 0.07) 6px 12px);
  text-decoration: underline dashed 1px;
  text-underline-offset: 0.25em;
  color: var(--color-ink-muted);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.site-footer .placeholder, .section--ink .placeholder { color: var(--color-on-ink-muted); }


/* Visitors who prefer less motion get no animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
