:root {
  --paper: #f7f4ef;
  --cream: #fbf8f3;
  --white: #ffffff;
  --charcoal-deep: #202528;
  --charcoal: #303438;
  --charcoal-soft: #4d555d;
  --ink: #1f2529;
  --muted: #66707a;
  --gold: #c99348;
  --gold-dark: #9f6d2f;
  --gold-pale: #f3e2c8;
  --sage-pale: #e9eeeb;
  --line: rgba(48, 52, 56, 0.12);
  --shadow: 0 30px 70px rgba(32, 37, 40, 0.16);
  --shadow-soft: 0 18px 48px rgba(32, 37, 40, 0.09);
  --radius: 26px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -50px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--white);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }
.section { padding: 96px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(48, 52, 56, 0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
}
.brand img { width: 230px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav > a {
  position: relative;
  text-decoration: none;
  color: var(--charcoal);
  font-weight: 650;
}
.site-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  transition: transform 180ms ease;
}
.site-nav > a:hover::after,
.site-nav > a.active::after { transform: scaleX(1); }

.button,
.button-small,
.button-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #ddb06a);
  color: var(--charcoal-deep);
  font-weight: 780;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(201, 147, 72, 0.2);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.button:hover,
.button-small:hover,
.button-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(201, 147, 72, 0.25);
}
.button-small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.button-full { width: 100%; }
.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: none;
}
.text-link.light { color: var(--white); }
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--charcoal);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--gold-dark);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}
.section-kicker.light { color: #efd7b0; }

.hero {
  padding: 0;
  background: var(--charcoal-deep);
}
.hero-media {
  position: relative;
  min-height: 680px;
  background-image: url('https://stanmathews.co.uk/background1.png');
  background-size: cover;
  background-position: center center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(25, 31, 35, 0.86) 0%, rgba(25, 31, 35, 0.78) 42%, rgba(25, 31, 35, 0.5) 68%, rgba(25, 31, 35, 0.42) 100%),
    linear-gradient(180deg, rgba(14, 18, 20, 0.28), rgba(14, 18, 20, 0.4));
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 680px;
  padding: 104px 0 96px;
}
.hero-panel {
  max-width: 980px;
  padding: 40px 42px 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  background: rgba(30, 35, 39, 0.42);
  backdrop-filter: blur(9px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2);
}
.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(3rem, 6.8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: 900px;
}
.hero-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.23rem;
}
.service-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.service-strip span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 640;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.intro-section {
  position: relative;
  z-index: 3;
  margin-top: -72px;
  padding-top: 0;
  background: linear-gradient(180deg, transparent 0, transparent 92px, var(--paper) 92px);
}
.intro-card {
  padding: 44px 44px 40px;
  border: 1px solid rgba(48, 52, 56, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}
.intro-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 30px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.section-heading h2,
.experience-copy h2,
.about-panel h2,
.contact-copy h2 { margin: 0; color: var(--charcoal); font-size: clamp(2.2rem, 4.5vw, 4.1rem); line-height: 1.06; letter-spacing: -0.045em; }
.intro-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.intro-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.55fr;
  gap: 34px;
  align-items: start;
}
.intro-list-title {
  margin: 0 0 8px;
  color: var(--charcoal);
  font-size: 1.04rem;
  font-weight: 760;
}
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list.two-column { columns: 2; column-gap: 34px; }
.check-list li { position: relative; break-inside: avoid; padding: 0 0 13px 31px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.46em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--gold-pale);
  box-shadow: inset 0 0 0 1px rgba(201,147,72,0.32);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.68em;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--gold-dark);
  border-bottom: 2px solid var(--gold-dark);
  transform: rotate(-45deg);
}
.intro-side-panel {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(145deg, #f8f2ea, #f2ebe2);
  border: 1px solid rgba(201, 147, 72, 0.15);
}
.intro-side-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--gold), #ddb06a);
  color: var(--charcoal-deep);
}
.intro-side-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.intro-side-panel h3 { margin: 0 0 10px; font-size: 1.22rem; color: var(--charcoal); }
.intro-side-panel p { margin: 0; color: var(--charcoal-soft); }

