
/* C45 — c45.uk. Palette tokens: see c45-brand-tokens.md. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body,h1,h2,h3,h4,p,figure,blockquote,ul,ol,dl{margin:0}
ul,ol{list-style:none;padding:0}
img{max-width:100%;display:block;height:auto}
/* height:auto matters. The width/height attributes emitted by dim() are presentational
   hints, and the height hint stays in force unless an author rule overrides it — which
   left every aspect-ratio below (.card__img 16/10, .split--media 4/5, .projshots 4/3)
   silently ignored, because width and height were both already definite. Rules that do
   want a fixed height (.hband, .accs, .hdr__logo, .ftr__logo) set one themselves. */
a{color:inherit}
button,input,textarea,select{font:inherit;color:inherit}

/* DEFAULT = C45's actual brand, sampled from the live site 2026-08-25.
   accent      = fills, rules, icons
   accent-ink  = text ON an accent fill
   accent-text = accent-coloured TEXT on a light surface (darkened to pass WCAG AA;
                 #43D37E on white is ~1.9:1 and fails badly) */
:root{
  --dark:#000000; --dark-2:#141414; --accent:#43D37E; --accent-ink:#0B0B0B;
  --accent-text:#17754A;
  --bg:#FFFFFF; --panel:#F2F5F3; --ink:#111111; --ink-soft:#5A615C;
  --line:#E1E6E2;        /* decorative rules only — 1.26:1, never a control boundary */
  --line-strong:#818983; /* control boundaries — 3.6:1 on white, WCAG 1.4.11 */
  --on-dark:#EAF0F1; --on-dark-soft:#AEC0C4; --on-dark-faint:#93A7AB;
  --display:"Epilogue",system-ui,sans-serif;
  --body:"Epilogue",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  --hcase:none; --hls:-0.015em; --hlh:1.06;
  --wrap:1240px; --gut:clamp(1.15rem,4vw,2.5rem);
}
[data-theme="coast"]{--dark:#0F1A1E;--dark-2:#16262B;--accent:#0E8C7F;--accent-ink:#0B0B0B;
  --accent-text:#0B6F65;--panel:#F1F4F4;--line:#DEE5E6;--line-strong:#7E8789;
  --ink:#10181B;--ink-soft:#5B6B70;
  --on-dark:#EAF0F1;--on-dark-soft:#AEC0C4;--on-dark-faint:#93A7AB;
  --display:"Barlow Condensed",Impact,sans-serif;--body:"Inter",system-ui,sans-serif;
  --hcase:uppercase;--hls:.005em;--hlh:.98}
[data-theme="signal"]{--dark:#14161A;--dark-2:#20242A;--accent:#E8A317;--accent-ink:#0B0B0B;
  --accent-text:#8A5D00;--panel:#F4F3F0;--line:#E4E2DC;--line-strong:#8A8782;
  --ink:#14161A;--ink-soft:#64666C;
  --on-dark:#F2EFE9;--on-dark-soft:#C2BCB0;--on-dark-faint:#A39C8E;
  --display:"Barlow Condensed",Impact,sans-serif;--body:"Inter",system-ui,sans-serif;
  --hcase:uppercase;--hls:.005em;--hlh:.98}
[data-theme="ground"]{--dark:#141A15;--dark-2:#20291F;--accent:#5B8C3E;--accent-ink:#0B0B0B;
  --accent-text:#3F6329;--panel:#F1F4EE;--line:#E0E5DC;--line-strong:#828A7E;
  --ink:#141A15;--ink-soft:#5C6659;
  --on-dark:#ECF1E9;--on-dark-soft:#B4C0AE;--on-dark-faint:#96A392;
  --display:"Barlow Condensed",Impact,sans-serif;--body:"Inter",system-ui,sans-serif;
  --hcase:uppercase;--hls:.005em;--hlh:.98}

body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);
  font-size:clamp(1rem,.96rem + .2vw,1.075rem);line-height:1.65;-webkit-font-smoothing:antialiased}

.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gut)}
.sec{padding-block:clamp(3.5rem,8vw,6.5rem)}
.sec--tight{padding-block:clamp(2.5rem,5vw,4rem)}
.sec--dark{background:var(--dark);color:var(--on-dark);position:relative;isolation:isolate}
/* The contour texture is the signature of C45's dark surfaces — topographic map lines. */
.sec--dark::before,.ftr::before{content:"";position:absolute;inset:0;z-index:0;
  background:url("topo.svg") center/cover no-repeat;pointer-events:none}
