/* Heligo — heligo.co.uk */

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/eb-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/eb-garamond-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --obsidian: #1A1A1A;
  --ink: #121212;
  --yellow: #FAE452;
  --chalk: #F6F4EF;
  --limestone: #E4E0D8;
  --stone: #CFCAC0;
  --granite: #6B6760;
  --body-grey: #4A4742;
  --summit: #2B5B84;
  --summit-light: #5B8DBA;
  --rope: #9A4426;
  --rope-light: #D06A43;
  --moss: #4F6831;
  --moss-light: #8AA65F;

  --head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "EB Garamond", Georgia, "Times New Roman", serif;
  --ui: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1400px;
  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 144px);

  /* Hold-shaped blobs */
  --hold-a: 58% 42% 55% 45% / 48% 58% 42% 52%;
  --hold-b: 45% 55% 42% 58% / 55% 45% 58% 42%;
  --hold-c: 52% 48% 40% 60% / 44% 60% 40% 56%;
  --hold-d: 40% 60% 58% 42% / 52% 42% 58% 48%;
}

/* ---------- Base ---------- */
*, *::before, *::after { 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(--chalk);
  color: var(--obsidian);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { opacity: 0.82; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.on-light :focus-visible, .contact :focus-visible { outline-color: var(--obsidian); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; margin: 0; text-wrap: balance; }
p, li, dd, blockquote { text-wrap: pretty; }
p, ul, dl, dd { margin: 0; }
em, .it { font-style: italic; font-weight: 500; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--yellow); color: var(--obsidian); padding: 10px 16px;
  font-family: var(--ui); font-weight: 600; font-size: 14px; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.num { font-family: var(--body); font-variant-numeric: lining-nums; }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-family: var(--ui); font-size: 12px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--granite);
}
.eyebrow.light { color: var(--limestone); }
.hold { display: inline-block; flex: none; width: 16px; height: 14px; border-radius: var(--hold-a); }
.hold.b { border-radius: var(--hold-b); }
.hold.c { border-radius: var(--hold-c); }
.hold.d { border-radius: var(--hold-d); }
.hold.yellow { background: var(--yellow); }
.hold.yellow.outlined { border: 1px solid var(--obsidian); }
.hold.summit { background: var(--summit); }
.hold.summit-light { background: var(--summit-light); }
.hold.rope { background: var(--rope); }
.hold.rope-light { background: var(--rope-light); }
.hold.moss { background: var(--moss); }
.hold.moss-light { background: var(--moss-light); }

.section-title {
  font-size: clamp(42px, 5.4vw, 84px); line-height: 1; letter-spacing: -0.01em; max-width: 12em; margin-bottom: 28px;
}
.lead { font-size: clamp(20px, 1.6vw, 23px); line-height: 1.5; max-width: 34em; }
.ghost-num {
  position: absolute; margin: 0; top: 40px; right: clamp(-40px, -2vw, 0px);
  font-family: var(--body); font-variant-numeric: lining-nums;
  font-size: clamp(180px, 22vw, 340px); line-height: 0.8; color: var(--limestone);
  pointer-events: none; user-select: none;
}