.services-section { background: linear-gradient(180deg, #f4eee5 0%, #fbf8f2 100%); }
.section-heading-wide { display: grid; grid-template-columns: 1fr 0.62fr; gap: 80px; align-items: end; margin-bottom: 55px; }
.section-heading-wide > p { margin: 0 0 8px; color: var(--muted); font-size: 1.08rem; }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 38px 34px 34px;
  border: 1px solid rgba(48,52,56,0.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-soft);
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--gold), #e4bd7c); }
.service-card:nth-child(2) { transform: translateY(26px); }
.service-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: linear-gradient(145deg, #f8ecd8, #f0dcc0);
  color: var(--charcoal);
  box-shadow: inset 0 0 0 1px rgba(201,147,72,0.22);
}
.service-icon svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { min-height: 84px; margin: 0 0 14px; color: var(--charcoal); font-size: 1.55rem; line-height: 1.15; }
.service-card > p { color: var(--muted); }
.service-card ul { flex: 1; margin: 18px 0 24px; padding-left: 19px; }
.service-card li { margin-bottom: 8px; }
.service-card li::marker { color: var(--gold); }
.service-card .card-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--charcoal-soft); font-size: 0.92rem; font-weight: 650; }

.approach-section { position: relative; overflow: hidden; background: linear-gradient(145deg, #34393d 0%, #25292c 100%); color: var(--white); }
.approach-section::after { content: ""; position: absolute; width: 500px; height: 500px; right: -280px; bottom: -340px; border: 80px solid rgba(201,147,72,0.08); border-radius: 50%; }
.approach-section .section-heading h2 { color: var(--white); }
.approach-section .section-heading-wide > p { color: #cbc6bf; }
.process-flow { position: relative; z-index: 2; list-style: none; margin: 66px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-flow::before { content: ""; position: absolute; left: 8%; right: 8%; top: 56px; height: 1px; background: linear-gradient(90deg, transparent, rgba(240,200,134,0.65) 12%, rgba(240,200,134,0.65) 88%, transparent); }
.process-step { position: relative; z-index: 2; min-height: 310px; padding: 28px 25px 30px; border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; background: rgba(255,255,255,0.055); backdrop-filter: blur(6px); }
.process-step:not(:last-child)::after { content: ""; position: absolute; top: 48px; right: -18px; width: 12px; height: 12px; border-top: 2px solid #eac88f; border-right: 2px solid #eac88f; transform: rotate(45deg); }
.process-icon { position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 45px; border-radius: 50%; background: var(--gold); color: var(--charcoal-deep); box-shadow: 0 0 0 10px rgba(201,147,72,0.12); }
.process-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.process-step h3 { margin: 0 0 14px; font-size: 1.55rem; }
.process-step p { margin: 0; color: #cbc6bf; }

.experience-section { background: var(--white); }
.experience-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 100px; align-items: start; }
.experience-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.experience-list { border-top: 1px solid var(--line); }
.experience-item { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.experience-item span { color: var(--gold-dark); font-size: 1.45rem; font-weight: 830; letter-spacing: -0.03em; }
.experience-item p { margin: 0; color: var(--muted); }
.selected-examples { margin-top: 80px; padding-top: 45px; border-top: 1px solid var(--line); }
.selected-examples h3 { margin: 0 0 26px; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.examples-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.examples-grid p {
  grid-column: span 2;
  position: relative;
  margin: 0;
  min-height: 170px;
  padding: 28px 24px 24px;
  border: 1px solid rgba(201,147,72,0.18);
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 0 10px 25px rgba(45,48,50,0.045);
}
.examples-grid p::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 18px; background: var(--gold); border-radius: 3px; }
.examples-grid p:nth-last-child(-n+2) { grid-column: span 3; min-height: 150px; }

.why-section { background: linear-gradient(180deg, #fbf8f2, #f7f0e6); }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 54px 0 90px; }
.value-card { min-height: 220px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 12px 30px rgba(45,48,50,0.04); }
.value-card h3 { margin: 0 0 40px; font-size: 1.08rem; }
.value-card h3::after { content: ""; display: block; width: 24px; height: 3px; margin-top: 12px; background: var(--gold); }
.value-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.about-panel { display: grid; grid-template-columns: 280px 1fr; gap: 70px; padding: 64px; border-radius: 28px; background: linear-gradient(145deg, #f0e1cc, #f8f0e5); box-shadow: var(--shadow-soft); }
.about-monogram { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--charcoal); color: #f1c982; font-size: 5.5rem; font-weight: 900; letter-spacing: -0.08em; box-shadow: 0 18px 40px rgba(36,40,43,0.2); }
.about-panel h2 { margin-bottom: 26px; font-size: clamp(2rem, 3.5vw, 3.25rem); }
.about-panel p { color: var(--charcoal-soft); }
.about-panel .about-aim { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(48,52,56,0.15); color: var(--ink); font-weight: 720; }

.contact-section { background: linear-gradient(145deg, #34393d 0%, #222629 100%); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 0.78fr; gap: 90px; align-items: start; }
.contact-copy h2 { color: var(--white); }
.contact-copy > p { max-width: 700px; color: #cac5be; font-size: 1.1rem; }
.contact-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 34px; margin-top: 38px; }
.contact-details p { margin: 0; color: #cac5be; }
.contact-details strong { color: #f0c886; }
.contact-details a { color: var(--white); text-underline-offset: 4px; }
.contact-form { padding: 38px; border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); }
.contact-form h3 { margin: 0; font-size: 1.7rem; }
.contact-form > p { margin-top: 7px; color: var(--muted); }
.contact-form label { display: block; margin: 18px 0 6px; font-size: 0.86rem; font-weight: 760; }
.contact-form input,
.contact-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #cfcac2; border-radius: 10px; background: #fffdf9; color: var(--ink); outline: none; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(201,147,72,0.18); }
.contact-form textarea { resize: vertical; }
.contact-form .button { margin-top: 22px; }
.form-note { margin-bottom: 0; text-align: center; font-size: 0.76rem; }

.site-footer { padding: 54px 0 24px; background: #1e2224; color: #bdb8b0; }
.footer-grid { display: grid; grid-template-columns: 270px 1fr auto; gap: 50px; align-items: center; }
.footer-brand img { width: 225px; filter: grayscale(1) brightness(2.6); opacity: 0.86; }
.footer-grid p { margin: 0; max-width: 500px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { color: #f0c886; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.11); font-size: 0.83rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .site-nav { gap: 18px; }
  .service-cards { grid-template-columns: 1fr; }
  .service-card:nth-child(2) { transform: none; }
  .service-card h3 { min-height: auto; }
  .process-flow { grid-template-columns: repeat(2, 1fr); }
  .process-flow::before { display: none; }
  .process-step:not(:last-child)::after { display: none; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .examples-grid { grid-template-columns: repeat(2, 1fr); }
  .examples-grid p,
  .examples-grid p:nth-last-child(-n+2) { grid-column: auto; min-height: 145px; }
}

@media (max-width: 900px) {
  .section { padding: 84px 0; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 86px 0 auto;
    display: grid;
    gap: 0;
    padding: 12px 20px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav > a:not(.button) { padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .site-nav > a:not(.button)::after { display: none; }
  .site-nav .button { margin-top: 14px; }
  .hero-content { min-height: 620px; }
  .intro-heading,
  .intro-content-grid,
  .section-heading-wide,
  .experience-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .check-list.two-column { columns: 1; }
  .about-panel { grid-template-columns: 170px 1fr; gap: 40px; padding: 44px; }
  .about-monogram { font-size: 3.7rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 68px 0; }
  .nav-wrap { min-height: 76px; }
  .site-nav { top: 76px; }
  .brand img { width: 185px; }
  .hero-content { min-height: 570px; padding: 86px 0 72px; }
  .hero-panel { padding: 26px 22px 26px; border-radius: 24px; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .hero-lead { font-size: 1.06rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .text-link { text-align: center; }
  .intro-section { margin-top: -44px; background: linear-gradient(180deg, transparent 0, transparent 54px, var(--paper) 54px); }
  .intro-card { padding: 28px 24px; }
  .section-heading h2,
  .experience-copy h2,
  .contact-copy h2 { font-size: clamp(2.05rem, 11vw, 3.4rem); }
  .service-card { padding: 32px 27px 27px; }
  .service-icon { width: 72px; height: 72px; }
  .service-icon svg { width: 42px; height: 42px; }
  .process-flow { grid-template-columns: 1fr; }
  .process-step { min-height: auto; }
  .process-icon { margin-bottom: 30px; }
  .experience-item { grid-template-columns: 1fr; gap: 8px; }
  .examples-grid,
  .values-grid,
  .contact-details { grid-template-columns: 1fr; }
  .about-panel { grid-template-columns: 1fr; padding: 30px; }
  .about-monogram { width: 130px; }
  .contact-form { padding: 28px 22px; }
  .footer-bottom { flex-direction: column; }
}

/* Functional contact form */
.alert {
  margin: 20px 0;
  padding: 15px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.92rem;
}
.alert p { margin: 0 0 6px; font-weight: 760; }
.alert ul { margin: 0; padding-left: 20px; }
.alert-error {
  border-color: rgba(160, 48, 48, 0.24);
  background: #fff1f0;
  color: #842d2d;
}
.alert-success {
  border-color: rgba(43, 119, 76, 0.23);
  background: #edf8f1;
  color: #24643f;
}
.hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.turnstile-wrap {
  min-height: 65px;
  margin-top: 22px;
  overflow: hidden;
}
.contact-form button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}