.ftr::before{background-image:url("topo-foot.svg")}
.sec--dark > .wrap,.ftr > .wrap{position:relative;z-index:1}
.sec--panel{background:var(--panel)}

/* ---- type ---- */
h1,h2,h3,h4,.dsp{font-family:var(--display);font-weight:700;line-height:var(--hlh);
  letter-spacing:var(--hls);text-transform:var(--hcase);text-wrap:balance}
h1{font-size:clamp(2.9rem,7.5vw,5.4rem)}
h2{font-size:clamp(2.1rem,4.6vw,3.5rem)}
h3{font-size:clamp(1.35rem,2vw,1.7rem)}
.lede{font-size:clamp(1.08rem,1rem + .5vw,1.3rem);color:var(--ink-soft);max-width:62ch;text-wrap:pretty}
.sec--dark .lede{color:var(--on-dark-soft)}
.eyebrow{font-family:var(--mono);font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--accent-text);display:flex;align-items:center;gap:.7rem;margin-bottom:1.1rem}
.sec--dark .eyebrow,.hero .eyebrow,.cta .eyebrow{color:var(--accent)}
.cta .eyebrow{color:inherit;opacity:.75}
.eyebrow::before{content:"";width:2rem;height:1px;background:currentColor;flex:none}
.stack>*+*{margin-top:1.15rem}

/* ---- shape language: skewed parallelograms, taken from the live site ---- */
.mark{display:block;width:56px;height:34px;position:relative;margin-bottom:1.3rem}
.mark::before,.mark::after{content:"";position:absolute;top:0;width:23px;height:34px;
  transform:skewX(-14deg)}
.mark::before{left:0;border:2px solid var(--ink)}
.mark::after{left:29px;background:var(--accent)}
.sec--dark .mark::before,.hero .mark::before{border-color:var(--on-dark)}

/* ---- buttons ---- */
.btn{display:inline-flex;align-items:center;gap:.6rem;font-family:var(--mono);font-size:.78rem;
  letter-spacing:.13em;text-transform:uppercase;text-decoration:none;padding:.95rem 1.5rem;
  border:1px solid transparent;cursor:pointer;position:relative;isolation:isolate;
  transition:background-color .18s ease,color .18s ease,border-color .18s ease,filter .18s ease}
/* Angled right edge lives on a pseudo-element so clip-path never eats the focus ring. */
.btn--pri{background:transparent;color:var(--accent-ink);border-color:transparent}
.btn--pri::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--accent);
  clip-path:polygon(0 0,calc(100% - 13px) 0,100% 100%,0 100%);transition:filter .18s ease}
.btn--pri::after{content:"\00bb";margin-left:.2rem;font-size:1.05em;line-height:1}
.btn--pri{padding-right:1.9rem}
.btn--pri:hover::before{filter:brightness(1.12)}
.btn--ghost{border-color:currentColor;background:transparent}
/* Was background:currentColor + color:var(--dark) — currentColor resolved against the
   colour the same rule had just set, giving black on black. Set the fill explicitly. */