/* ---------- Header and navigation ---------- */
.site-header {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 28px; padding-bottom: 28px;
}
.site-header .logo { display: block; line-height: 0; }
.site-header .logo img { width: 150px; height: auto; }
.nav-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  background: transparent; color: var(--chalk); border: 1px solid rgba(246, 244, 239, 0.6);
  font-family: var(--ui); font-size: 14px; font-weight: 500; cursor: pointer;
}
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 5px; }
.nav-toggle .bars::after { bottom: 0; }
.main-nav ul {
  list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px;
  font-family: var(--ui); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: var(--chalk);
}
.main-nav a { display: inline-block; text-decoration: none; padding: 12px 0; }
.main-nav a.cta { padding: 11px 18px; border: 1px solid rgba(246, 244, 239, 0.6); }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .main-nav {
    display: none; position: absolute; top: 100%; left: var(--gutter); right: var(--gutter);
    background: var(--obsidian); border: 1px solid rgba(246, 244, 239, 0.18); padding: 8px 20px 16px;
  }
  .js .main-nav.open { display: block; }
  .js .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; }
  .js .main-nav li + li { border-top: 1px solid rgba(246, 244, 239, 0.14); }
  .js .main-nav a { display: block; padding: 14px 0; }
  .js .main-nav a.cta { border: 0; color: var(--yellow); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(640px, 100vh); min-height: max(640px, 100svh); display: flex; flex-direction: column;
  background: var(--obsidian); color: var(--chalk); overflow: hidden;
}
.hero > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
/* Laptop and standard desktop screens (anything less wide than about 1.9:1): zoom in and anchor left so the climber sits clear of the headline */
@media (min-width: 861px) and (max-aspect-ratio: 19/10) {
  .hero > .bg { right: auto; max-width: none; width: 150%; object-position: 50% 30%; }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,18,18,0.86) 0%, rgba(18,18,18,0.62) 45%, rgba(18,18,18,0.18) 100%);
}
.hero .site-header, .hero .hero-body, .hero .focus { position: relative; z-index: 1; width: 100%; }
.hero .site-header { z-index: 10; }
.hero-body { margin-top: auto; padding-top: 100px; padding-bottom: clamp(40px, 5vw, 72px); }
.hero-body .eyebrow { color: var(--limestone); margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(52px, 7.2vw, 120px); line-height: 1.02; letter-spacing: -0.015em; max-width: 10.5em; margin-bottom: 32px;
}
.hero h1 .accent { color: var(--yellow); }
.hero .intro { max-width: 30em; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; }

/* ---------- Focus strip ---------- */
.focus { background: rgba(26, 26, 26, 0.9); color: var(--chalk); }
.hero .focus .item { border-top-color: rgba(246, 244, 239, 0.22); }
.focus dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.focus .item { display: flex; gap: 16px; align-items: flex-start; padding: 32px 24px 34px 0; border-top: 1px solid rgba(246, 244, 239, 0.18); }
.focus .hold { width: 20px; height: 18px; margin-top: 4px; }
.focus dt { margin: 0 0 4px; font-family: var(--ui); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); }
.focus dd { font-family: var(--head); font-weight: 600; font-size: 25px; line-height: 1.15; }

/* ---------- What we do ---------- */
.what-we-do { position: relative; overflow: hidden; }
.what-we-do .wrap { position: relative; padding-top: var(--section-y); padding-bottom: var(--section-y); }
.what-we-do .lead { margin-bottom: clamp(48px, 6vw, 80px); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: clamp(20px, 2vw, 28px); }
.pillar {
  position: relative; min-height: 880px; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: var(--obsidian); color: var(--chalk);
}
.pillar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pillar::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,18,18,0) 30%, rgba(18,18,18,0.35) 55%, rgba(18,18,18,0.6) 100%);
}
.pillar .content {
  position: relative; padding: 140px clamp(28px, 3.5vw, 48px) clamp(28px, 3.5vw, 48px);
  background: linear-gradient(180deg, rgba(18,18,18,0) 0, rgba(18,18,18,0.88) 130px, rgba(18,18,18,0.95) 100%);
}
.pillar .tag {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 8px 16px 8px 10px; color: var(--chalk);
  font-family: var(--ui); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.pillar .tag img { width: 28px; height: 28px; padding: 3px; background: var(--chalk); border-radius: 50%; }
.pillar.walls .tag { background: var(--summit); }
.pillar.supply .tag { background: var(--rope); }
.pillar h3 { font-size: clamp(40px, 3.8vw, 58px); line-height: 1; margin-bottom: 14px; }
.pillar p { max-width: 30em; margin-bottom: 24px; color: var(--limestone); }
.pillar ul { list-style: none; padding: 0; border-top: 1px solid rgba(246, 244, 239, 0.4); }
.pillar.supply ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); column-gap: 28px; }
.pillar li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(246, 244, 239, 0.22); }
.pillar li .hold { width: 14px; height: 12px; margin-top: 7px; }

