/* Lincolnshire Automobile Club: shared styles.
   Palette from the club badge: racing green, brass, badge red, airfield concrete. Corners: surfaces 3px, buttons 0. */

@font-face {
  font-family: 'Anybody';
  src: url('../fonts/anybody-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: 'Libre Franklin';
  src: url('../fonts/librefranklin-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
/* Fallbacks sized to the web fonts so nothing jumps when they arrive */
@font-face {
  font-family: 'Anybody Fallback';
  src: local('Arial Black'), local('ArialBlack');
  size-adjust: 118%;
  ascent-override: 80%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Anybody UI Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT');
  font-weight: 500 900;
  size-adjust: 106.5%;
  ascent-override: 88%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Anybody UI Fallback';
  src: local('Arial'), local('ArialMT');
  font-weight: 100 499;
  size-adjust: 106.5%;
  ascent-override: 88%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Franklin Fallback';
  src: local('Arial');
  size-adjust: 103%;
  ascent-override: 90%;
  descent-override: 24%;
  line-gap-override: 0%;
}

:root {
  --green-950: #0B211A;
  --green-900: #0F2B21;
  --green-800: #143A2C;
  --green-600: #2E5A45;
  --brass: #C9A04A;
  --brass-lt: #E8CF8A;
  --red: #C4161C;
  --red-dk: #9E1016;
  --concrete: #E6E9E3;
  --paper: #F5F6F2;
  --ink: #111614;
  --muted: #45514B;
  --on-dark: #EEF1EC;
  --on-dark-muted: #B9C4BD;

  --f-display: 'Anybody', 'Anybody Fallback', 'Arial Narrow', sans-serif;
  --f-body: 'Libre Franklin', 'Franklin Fallback', Arial, sans-serif;
  --f-ui: 'Anybody', 'Anybody UI Fallback', Arial, sans-serif;

  --r: 3px;          /* surfaces: 26 letters, remainder 1 */
  --r-btn: 0;        /* buttons: "Lincolnshire" 12 letters, remainder 0 */
  --wrap: 1320px;
  --gut: clamp(16px, 3vw, 32px);
  --head-h: 96px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --media-cap: min(76vh, 760px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  background: var(--green-950);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: var(--fs, 112%); line-height: 1.02; letter-spacing: -.005em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--brass); color: var(--ink); padding: 12px 18px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Type ---------- */
.h-hero { font-size: clamp(2.6rem, 6.2vw, 6.4rem); font-weight: 850; line-height: .98; }
.h-sec { font-size: clamp(2rem, 3.5vw, 3.6rem); }
.h-card { font-size: clamp(1.3rem, 1.8vw, 1.75rem); --fs: 100%; line-height: 1.1; }
.lede { font-size: clamp(1.1rem, 1.3vw, 1.2rem); line-height: 1.55; }
.fig { font-family: var(--f-ui); font-stretch: 78%; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.label { font-family: var(--f-ui); font-stretch: 80%; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.brass { color: var(--brass-lt); }

/* Heading masks for the line reveals (SplitText adds .line-mask). All padding is pulled back so the heading lays out
   exactly as it does without motion. */
.split-h { display: flow-root; }
/* Adjacent block margins collapse to the most negative one, so each line's bottom margin (-.7em) covers its own bottom
   padding and the next line's top padding (.5em + .2em); the heading's height matches the unsplit heading exactly. */
.line-mask { overflow: clip; padding: .2em .15em .5em; margin: -.2em -.15em -.7em; }
.line-mask:last-child { margin-bottom: -.5em; }
.line-mask > .line { white-space: nowrap; display: block; font-stretch: var(--fs, 112%); }
html.motion [data-split]:not(.split-h) { opacity: 0; }

/* ---------- Buttons: square ends like an enamel plate ---------- */
.btn {
  --bg: var(--brass); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .8em 1.4em;
  border: 2px solid var(--bg); border-radius: var(--r-btn);
  background: var(--bg); color: var(--fg);
  font-family: var(--f-ui); font-stretch: 92%; font-weight: 750; font-size: 1.02rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  position: relative; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--brass:hover { --bg: var(--brass-lt); }
.btn--red { --bg: var(--red); --fg: #fff; }
.btn--red:hover { --bg: var(--red-dk); }
.btn--ink { --bg: var(--ink); --fg: #fff; }
.btn--ink:hover { --bg: var(--green-800); }
.btn--line { --bg: transparent; --fg: var(--on-dark); border-color: var(--brass); background: rgba(11, 33, 26, .35); }
.btn--line:hover { --fg: var(--ink); background: var(--brass); }
.btn--line-dark { --bg: transparent; --fg: var(--ink); border-color: var(--ink); background: var(--paper); }
.btn--line-dark:hover { --fg: #fff; background: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.textlink { display: inline; padding: 12px 0; font-weight: 600; color: inherit; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.textlink:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--on-dark);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-head::before {
  content: ''; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 18, 14, .78), rgba(6, 18, 14, 0));
  transition: opacity .35s var(--ease);
}
.site-head.is-solid { background: rgba(11, 33, 26, .96); box-shadow: 0 1px 0 rgba(201, 160, 74, .35); }
.site-head.is-solid::before { opacity: 0; }
.site-head__bar { position: relative; display: flex; align-items: center; gap: 24px; height: var(--head-h); transition: height .35s var(--ease); }
.site-head.is-solid .site-head__bar { height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; flex: none; }
.brand__badge { width: 70px; height: 70px; transition: width .35s var(--ease), height .35s var(--ease); filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.site-head.is-solid .brand__badge { width: 56px; height: 56px; }
.brand__name { font-family: var(--f-ui); font-stretch: 88%; font-weight: 750; font-size: 1.02rem; line-height: 1.08; letter-spacing: .01em; }
.brand__name span { display: block; }
.brand__name span + span { color: var(--brass-lt); }

.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 13px;
  background: none; border: 0; color: inherit; text-decoration: none; cursor: pointer;
  font-family: var(--f-ui); font-stretch: 96%; font-weight: 650; font-size: 1rem; white-space: nowrap;
  position: relative;
}
.nav__link::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 6px; height: 2px; background: var(--brass);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link.is-current::after, .nav__item.is-open > .nav__link::after { transform: scaleX(1); }
.nav__chev { width: 11px; height: 8px; transition: transform .3s var(--ease); }
.nav__item.is-open .nav__chev { transform: rotate(180deg); }
.nav__drop {
  position: absolute; top: 100%; left: -8px; padding-top: 10px; min-width: 280px;
  visibility: hidden; opacity: 0; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.nav__item.is-open .nav__drop { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav__drop ul { list-style: none; margin: 0; padding: 8px; background: var(--paper); color: var(--ink); border-radius: var(--r); border-top: 3px solid var(--brass); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.nav__droplink { display: block; padding: 12px 14px; border-radius: var(--r); text-decoration: none; white-space: nowrap; }
.nav__droplink strong { display: block; font-family: var(--f-ui); font-stretch: 96%; font-weight: 750; font-size: 1.02rem; }
.nav__droplink .nav__note::before { content: attr(data-note); display: block; font-size: .92rem; color: var(--muted); }
.nav__droplink:hover, .nav__droplink:focus-visible { background: var(--concrete); }
.nav__droplink[aria-current="page"] strong { color: var(--red); }
.site-head__cta { min-height: 46px; padding: .6em 1.2em; }

.burger { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; background: rgba(11, 33, 26, .5); color: var(--on-dark); border: 2px solid var(--brass); border-radius: var(--r-btn); cursor: pointer; font-family: var(--f-ui); font-weight: 700; font-stretch: 90%; }
.burger__lines { display: grid; gap: 4px; width: 20px; }
.burger__lines i { display: block; height: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] .burger__lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__lines i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 90; background: var(--green-950); color: var(--on-dark);
  padding-top: calc(var(--head-h) + 12px); padding-bottom: 32px; overflow-y: auto;
}
.mnav[hidden] { display: none; }
.mnav__list { list-style: none; margin: 0 0 24px; padding: 0; }
.mnav__list > li { border-bottom: 1px solid rgba(201, 160, 74, .3); }
.mnav__list a { display: block; padding: 12px 0; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-stretch: 105%; font-size: 1.6rem; line-height: 1.15; }
.mnav__list a[aria-current="page"] { color: var(--brass-lt); }
.mnav__group { display: block; padding: 12px 0 6px; font-family: var(--f-display); font-weight: 800; font-stretch: 105%; font-size: 1.6rem; line-height: 1.15; color: var(--brass-lt); }
.mnav__list ul { list-style: none; margin: -4px 0 10px; padding: 0 0 0 16px; border-left: 2px solid var(--brass); }
.mnav__list ul a { font-size: 1.15rem; font-weight: 650; padding: 8px 0; }
.mnav__cta { width: 100%; }
.mnav__meet { margin-top: 18px; color: var(--on-dark-muted); }
html.menu-open { overflow: hidden; }
html.menu-open .site-head { background: var(--green-950); }

@media (max-width: 1180px) {
  .nav, .site-head__cta { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 560px) {
  :root { --head-h: 84px; }
  .brand__badge { width: 62px; height: 62px; }
  .brand__name { font-size: .92rem; }
  .burger__label { display: none; }
}
@media (max-width: 370px) { .brand__name { display: none; } }

/* ---------- Bands (sections) ---------- */
.band { position: relative; padding: clamp(64px, 7.5vw, 112px) 0; }
.band--dark { background: var(--green-950); color: var(--on-dark); }
.band--green { background: var(--green-900); color: var(--on-dark); }
.band--light { background: var(--concrete); color: var(--ink); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--dark .lede, .band--green .lede { color: var(--on-dark-muted); }
.band--light .lede, .band--paper .lede { color: var(--muted); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head .lede { margin: 0; }
.rule { display: block; width: 100%; height: 2px; background: linear-gradient(90deg, var(--brass), rgba(201, 160, 74, 0)); transform-origin: left; }
/* A faint Tarmac texture of fine lines for dark bands, drawn in CSS so no request is needed */
.band--dark.textured::before, .band--green.textured::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(201, 160, 74, .10), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 9px);
}

/* Framed photo: brass offset outline, fully inside the section */
.frame { position: relative; border-radius: var(--r); }
.frame::after { content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--brass); border-radius: var(--r); z-index: 0; pointer-events: none; }
.frame > img, .frame > picture, .frame > .frame__media { position: relative; z-index: 1; border-radius: var(--r); width: 100%; height: 100%; object-fit: cover; }
.frame > .frame__media { display: block; overflow: clip; }
.frame__cap { position: absolute; z-index: 2; left: 0; bottom: 0; margin: 0; padding: 10px 14px; background: rgba(11, 33, 26, .86); color: var(--on-dark); font-size: .92rem; border-radius: 0 var(--r) 0 var(--r); }

/* ---------- Inner page hero ---------- */
.phero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; color: var(--on-dark); background: var(--green-950); overflow: clip; }
.phero__media { position: absolute; inset: 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 24, 18, .9) 0%, rgba(8, 24, 18, .62) 45%, rgba(8, 24, 18, .1) 100%), linear-gradient(0deg, rgba(8, 24, 18, .85), rgba(8, 24, 18, 0) 55%); }
.phero__inner { position: relative; padding-top: calc(var(--head-h) + 48px); padding-bottom: clamp(48px, 7vw, 96px); display: grid; gap: 22px; }
.phero__inner .lede { color: #DCE3DE; margin: 0; }
.phero .h-hero { font-size: clamp(2.3rem, 5.6vw, 5.6rem); }
.crumb { display: flex; gap: 10px; align-items: center; font-family: var(--f-display); font-stretch: 85%; font-weight: 650; font-size: .95rem; color: var(--brass-lt); }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

/* ---------- Holding pages ---------- */
.soon { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.soon__media { aspect-ratio: 4 / 3; max-height: var(--media-cap); }
.soon__media > .frame__media { position: relative; }
.soon__media > .frame__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.soon__list { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 10px; }
.soon__list li { display: flex; gap: 12px; align-items: baseline; }
.soon__list li::before { content: ''; flex: none; width: 10px; height: 10px; background: var(--brass); transform: rotate(45deg) translateY(-2px); }
.links3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.linkcard { position: relative; display: block; min-height: 300px; border-radius: var(--r); overflow: clip; text-decoration: none; color: #fff; background: var(--green-900); isolation: isolate; }
.linkcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.linkcard::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8, 24, 18, .92) 8%, rgba(8, 24, 18, .15) 70%); }
.linkcard:hover img { transform: scale(1.05); }
.linkcard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: grid; gap: 6px; }
.linkcard__body span { color: #D6DED9; }
@media (max-width: 900px) {
  .soon { grid-template-columns: 1fr; }
  .links3 { grid-template-columns: 1fr; }
  .linkcard { min-height: 220px; }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; }
.field label, .field legend { font-weight: 600; font-size: .98rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 15px; border: 2px solid #B8C2BC; border-radius: var(--r);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { overflow: visible; appearance: none; -webkit-appearance: none; padding-right: 48px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3 6.5l6 6 6-6' fill='none' stroke='%23111614' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center / 18px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(201, 160, 74, .45); }
.field__hint { font-size: .92rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-foot { position: relative; background: var(--green-950); color: var(--on-dark); padding: 88px 0 28px; overflow: clip; isolation: isolate; }
.site-foot::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('../img/lancaster-lineup-800.webp') center 60% / cover no-repeat; opacity: .12; filter: grayscale(.4); }
.site-foot__road { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--brass) 0 46px, transparent 46px 78px); opacity: .8; }
.site-foot__grid { display: grid; grid-template-columns: 1.2fr 1.2fr .9fr .9fr; gap: 40px; }
.site-foot__brand img { width: 112px; height: 112px; margin-bottom: 16px; }
.site-foot__tag { font-family: var(--f-display); font-stretch: 100%; font-weight: 750; font-size: 1.3rem; line-height: 1.2; color: var(--brass-lt); }
.site-foot__h { font-family: var(--f-display); font-stretch: 85%; font-weight: 750; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-lt); margin-bottom: 14px; }
.site-foot__col p { color: var(--on-dark-muted); }
.site-foot__col strong { color: var(--on-dark); }
.site-foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.site-foot__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; text-decoration: none; color: var(--on-dark); }
.site-foot__links a:hover { color: var(--brass-lt); text-decoration: underline; }
.site-foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(201, 160, 74, .3); color: var(--on-dark-muted); font-size: .95rem; }
.site-foot__base p { margin: 0; }
.site-foot__base a { color: var(--brass-lt); }
@media (max-width: 1000px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-foot__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Reveal start states (motion only; no-JS and reduced motion never see these) ---------- */
html.motion [data-rise] { opacity: 0; transform: translateY(34px); }
html.motion [data-wipe] { clip-path: inset(0 0 100% 0); }
html.motion [data-wipe="left"] { clip-path: inset(0 100% 0 0); }
html.motion .rule[data-draw] { transform: scaleX(0); }
html.motion [data-deal] > * { opacity: 0; transform: translateY(60px) rotate(2deg); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