.btn--ghost:hover{background:#FFFFFF;color:#0B0B0B;border-color:#FFFFFF}
:focus-visible{outline:3px solid var(--accent-text);outline-offset:3px}
.sec--dark :focus-visible,.hero :focus-visible,.hdr :focus-visible,.ftr :focus-visible,
.cta :focus-visible{outline-color:#FFFFFF}
.btns{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.9rem}

/* ---- header ---- */
.hdr{position:sticky;top:0;z-index:50;background:var(--dark);color:var(--on-dark);border-bottom:1px solid rgba(255,255,255,.1)}
.hdr__in{display:flex;align-items:center;gap:1.5rem;min-height:78px}
/* Fixed box + object-fit reserves space for CLS without ever distorting the mark.
   The earlier min-width squashed it. */
.hdr__logo{display:flex;align-items:center;width:118px;height:44px;flex:none}
.hdr__logo img{height:100%;width:100%;object-fit:contain;object-position:left center}
.nav{margin-left:auto;display:flex;gap:.35rem}
.nav a{font-family:var(--mono);font-size:.78rem;letter-spacing:.11em;text-transform:uppercase;
  text-decoration:none;padding:.6rem .85rem;opacity:.82}
.nav a:hover{opacity:1;color:var(--accent)}
.nav a[aria-current="page"]{opacity:1;color:var(--accent)}
.hdr__tel{font-family:var(--mono);font-size:.82rem;text-decoration:none;letter-spacing:.04em;white-space:nowrap}
.hdr__tel:hover{color:var(--accent)}
.burger{display:none;background:none;border:1px solid rgba(255,255,255,.28);padding:.55rem .7rem;cursor:pointer}
.hdr__call{display:none;align-items:center;justify-content:center;width:44px;height:44px;
  border:1px solid rgba(255,255,255,.28);color:inherit;flex:none}
.hdr__call:hover{border-color:var(--accent);color:var(--accent)}
.nav__cta,.nav__tel{display:none}
@media(max-width:900px){
  .nav{position:absolute;top:100%;left:0;right:0;background:var(--dark-2);flex-direction:column;
    gap:0;padding:.5rem var(--gut) 1.2rem;display:none;border-bottom:1px solid rgba(255,255,255,.12)}
  .nav.open{display:flex}
  .nav a{padding:.85rem 0;border-bottom:1px solid rgba(255,255,255,.08)}
  .burger{display:block;order:4}
  .hdr__call{display:inline-flex;margin-left:auto;order:3}
  .hdr__tel{display:none}
  .hdr__in > .btn{display:none}
  /* CTA and number stay reachable on the viewport where tap-to-call matters most */
  .nav__cta{display:inline-flex;justify-content:center;margin-top:1rem;border-bottom:0}
  .nav__tel{display:block;text-align:center;font-family:var(--mono);font-size:.95rem;
    letter-spacing:.04em;text-transform:none;border-bottom:0;padding-top:.9rem}
}

/* ---- hero ---- */
.hero{position:relative;background:var(--dark);color:#fff;isolation:isolate;overflow:hidden}
.hero__topo{position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:url("topo.svg") center/cover no-repeat}
/* Angled green slab — the brand's shape language, lifted from the live site */
.hero__slab{position:absolute;left:0;bottom:0;width:34%;height:8px;background:var(--accent);
  clip-path:polygon(0 0,100% 0,calc(100% - 26px) 100%,0 100%);z-index:1}
.hero img.hero__bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(105deg,rgba(8,14,16,.94) 0%,rgba(8,14,16,.82) 46%,rgba(8,14,16,.42) 100%)}
.hero__in{padding-block:clamp(4.5rem,13vw,9rem);max-width:60rem;position:relative;z-index:2}
.hero--sm .hero__in{padding-block:clamp(3.2rem,8vw,5.5rem)}
.hero--plain::after{display:none}
.hero--plain .hero__topo{opacity:1}
.hero .lede{color:var(--on-dark-soft)}
.hero__spec{display:flex;flex-wrap:wrap;gap:0;margin-top:2.6rem;border-top:1px solid rgba(255,255,255,.22)}
.hero__spec div{padding:1.1rem 1.6rem 0 0;margin-right:1.6rem;border-right:1px solid rgba(255,255,255,.16)}
.hero__spec div:last-child{border-right:0}
.hero__spec b{display:block;font-family:var(--display);font-size:1.9rem;line-height:1}
.hero__spec span{font-family:var(--mono);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--on-dark-faint)}

/* ---- full-bleed image band: black hero, then photography with the green slab.
       This is the live site's structure and it reads far better than a photo
       sitting behind the headline. ---- */
.hband{position:relative;overflow:hidden;background:var(--dark);line-height:0}
.hband img{width:100%;height:clamp(260px,40vw,520px);object-fit:cover}
.hband::after{content:"";position:absolute;left:0;top:0;bottom:0;width:36%;
  background:var(--accent);clip-path:polygon(0 0,78% 0,38% 100%,0 100%)}

/* ---- video ---- */
.vid{position:relative;background:var(--dark);overflow:hidden}
.vid video{width:100%;height:auto;display:block}
.vid::after{content:"";position:absolute;left:0;bottom:0;height:8px;width:32%;
  background:var(--accent);clip-path:polygon(0 0,100% 0,calc(100% - 24px) 100%,0 100%)}

/* ---- grids ---- */
.grid{display:grid;gap:1.6rem}
.g2{grid-template-columns:repeat(auto-fit,minmax(min(100%,26rem),1fr))}
.gsvc{grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr))}
.g3{grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr))}
.split{display:grid;gap:clamp(2rem,5vw,4rem);align-items:center;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr))}
.split--media figure{margin:0;position:relative}
.split--media img{width:100%;aspect-ratio:4/5;object-fit:cover}
.tag{position:absolute;left:0;bottom:0;background:var(--accent);color:var(--accent-ink);
  font-family:var(--mono);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;
  padding:.6rem 1.5rem .6rem .95rem;
  clip-path:polygon(0 0,calc(100% - 14px) 0,100% 100%,0 100%)}

