/* TeamCore direction "Evergreen ledger" (approved by Jarek 30 Oct 2026; source tmp/design/teamcore-2026-10-30/mockup/styles.css). Dev preview.
   Deliberately unlike Véurr: no navy #23356d, no Fraunces/Figtree/Roboto.
   Fonts: Instrument Serif 400 (display) + Instrument Sans variable (text), OFL 1.1, latin subset, 51 KB total. Files + OFL licences in /assets/fonts/ (same origin). */

@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-latin-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-latin-wght.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
/* Metric-matched fallbacks (measured in Chromium against the real files, 30 Oct 2026) */
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 103.2%; ascent-override: 94%; descent-override: 24.2%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Serif Fallback"; src: local("Times New Roman"), local("Times"), local("Liberation Serif"); size-adjust: 84.7%; ascent-override: 116.9%; descent-override: 36.6%; line-gap-override: 0%; }

:root {
  /* colour (contrast computed, see BUILD-SPEC.md) */
  --ink: #17211e;          /* body text: 15.55 on paper, 16.50 on white */
  --muted: #4a5752;        /* secondary: 7.13 on paper, 6.47 on sand */
  --evergreen: #0f4a40;    /* primary: white on it 10.13 (AAA) */
  --evergreen-deep: #0b3a32; /* hover: white 12.61 */
  --forest: #12302b;       /* dark section bg: white 14.16 */
  --night: #0d2622;        /* footer bg: white 15.94 */
  --copper: #9a4320;       /* eyebrow/numerals only: 6.19 on paper, 5.62 on sand */
  --mint: #d7e6df;         /* text on forest: 10.97 */
  --mint-muted: #c8d9d1;   /* secondary on forest 9.64, on night 10.86 */
  --apricot: #e9b48a;      /* accents/focus on dark: 7.66 on forest */
  --paper: #faf8f3;
  --white: #ffffff;
  --sand: #f1ede3;
  --line: #ddd6c7;         /* decorative rules only */
  --field: #6f7d77;        /* form control borders: 4.31 on white (>=3 UI) */

  --font-display: "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;
  --font-text: "Instrument Sans", "Instrument Sans Fallback", Arial, sans-serif;
  --radius: 6px;
  --wrap: 1160px;
  --section: clamp(64px, 5vw + 40px, 112px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.6; font-feature-settings: "ss01" 0; text-rendering: optimizeLegibility; }
@media (min-width: 960px) { body { font-size: 1.125rem; } }

h1, h2 { font-family: var(--font-display); font-weight: 400; color: var(--ink); letter-spacing: -0.01em; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 1.4rem + 4.6vw, 4.75rem); line-height: 1.02; }
h2 { font-size: clamp(2.125rem, 1.5rem + 2.2vw, 3.25rem); line-height: 1.06; }
h3 { font-family: var(--font-text); font-weight: 600; font-size: 1.125rem; line-height: 1.3; margin: 0 0 .4em; color: var(--ink); letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
a { color: var(--evergreen); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--apricot); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .wrap { padding: 0 40px; } }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--white); padding: 10px 14px; z-index: 20; }