/* ---------- What we believe ---------- */
.beliefs { position: relative; overflow: hidden; background: var(--obsidian); color: var(--chalk); }
.beliefs > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% center; }
.beliefs .wrap { position: relative; display: flex; justify-content: flex-start; padding-top: clamp(120px, 14vw, 220px); padding-bottom: clamp(120px, 14vw, 220px); }
.beliefs .panel { flex: 0 1 760px; min-width: 0; background: rgba(43, 91, 132, 0.95); padding: clamp(36px, 5vw, 72px) clamp(24px, 4.5vw, 64px); }
.beliefs h2 { font-size: clamp(40px, 4.6vw, 72px); line-height: 1; letter-spacing: -0.01em; max-width: 12em; margin-bottom: 40px; }
.beliefs ol { list-style: none; padding: 0; margin: 0; }
.beliefs li { display: flex; gap: 20px; align-items: baseline; padding: 26px 0 28px; border-top: 1px solid rgba(246, 244, 239, 0.3); }
.beliefs li:last-child { padding-bottom: 4px; }
.beliefs li .n { flex: 0 0 36px; font-size: 21px; color: var(--yellow); }
.beliefs h3 { font-size: clamp(28px, 2.5vw, 36px); line-height: 1.06; margin-bottom: 8px; }
.beliefs li p { color: var(--limestone); }

/* ---------- Interlude ---------- */
.interlude { position: relative; min-height: 760px; display: flex; align-items: flex-end; background: var(--obsidian); color: var(--chalk); overflow: hidden; }
.interlude > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.interlude::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,18,18,0.7) 0%, rgba(18,18,18,0) 55%); }
.interlude .wrap { position: relative; z-index: 1; width: 100%; padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.interlude blockquote { margin: 0; max-width: 13em; font-family: var(--head); font-style: italic; font-weight: 500; font-size: clamp(38px, 4.8vw, 74px); line-height: 1.04; }
.interlude blockquote span { color: var(--yellow); }

/* ---------- How we work ---------- */
.how { position: relative; overflow: hidden; }
.how .wrap { display: flex; flex-wrap: wrap; align-items: center; padding-top: var(--section-y); padding-bottom: var(--section-y); }
.how .photo { flex: 5 1 420px; min-width: 0; align-self: stretch; min-height: 720px; position: relative; overflow: hidden; background: var(--limestone); }
.how .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.how .card-wrap { flex: 7 1 560px; min-width: 0; position: relative; z-index: 1; margin: -40px 0 0 min(0px, calc((100vw - 1000px) * -0.25)); }
.how .card { background: #FFFFFF; padding: clamp(32px, 4.5vw, 64px); box-shadow: 0 0 0 1px var(--limestone); }
.how h2 { font-size: clamp(40px, 4.6vw, 72px); line-height: 1; letter-spacing: -0.01em; max-width: 11em; margin-bottom: 20px; }
.how .lead { font-size: clamp(19px, 1.5vw, 22px); max-width: 32em; margin-bottom: 36px; }
.principles { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--obsidian); }
.principles li { display: flex; gap: 24px; align-items: flex-start; padding: 26px 0 28px; border-bottom: 1px solid var(--limestone); }
.principles .hold { width: 34px; height: 30px; margin-top: 4px; }
.principles .hold.yellow { border: 1.5px solid var(--obsidian); }
.principles h3 { font-size: 30px; line-height: 1.1; margin-bottom: 6px; }
.principles p { color: var(--body-grey); }

/* ---------- About ---------- */
.about { position: relative; overflow: hidden; background: var(--obsidian); color: var(--obsidian); }
.about .wrap { display: flex; flex-wrap: wrap; flex-direction: row-reverse; align-items: center; padding-top: var(--section-y); padding-bottom: var(--section-y); }
.about .photo { flex: 5 1 420px; min-width: 0; align-self: stretch; min-height: 720px; position: relative; overflow: hidden; background: #262626; }
.about .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.about .card-wrap { flex: 7 1 560px; min-width: 0; position: relative; z-index: 1; margin: -40px min(0px, calc((100vw - 1000px) * -0.25)) 0 0; }
.about .card { background: var(--chalk); padding: clamp(32px, 4.5vw, 64px); }
.about .eyebrow { color: var(--granite); margin-bottom: 28px; }
.about .person { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 28px; }
.about .portrait { width: 132px; height: 132px; object-fit: cover; object-position: center 30%; }
.about h2 { font-size: clamp(40px, 4vw, 56px); line-height: 1.02; margin-bottom: 6px; }
.about .role { font-family: var(--ui); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rope); }
.about .bio { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.6; color: var(--body-grey); }
.about .bio + .bio { margin-top: 16px; }
.about .story { margin: 30px 0 24px; padding: 24px 28px 26px; background: var(--obsidian); color: var(--chalk); }
.about .story .label { display: inline-block; margin-bottom: 12px; padding: 4px 10px; background: var(--yellow); color: var(--obsidian); font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.about .story p:last-child { font-family: var(--head); font-style: italic; font-weight: 500; font-size: clamp(22px, 1.9vw, 27px); line-height: 1.35; }

.text-link { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--ui); font-size: 14px; font-weight: 500; text-underline-offset: 5px; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: var(--yellow); color: var(--obsidian); }
.contact .karabiner { position: absolute; right: -80px; top: 50%; width: clamp(280px, 34vw, 520px); height: auto; transform: translateY(-50%) rotate(-18deg); opacity: 0.9; pointer-events: none; }
.contact .wrap { position: relative; padding-top: clamp(80px, 10vw, 136px); padding-bottom: clamp(80px, 10vw, 136px); }
.contact .eyebrow { color: var(--obsidian); font-weight: 600; }
.contact h2 { font-size: clamp(52px, 7vw, 116px); line-height: 0.96; letter-spacing: -0.015em; max-width: 9em; margin-bottom: 24px; }
.contact p { max-width: 30em; margin-bottom: 40px; font-size: clamp(19px, 1.5vw, 22px); }
.contact .links { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }
.contact .email { display: inline-flex; align-items: center; min-height: 52px; font-family: var(--head); font-weight: 600; font-size: clamp(30px, 3vw, 44px); text-underline-offset: 8px; text-decoration-thickness: 2px; overflow-wrap: anywhere; }
.contact .button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--obsidian); text-decoration: none; font-family: var(--ui); font-size: 14px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--obsidian); color: var(--stone); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center; padding-top: 48px; padding-bottom: 48px; font-size: 14px; line-height: 1.6; }
.site-footer .logo img { width: 120px; height: auto; }
.site-footer .legal { flex: 1 1 460px; min-width: 0; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--ui); font-size: 14px; }