/* ---- cards ---- */
.card{background:var(--bg);border:1px solid var(--line);display:flex;flex-direction:column;
  text-decoration:none;position:relative;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.card{overflow:hidden}
.card:hover{transform:translateY(-4px);border-color:var(--accent);
  box-shadow:0 18px 40px rgba(0,0,0,.10)}
.card__img{transition:transform .55s cubic-bezier(.2,.6,.2,1)}
.card:hover .card__img{transform:scale(1.05)}
.card__go{transition:gap .2s ease}
.card:hover .card__go{gap:.6rem}
.card__img{aspect-ratio:16/10;object-fit:cover;width:100%}
.card__b{padding:1.4rem 1.4rem 1.6rem;display:flex;flex-direction:column;gap:.55rem;flex:1}
.card__n{display:inline-flex;align-items:center;justify-content:center;width:46px;height:32px;
  background:var(--panel);transform:skewX(-12deg);transition:background .25s ease;flex:none}
.card__n span{transform:skewX(12deg);font-family:var(--mono);font-size:.72rem;
  letter-spacing:.12em;color:var(--accent-text);transition:color .25s ease}
.card:hover .card__n{background:var(--accent)}
.card:hover .card__n span{color:var(--accent-ink)}
.card h3{font-size:1.45rem}
.card p{color:var(--ink-soft);font-size:.95rem;line-height:1.55}
.card__go{margin-top:auto;font-family:var(--mono);font-size:.74rem;letter-spacing:.13em;
  text-transform:uppercase;color:var(--accent-text);padding-top:.7rem}
.card__meta{font-family:var(--mono);font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--accent-text);line-height:1.5}
.card h3{text-wrap:balance}

/* ---- project shots ---- */
.projshots figure{margin:0}
.projshots img{width:100%;aspect-ratio:4/3;object-fit:cover;border:1px solid var(--line)}
.sec--panel .projshots img{border-color:var(--line-strong)}

.feat{border-top:2px solid var(--accent);padding-top:1.1rem}
.feat h3{font-size:1.2rem;margin-bottom:.5rem}
.feat p{color:var(--ink-soft);font-size:.95rem}
.sec--dark .feat p{color:var(--on-dark-soft)}

/* ---- chips / lists ---- */
.chips{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1.5rem}
.chip{font-family:var(--mono);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;
  border:1px solid var(--line);padding:.5rem .8rem;color:var(--ink-soft)}
.sec--dark .chip{border-color:rgba(255,255,255,.24);color:var(--on-dark-soft)}
.ticks{display:grid;gap:.7rem;margin-top:1.4rem}
.ticks li{display:flex;gap:.75rem;align-items:flex-start;font-size:.98rem}
.ticks li::before{content:"";flex:none;width:.55rem;height:.55rem;margin-top:.55rem;background:var(--accent)}

/* ---- accreditations ---- */
.accs{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));
  gap:1.2rem;align-items:center}
/* Full colour — the marks are the trust signal and greyscale flattened them. */
.accs figure{min-height:118px;display:flex;flex-direction:column;justify-content:center;
  background:#fff;border:1px solid var(--line);padding:1.1rem .9rem;
  transition:border-color .2s ease,transform .2s ease}
.accs figure:hover{border-color:var(--accent);transform:translateY(-2px)}
.accs img{height:58px;width:auto;object-fit:contain;margin-inline:auto}

.accs figcaption{font-family:var(--mono);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;
  text-align:center;color:var(--ink-soft);margin-top:.5rem}

/* ---- quote ---- */
.quote{border-left:3px solid var(--accent);padding-left:clamp(1.2rem,3vw,2.2rem);max-width:52ch}
.quote p{font-family:var(--display);font-size:clamp(1.5rem,3vw,2.2rem);line-height:1.12;text-transform:none}

/* ---- proposed / placeholder ---- */
.proposed{border:1px dashed var(--accent);padding:clamp(1.4rem,3vw,2.2rem);position:relative}
.proposed::before{content:"Proposed — not on the current site";position:absolute;top:-.72rem;left:1.2rem;
  background:var(--bg);padding:0 .6rem;font-family:var(--mono);font-size:.72rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--accent-text)}