/* header */
.site-header { position: relative; z-index: 10; background: rgba(250,248,243,.96); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-family: var(--font-text); font-size: 1.375rem; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand span { font-weight: 700; color: var(--evergreen); }
/* nav: inline list from 1024px; below that a <details> disclosure (no JavaScript; CSP script-src 'none') */
.main-nav { display: flex; align-items: center; gap: 12px 22px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-desktop { display: none; }
nav a { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 500; padding: 10px 0; display: inline-block; }
nav a:hover { color: var(--evergreen); text-decoration: underline; }
nav a[aria-current="page"]:not(.btn) { color: var(--evergreen); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-mobile summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--evergreen); border-radius: var(--radius); color: var(--evergreen); font-weight: 600; font-size: 1rem; cursor: pointer; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::before { content: "" / ""; width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.nav-mobile[open] summary { background: var(--evergreen); color: var(--white); }
.nav-mobile ul { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(23,33,30,.25); padding: 8px 20px 16px; }
.nav-mobile li { border-top: 1px solid var(--line); }
.nav-mobile li:first-child { border-top: 0; }
.nav-mobile a { display: block; padding: 12px 0; font-size: 1.0625rem; }
@media (min-width: 760px) { .nav-mobile ul { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: center; }
  .nav-mobile { display: none; }
}
@media (max-width: 379px) { .main-nav { gap: 8px; } .nav-cta.btn { padding: 0 12px; } .nav-mobile summary { padding: 0 10px; } .brand { font-size: 1.25rem; } }
@media (min-width: 960px) { .site-header { position: sticky; top: 0; } }

/* buttons: AAA (white on evergreen 10.13) */
button { font-family: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; background: var(--evergreen); color: var(--white); text-decoration: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: .005em; border-radius: var(--radius); border: 1.5px solid var(--evergreen); transition: background-color .15s; }
.btn:hover { background: var(--evergreen-deep); border-color: var(--evergreen-deep); text-decoration: none; }
nav a.btn { color: var(--white); padding: 0 18px; }
.btn-small { min-height: 44px; font-size: 1rem; }
.btn-ghost { background: transparent; color: var(--evergreen); }
.btn-ghost:hover { background: var(--evergreen); color: var(--white); }
.btn[disabled] { background: #e7e3da; border-color: #e7e3da; color: #4a5752; cursor: not-allowed; }

/* hero */
.hero { position: relative; background-color: var(--paper); padding: clamp(40px, 6vw, 96px) 0 clamp(48px, 6vw, 104px); border-bottom: 1px solid var(--line); overflow: hidden; }
/* ledger rules: decorative, fade out behind the copy so text sits on clean paper */
.hero::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(15,74,64,.07) 39px 40px); -webkit-mask-image: linear-gradient(to left, #000 0%, #000 30%, transparent 62%); mask-image: linear-gradient(to left, #000 0%, #000 30%, transparent 62%); pointer-events: none; }
@media (max-width: 959px) { .hero::before { -webkit-mask-image: linear-gradient(to top, #000 0%, #000 25%, transparent 45%); mask-image: linear-gradient(to top, #000 0%, #000 25%, transparent 45%); } }
.hero .wrap { position: relative; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }
.eyebrow { font-family: var(--font-text); text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem; font-weight: 600; color: var(--copper); margin-bottom: 18px; max-width: 40ch; }
.lead { font-size: 1.1875rem; line-height: 1.55; max-width: 44ch; color: var(--ink); }
@media (min-width: 960px) { .lead { font-size: 1.3125rem; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 559px) { .cta-row .btn { flex: 1 1 100%; } }
.hero-photo { margin: 0; position: relative; max-width: 460px; justify-self: center; width: 100%; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 18%; border-radius: var(--radius); position: relative; z-index: 1; }
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--copper); border-radius: var(--radius); }
@media (max-width: 959px) { .hero-photo { max-width: 340px; justify-self: start; margin-right: 18px; } .hero-photo img { aspect-ratio: 1 / 1; } }

/* sections */
.section { padding: var(--section) 0; }
.sand { background: var(--sand); }
.lead-sm { font-size: 1.1875rem; max-width: 60ch; }
.more { font-weight: 600; margin: 24px 0 0; }
.more a { text-decoration-thickness: 1.5px; }
.more.spaced { margin-top: 40px; }

/* inner-page hero: same paper + ledger rules as the home hero, copy only */
.page-hero { padding: clamp(40px, 5vw, 80px) 0 clamp(40px, 5vw, 72px); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-bottom: 0; }

/* home: service overview cards */
.overview-grid { display: grid; gap: 24px; margin: 40px 0 32px; }
@media (min-width: 760px) { .overview-grid { grid-template-columns: 1fr 1fr; } }
.overview-card { background: var(--white); border-top: 4px solid var(--evergreen); border-radius: var(--radius); padding: 28px 24px; }
@media (min-width: 960px) { .overview-card { padding: 36px 36px 32px; } }
.overview-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.overview-card > p:not(.more) { color: var(--muted); }
.overview-card ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.overview-card li { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 500; }

/* split: heading left, body right (about, faq share the same 4/7 grid) */
.split { display: grid; gap: 8px; }
@media (min-width: 960px) { .split { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; } }
.split-body > p { max-width: 64ch; }
/* about */
.bio { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.bio .avatar { width: 72px; }
@media (min-width: 760px) { .bio { grid-template-columns: 88px 1fr; gap: 28px; } .bio .avatar { width: 100%; } }
.avatar { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border-radius: 50%; display: block; }
.bio h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; margin-bottom: .5em; }
.bio p { color: var(--ink); max-width: 62ch; }

/* services: ruled, numbered, no boxes */
.services-list { list-style: none; counter-reset: svc; margin: 40px 0 48px; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 32px; }
@media (min-width: 640px) { .services-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .services-list { grid-template-columns: repeat(4, 1fr); row-gap: 8px; } }
.services-list li { counter-increment: svc; border-top: 1px solid rgba(23,33,30,.22); padding: 20px 0 24px; }
.services-list li::before { content: counter(svc, decimal-leading-zero) / ""; display: block; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--copper); margin-bottom: 14px; }
.services-list p { margin: 0; color: var(--muted); }
.facts { display: grid; gap: 16px; }
@media (min-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } }
.section:not(.sand) .facts > p { background: var(--sand); }
.facts > p { margin: 0; background: var(--white); border-left: 3px solid var(--evergreen); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }

/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 40px 0 0; display: grid; gap: 28px; }
.steps li { counter-increment: s; position: relative; padding-left: 64px; }
.steps li::before { content: counter(s) / ""; position: absolute; left: 0; top: -4px; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--evergreen); color: var(--evergreen); background: var(--white); font-family: var(--font-display); font-size: 1.5rem; display: grid; place-items: center; z-index: 1; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 899px) { .steps li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 40px; bottom: -32px; border-left: 1.5px dashed var(--line); } }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps li { padding-left: 0; padding-top: 68px; }
  .steps li::before { top: 0; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 52px; right: -24px; top: 22px; border-top: 1.5px dashed var(--line); }
}