/* ---------- Simple pages (privacy, 404) ---------- */
.page-header { background: var(--obsidian); color: var(--chalk); }
.page-header .site-header { padding-bottom: 28px; }
.page-hero { background: var(--obsidian); color: var(--chalk); }
.page-hero .wrap { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero h1 { font-size: clamp(46px, 6vw, 96px); line-height: 1; letter-spacing: -0.01em; max-width: 12em; }
.page-hero .eyebrow { color: var(--stone); }
.prose .wrap { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(72px, 9vw, 120px); }
.prose .inner { max-width: 40em; }
.prose h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 16px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--granite); font-style: italic; }
.page-404 { min-height: 100vh; display: flex; flex-direction: column; background: var(--obsidian); color: var(--chalk); }
.page-404 .page-hero { flex: 1; display: flex; align-items: center; }
.page-404 .page-hero .wrap { width: 100%; }
.page-404 p { max-width: 30em; margin-top: 24px; font-size: clamp(19px, 1.5vw, 22px); color: var(--limestone); }
.page-404 .text-link { margin-top: 24px; color: var(--yellow); }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 18px; }
  .pillar { min-height: 640px; }
  .pillar .content { padding-top: 260px; background: linear-gradient(180deg, rgba(18,18,18,0) 0, rgba(18,18,18,0.88) 250px, rgba(18,18,18,0.95) 100%); }
  .beliefs { background: var(--summit); }
  .beliefs > img { position: relative; inset: auto; height: auto; aspect-ratio: 3 / 2; object-position: 65% center; }
  .beliefs .wrap { padding: 0; }
  .beliefs .panel { background: var(--summit); }
  .focus dl { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .focus .item { gap: 10px; padding: 22px 0 24px; }
  .focus .hold { width: 14px; height: 12px; }
  .focus dt { font-size: 11px; letter-spacing: 0.14em; }
  .focus dd { font-size: 19px; }
  .how .photo { min-height: 440px; }
  .about .photo { min-height: 360px; }
  .about .card-wrap { margin: -40px 0 0; }
  .about .portrait { width: 104px; height: 104px; }
  .interlude { min-height: 520px; }
  .ghost-num { display: none; }
  .contact .karabiner { top: auto; bottom: -70px; right: -90px; width: 260px; transform: rotate(-18deg); opacity: 0.22; }
}