.sec--panel .proposed::before{background:var(--panel)}
.ph{background:var(--line);aspect-ratio:16/10;display:grid;place-items:center;
  font-family:var(--mono);font-size:.72rem;letter-spacing:.13em;text-transform:uppercase;color:var(--ink-soft)}

/* ---- cta band ---- */
.cta{background:var(--accent);color:var(--accent-ink)}
.cta h2{max-width:20ch}
.cta .lede{color:var(--accent-ink)}
.cta .btn--ghost:hover{background:#FFFFFF;color:#0B0B0B;border-color:#FFFFFF}

/* ---- form ---- */
.form{display:grid;gap:1.05rem}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.formnote{border-left:3px solid var(--line-strong);padding:.2rem 0 .2rem .9rem;
  font-size:.9rem;color:var(--ink-soft)}
.f2{display:grid;gap:1.05rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr))}
label{display:block;font-family:var(--mono);font-size:.7rem;letter-spacing:.13em;
  text-transform:uppercase;color:var(--ink-soft);margin-bottom:.4rem}
input,select,textarea{width:100%;padding:.85rem .95rem;border:1px solid var(--line-strong);
  background:var(--bg);border-radius:0}
input:hover,select:hover,textarea:hover{border-color:var(--ink-soft)}
textarea{min-height:9rem;resize:vertical}
.dl{display:grid;gap:1.3rem}
.dl div{border-top:1px solid var(--line);padding-top:.85rem}
.sec--dark .dl div{border-color:rgba(255,255,255,.2)}
.dl dt{font-family:var(--mono);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-soft);margin-bottom:.3rem}
.sec--dark .dl dt{color:var(--on-dark-faint)}
.dl dd{margin:0;font-family:var(--display);font-size:1.5rem;text-transform:none}
.dl dd a{text-decoration:none}
.dl dd a:hover{color:var(--accent)}
.dl dd.sm{font-family:var(--body);font-size:1rem;line-height:1.5}

/* ---- footer ---- */
.ftr{background:var(--dark);color:var(--on-dark-soft);padding-block:clamp(3rem,6vw,4.5rem) 0}
.ftr h4{font-size:1.05rem;color:#fff;margin-bottom:1rem}
.ftr a{text-decoration:none}
.ftr a:hover{color:var(--accent)}
.ftr__grid{display:grid;gap:2.5rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr))}
.ftr__logo{width:136px;height:50px;object-fit:contain;object-position:left center;
  margin-bottom:1.1rem}
.ftr ul{display:grid;gap:.55rem;font-size:.95rem}
.ftr__co{margin-top:2.6rem;font-size:.84rem;line-height:1.6;color:var(--on-dark-faint);max-width:68ch}
.ftr__bot{margin-top:1.6rem;border-top:1px solid rgba(255,255,255,.14);padding-block:1.4rem;
  display:flex;flex-wrap:wrap;gap:.8rem;justify-content:space-between;
  font-family:var(--mono);font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--on-dark-faint)}

/* ---- review bar (mockup only) ---- */
.rev{position:fixed;right:1rem;bottom:1rem;z-index:100;background:#0B1113;color:#fff;
  border:1px solid rgba(255,255,255,.22);padding:.7rem .8rem;display:flex;gap:.45rem;align-items:center;
  font-family:var(--mono);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;
  box-shadow:0 10px 30px rgba(0,0,0,.35);flex-wrap:wrap;max-width:calc(100vw - 2rem)}
.rev button{background:transparent;border:1px solid rgba(255,255,255,.28);color:#fff;
  padding:.4rem .6rem;cursor:pointer;font-family:inherit;font-size:inherit;letter-spacing:inherit}
.rev button[aria-pressed="true"]{background:#fff;color:#0B1113;border-color:#fff}
.rev__opts{display:flex;gap:.45rem;flex-wrap:wrap}
.rev[data-open="false"] .rev__opts{display:none}
.rev__t::after{content:" ▾"}
.rev[data-open="false"] .rev__t::after{content:" ▸"}
@media print{.rev{display:none}}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;
    transition-duration:.01ms !important;scroll-behavior:auto !important}
  .card:hover{transform:none}
}
.skip{position:absolute;left:-9999px}
.skip:focus{left:1rem;top:1rem;z-index:200;background:#fff;color:#000;padding:.7rem 1rem}