/* security: the trust centrepiece */
.dark { background: var(--forest); color: var(--mint); background-image: radial-gradient(1200px 500px at 85% -10%, rgba(233,180,138,.10), transparent 60%); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark .eyebrow { color: var(--apricot); }
.dark a { color: var(--apricot); }
.page-dark h1 { max-width: 16ch; }
.dark .more { margin-top: 32px; }
.dark .lead-sm { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.25; color: var(--white); max-width: 30ch; margin-bottom: 48px; }
.security-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: rgba(215,230,223,.18); border: 1px solid rgba(215,230,223,.18); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .security-grid { grid-template-columns: 1fr 1fr; } }
.sec-item { background: var(--forest); padding: 28px 24px 26px; }
@media (min-width: 960px) { .sec-item { padding: 36px 40px 34px; } }
.sec-icon { color: var(--apricot); display: block; margin-bottom: 16px; }
.sec-item h3 { font-size: 1.1875rem; margin-bottom: .75em; }
.sec-item p { position: relative; padding-left: 28px; margin: 0 0 .6em; color: var(--mint); }
.sec-item p:last-child { margin-bottom: 0; }
.sec-item p::before { content: "" / ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--apricot); border-bottom: 2px solid var(--apricot); transform: rotate(-45deg); }

/* why */
.why-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; }
.why-list li { padding: 24px 0; border-top: 1px solid var(--line); }
.why-list p { margin: 0; color: var(--muted); }
.why-list h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.1; margin-bottom: .45em; }
@media (min-width: 900px) {
  .why-list { grid-template-columns: repeat(3, 1fr); }
  .why-list li { border-top: 0; border-left: 1px solid var(--line); padding: 4px 36px 4px; }
  .why-list li:first-child { border-left: 0; padding-left: 0; }
}

/* faq */
.faq-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; } .faq-grid h2 { position: sticky; top: 104px; } }
.faq-list { border-top: 1px solid rgba(23,33,30,.22); }
.faq-list details { border-bottom: 1px solid rgba(23,33,30,.22); }
.faq-list summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 1.125rem; color: var(--ink); padding: 20px 44px 20px 0; position: relative; min-height: 48px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+" / ""; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--evergreen); color: var(--evergreen); display: grid; place-items: center; font-size: 1.25rem; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "\2212" / ""; background: var(--evergreen); color: var(--white); }
.faq-list summary:hover { color: var(--evergreen); }
.faq-list details p { margin: 0 0 22px; max-width: 60ch; color: var(--ink); }

/* contact + enquiry */
.contact { background: var(--paper); }
.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 6fr; gap: 72px; } }
.contact-copy > p { font-size: 1.1875rem; max-width: 36ch; }
.contact-page .contact-copy h1 { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4rem); }
.cta-band { border-top: 1px solid var(--line); }
@media (min-width: 960px) { .cta-band .contact-grid { align-items: center; } }
.cta-band .contact-list { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; font-size: 1rem; color: var(--muted); }
.contact-list li { display: grid; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list a { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--evergreen); text-decoration: none; line-height: 1.25; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.enquiry-preview { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--evergreen); border-radius: var(--radius); padding: 28px 22px; box-shadow: 0 1px 2px rgba(23,33,30,.04), 0 12px 32px -12px rgba(23,33,30,.18); }
@media (min-width: 760px) { .enquiry-preview { padding: 36px 36px 32px; } }
.enquiry-preview h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 1.1; }
.preview-notice { background: var(--sand); color: var(--ink); border-left: 3px solid var(--evergreen); padding: 10px 14px; border-radius: 4px; font-size: .9375rem; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
legend { font-weight: 600; font-size: 1rem; color: var(--evergreen); padding: 0; margin-bottom: 10px; }
label { display: block; font-weight: 500; font-size: 1rem; margin: 14px 0 6px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--field); border-radius: 4px; background: var(--white); color: var(--ink); }
fieldset[disabled] input, fieldset[disabled] select, fieldset[disabled] textarea { background: #f6f4ef; }
.hint { font-size: .9375rem; color: var(--muted); margin: 0 0 6px; }
.enquiry-preview .btn { width: 100%; margin-top: 4px; }

/* footer */
.site-footer { background: var(--night); color: var(--mint-muted); padding: 56px 0 40px; font-size: 1rem; }
.site-footer a { color: var(--white); }
.site-footer strong { color: var(--white); }
.footer-grid { display: grid; gap: 4px 48px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > .footer-brand { grid-column: 1 / -1; } }
.footer-brand { font-size: 1.1875rem; color: var(--mint); padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid rgba(215,230,223,.18); }
.footer-brand strong { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; margin-right: 4px; }
.footer-legal { font-size: 1rem; line-height: 1.55; color: var(--mint-muted); }
.footer-nav { list-style: none; padding: 0; margin: 0 0 1em; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-content: start; }
.footer-nav a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

/* privacy / long-form */
.prose { max-width: 72ch; }
.prose h1 { margin-top: .2em; }
.prose h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem); margin-top: 1.6em; padding-top: .8em; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--copper); }
