/* Carraighill: values taken from the design build (Carraighill Home.html). */

:root {
  --navy: #091C2B;
  --ink: #0d1d31;
  --paper: #f3f3f3;
  --footer: #060d16;
  --white: #ffffff;
  /* --accent, --accent-deep, --accent-light are injected by base.html */

  --hairline: rgba(9, 28, 42, .14);
  --hairline-dark: rgba(255, 255, 255, .14);

  --serif: "Playfair Display", serif;
  --sans: "Noto Sans", sans-serif;
  --nav-h: 72px;
  --side: clamp(24px, 10vw, 180px);
  --ease: cubic-bezier(.65, 0, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--accent); text-decoration: none; }
::selection { background: rgba(147, 125, 62, .25); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; }

@keyframes cgRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hex { display: block; flex: none; fill: var(--accent); }
.spacer { flex: 1; }

/* ---------------------------------------------------------------- Shared type */

.kicker {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 18px;
}
.section--navy .kicker { color: var(--accent-light); }

.section-title {
  font: 400 clamp(30px, 4vw, 54px)/1.12 var(--serif);
  color: var(--navy);
}
.section--navy .section-title { color: var(--white); }
.section-title--spaced { margin-bottom: 24px; }

.body-copy { font-size: 16px; line-height: 1.72; font-weight: 300; }

/* ---------------------------------------------------------------- Sections */

.section { padding: clamp(80px, 11vh, 140px) var(--side); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); }
.section__inner { max-width: 1220px; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(36px, 5vh, 64px);
}
.section-head__note { max-width: 46ch; font-size: 14px; line-height: 1.7; font-weight: 300; color: rgba(255, 255, 255, .62); }

.underline-link {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-deep);
  padding-bottom: 5px;
}

.text-button {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.text-button:hover { color: var(--white); }

/* ---------------------------------------------------------------- Nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(6, 13, 22, .94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px);
}
.nav__logo { display: flex; align-items: center; color: var(--white); }
.nav__logo img { width: 150px; height: auto; }
.nav__right { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); margin-left: 32px; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav__links a {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--white); }
.nav__login {
  color: var(--white);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .35);
  padding: 9px 18px;
  white-space: nowrap;
}
.nav__login:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 1099px) { .nav__links { display: none; } }

/* ---------------------------------------------------------------- 1 Hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(0.4turn, #0d1d31 20%, #04080e 100%);
  overflow: hidden;
}
.hero__pattern { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; }
.hero__pattern polygon { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: .5; }
.hero__pattern circle { fill: rgba(255, 255, 255, .26); }
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 22% 50%, rgba(4, 8, 14, .2) 0%, rgba(4, 8, 14, .85) 70%);
}
.hero__inner {
  position: relative;
  padding: 120px var(--side) 100px;
  max-width: 1500px;
  animation: cgRise .9s ease both;
}
.hero__title { display: flex; flex-direction: column; font-family: var(--serif); font-weight: 400; color: #f0ebdf; }
.hero__name { font-size: clamp(40px, 6.4vw, 72px); line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.hero__tagline { margin-top: .35em; font-size: clamp(18px, 2.2vw, 26px); font-style: italic; line-height: 1.2; letter-spacing: .01em; }
.hero__rule { width: min(520px, 70vw); height: 1px; background: rgba(255, 255, 255, .55); margin: 36px 0 34px; }
.hero__copy { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.hero__copy p { color: rgba(255, 255, 255, .8); font-weight: 200; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.6; letter-spacing: .02em; }
.hero__copy p:first-child { color: var(--white); font-size: clamp(16px, 1.5vw, 21px); line-height: 1.5; }

/* ---------------------------------------------------------------- 2 Approach */

.approach { position: relative; background: var(--paper); height: 360vh; }
.approach__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.approach__mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, .18) calc(50% - 6px), #000 50%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, .18) calc(50% - 6px), #000 50%);
}
.approach__copy {
  position: relative;
  align-self: flex-start;
  margin-top: max(96px, calc(50vh - 250px));
  padding-left: var(--side);
  width: var(--colw, 420px);
  box-sizing: content-box;
}
.approach__step { display: none; pointer-events: none; }
.approach__step.is-active { display: block; animation: cgRise .45s ease both; }
.approach__step:not(.approach__step--intro) { position: absolute; left: var(--side); right: 0; top: 36px; }
.approach__step--intro .section-title { margin-bottom: 20px; }
.approach__step--intro p { font-size: 16px; line-height: 1.72; font-weight: 300; color: rgba(9, 28, 42, .72); max-width: 44ch; }
.approach__num { font: 400 30px/1 var(--serif); color: var(--accent); margin-bottom: 10px; }
.approach__step:not(.approach__step--intro) p { font-size: 16px; line-height: 1.6; font-weight: 300; max-width: 46ch; }
.approach__step p + p { margin-top: 12px; }
.approach__step strong { font-weight: 600; }
.approach__bars { display: flex; gap: 6px; margin-top: 22px; }
.approach__bars span { display: block; width: 26px; height: 2px; background: rgba(9, 28, 42, .18); }
.approach__bars span.is-on { background: var(--accent); }

/* ---------------------------------------------------------------- 3 Monthly Data */

.monthly__copy { display: flex; flex-direction: column; gap: 18px; }
.monthly__copy p { font-size: 16px; line-height: 1.72; font-weight: 300; }
.monthly__copy p.is-strong { font-weight: 600; }

.carousel { margin-top: clamp(48px, 7vh, 88px); }
.carousel__row { display: flex; align-items: stretch; gap: 16px; }
.carousel__arrow {
  flex: none;
  width: 44px;
  background: transparent;
  border: 0;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: color .2s, transform .2s;
}
.carousel__arrow[data-dir="-1"]:hover { color: var(--accent-deep); transform: translateX(-3px); }
.carousel__arrow[data-dir="1"]:hover { color: var(--accent-deep); transform: translateX(3px); }
.carousel__viewport { flex: 1; min-width: 0; overflow: hidden; border: 1px solid var(--hairline); }
.carousel__track { --per-page: 3; display: flex; transition: transform .7s var(--ease); }
.carousel__counter {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(9, 28, 42, .55);
  text-align: right;
}

.tile {
  flex: 0 0 calc(100% / var(--per-page));
  border-right: 1px solid var(--hairline);
  background: var(--paper);
  padding: 26px 22px;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: background .25s;
}
.tile:hover { background: var(--white); }
.tile p { font-size: 14px; line-height: 1.5; font-weight: 400; }

/* ---------------------------------------------------------------- 4 Companies */

#companies .body-copy { margin-bottom: 18px; }
.coverage-label { margin-bottom: 16px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(9, 28, 42, .55); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { border: 1px solid rgba(9, 28, 42, .2); padding: 8px 16px; font-size: 13px; letter-spacing: .06em; }

.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feature-list li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.feature-list span { font-size: 15px; letter-spacing: .08em; }

/* ---------------------------------------------------------------- 5 Reports */

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1px;
  background: var(--hairline-dark);
  border: 1px solid var(--hairline-dark);
}
.report {
  background: var(--navy);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 246px; /* design: 190px content + 56px padding (content-box) */
}
.report:hover { background: #0d2637; }
.report__title { font: 400 22px/normal var(--serif); color: var(--white); }
.report__subtitle { flex: 1; font-size: 14px; line-height: 1.55; font-weight: 300; color: rgba(255, 255, 255, .7); }

.report-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1px;
  background: var(--hairline-dark);
  border: 1px solid var(--hairline-dark);
  animation: cgRise .4s ease both;
}
.report-detail > div { padding: clamp(28px, 3.4vw, 48px); min-height: 381px; display: flex; flex-direction: column; }
.report-detail__info { background: #0d2637; gap: 18px; }
.report-detail__info .kicker { margin: 0; }
.report-detail__form { background: var(--navy); }
.report-detail__title { font: 400 clamp(30px, 3.4vw, 46px)/1.12 var(--serif); color: var(--white); }
.report-detail__subtitle { font-size: 17px; line-height: 1.6; font-weight: 300; color: rgba(255, 255, 255, .78); max-width: 36ch; text-wrap: pretty; }
.report-detail__note { font-size: 13px; line-height: 1.65; font-weight: 300; color: rgba(255, 255, 255, .55); max-width: 44ch; }
.report-detail__form .form { flex: 1; gap: 22px; }
.form__kicker { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }

/* ---------------------------------------------------------------- Forms */

.form { display: flex; flex-direction: column; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.field em { font-style: normal; letter-spacing: .08em; text-transform: none; color: rgba(255, 255, 255, .42); }
.field input, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  border-radius: 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 300;
  padding: 8px 0;
  outline: none;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent-light); }
.field.is-invalid input { border-bottom-color: #e09a8c; }
.field.is-invalid > span::after { content: " — " attr(data-error); color: #e09a8c; letter-spacing: .08em; text-transform: none; }

.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #937D3E; cursor: pointer; }
.check span { font-size: 13px; line-height: 1.6; font-weight: 300; color: rgba(255, 255, 255, .72); text-wrap: pretty; }
.check.is-invalid span { color: #e09a8c; }

.btn {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 13px 26px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:disabled { opacity: .6; cursor: wait; }
.btn--outline-gold { background: transparent; border: 1px solid var(--accent); color: var(--accent-light); }
.btn--outline-gold:hover { background: var(--accent); color: var(--navy); }
.btn--gold { min-height: 48px; padding: 13px 30px; background: var(--accent); border: 1px solid var(--accent); color: var(--navy); }
.btn--gold:hover { background: var(--accent-light); border-color: var(--accent-light); }

.form__status { min-height: 1em; font-size: 13px; color: #e09a8c; }
.form__status:empty { display: none; }

.sent { display: flex; flex-direction: column; gap: 16px; flex: 1; justify-content: center; animation: cgRise .4s ease both; }
.sent .kicker { margin: 0; }
.sent__title { font: 400 30px/1.2 var(--serif); color: var(--white); }
.sent__title--lg { font-size: 32px; }
.sent p { font-size: 15px; line-height: 1.7; font-weight: 300; color: rgba(255, 255, 255, .72); max-width: 40ch; }

/* ---------------------------------------------------------------- 6 Insights */

.insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(24px, 3vw, 44px); }
.insight { display: flex; flex-direction: column; gap: 16px; }
/* 3:2 as rendered in the design (its image-slot default overrides the 16:10 frame). */
.insight__image { display: block; aspect-ratio: 3 / 2; background: var(--ink); overflow: hidden; }
.insight__image img { width: 100%; height: 100%; object-fit: cover; }
.insight__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(127, 127, 127, .08);
  border: 1px dashed rgba(255, 255, 255, .14);
  color: rgba(147, 155, 165, .55);
  font-size: 13px;
  font-weight: 500;
}
.insight__title { font: 400 20px/1.3 var(--serif); }
.insight__title a { color: var(--navy); }
.insight p { font-size: 14px; line-height: 1.68; font-weight: 300; color: rgba(9, 28, 42, .78); }
.insight__more { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-deep); }
.insight .insight__meta { font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: rgba(9, 28, 42, .55); }
.insight__title a:hover { color: var(--accent-deep); }

/* Placeholders while the insights load (static/js/insights.js) */
.insight__bar { display: block; height: 18px; background: rgba(9, 28, 42, .07); }
.insight__bar--short { width: 60%; }
.insight--loading .insight__image { background: rgba(9, 28, 42, .07); }
@media (prefers-reduced-motion: no-preference) {
  .insight--loading > * { animation: insight-pulse 1.4s ease-in-out infinite alternate; }
}
@keyframes insight-pulse { from { opacity: .55; } to { opacity: 1; } }
.insights__status { margin-top: 24px; font-size: 14px; font-weight: 300; color: rgba(9, 28, 42, .7); }
.insights__more { margin: 48px auto 0; display: block; }

/* /insights/ */
.insights-page { padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px)); min-height: 70vh; }
.insights-page__intro { max-width: 60ch; margin-bottom: clamp(32px, 5vw, 56px); }

/* /insights/<slug>/ */
.article { padding: calc(var(--nav-h) + clamp(40px, 7vw, 88px)) 0 clamp(64px, 9vw, 120px); background: var(--white); }
.article__inner { width: min(720px, 100% - 2 * var(--side)); margin: 0 auto; }
@media (max-width: 640px) { .article__inner { width: calc(100% - 32px); } }
.article__back { display: inline-block; margin-bottom: 32px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-deep); }
.article__meta { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(9, 28, 42, .55); min-height: 1em; }
.article__title { margin: 16px 0 40px; font: 400 clamp(30px, 4.4vw, 46px)/1.15 var(--serif); color: var(--navy); }
.article__title .insight__bar { height: 46px; }
.article__hero { margin: 0 auto 48px; width: min(1040px, 100% - 2 * var(--side)); }
.article__hero img { width: 100%; height: auto; }
.article__body { font-size: 17px; line-height: 1.75; font-weight: 300; color: rgba(9, 28, 42, .88); }
.article__body > * + * { margin-top: 1.1em; }
.article__body h2, .article__body h3, .article__body h4 { margin-top: 1.8em; font: 400 26px/1.25 var(--serif); color: var(--navy); }
.article__body h3 { font-size: 22px; }
.article__body h4, .article__body h5, .article__body h6 { font-size: 19px; }
.article__body strong { font-weight: 600; color: var(--navy); }
.article__body a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.article__body ul, .article__body ol { padding-left: 1.4em; }
.article__body li + li { margin-top: .4em; }
.article__body blockquote { margin-left: 0; padding-left: 20px; border-left: 2px solid var(--accent); font-style: italic; }
.article__body pre { overflow-x: auto; padding: 16px; background: var(--paper); font-size: 14px; }
.article__body figure { margin: 2em 0; }
.article__body img { width: auto; max-width: 100%; height: auto; margin: 0 auto; }
.article__body figcaption { margin-top: 8px; font-size: 13px; color: rgba(9, 28, 42, .6); text-align: center; }

/* ---------------------------------------------------------------- 7 Trial */

.trial { max-width: 760px; }
.trial__form { gap: 26px; }
.trial__head { display: flex; flex-direction: column; gap: 14px; }
.trial__head .kicker { margin: 0; }
.trial__title { font: 400 clamp(28px, 3vw, 38px)/1.15 var(--serif); color: var(--white); }
.trial__head p { font-size: 15px; line-height: 1.65; font-weight: 300; color: rgba(255, 255, 255, .72); max-width: 52ch; text-wrap: pretty; }
.trial__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.trial .sent { padding: 0; }
.trial .sent p { max-width: 44ch; }

/* ---------------------------------------------------------------- 8 Footer */

.footer { background: var(--footer); padding: clamp(64px, 9vh, 110px) var(--side) 44px; }
.footer__grid {
  max-width: 1220px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.footer__logo img { width: 170px; height: auto; margin-bottom: 24px; }
.footer__about { font-size: 14px; line-height: 1.7; font-weight: 300; color: rgba(255, 255, 255, .62); max-width: 40ch; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col--clients { gap: 16px; align-items: flex-start; }
.footer__heading { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .42); }
.footer__col:not(.footer__col--clients) .footer__heading { margin-bottom: 6px; }
.footer__col a:not(.footer__login) { font-size: 14px; font-weight: 300; color: rgba(255, 255, 255, .8); }
.footer__login {
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 13px 26px;
}
.footer__login:hover { background: var(--accent); color: var(--footer); }
.footer__legal {
  max-width: 1220px;
  margin-top: clamp(40px, 6vh, 72px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__legal p { font-size: 11.5px; line-height: 1.75; color: rgba(255, 255, 255, .45); max-width: 110ch; }
.footer__legal p:last-child { line-height: normal; }
.footer__cookies {
  margin-left: 18px; padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.footer__cookies:hover { color: rgba(255, 255, 255, .8); }

/* ---------------------------------------------------------------- Cookie consent (Google Analytics) */

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap;
  padding: 22px var(--side);
  background: var(--navy);
  border-top: 1px solid var(--hairline-dark);
  animation: cgRise .4s ease both;
}
.consent__text { margin: 0; font-size: 14px; line-height: 1.6; font-weight: 300; color: rgba(255, 255, 255, .78); max-width: 70ch; }
.consent__actions { display: flex; gap: 12px; }
.consent .btn--gold { min-height: 0; }

/* ---------------------------------------------------------------- Phones (no mobile build in the design file) */

@media (max-width: 860px) {
  .carousel__track { --per-page: 1; }
  .carousel__row { gap: 8px; }
  .carousel__arrow { width: 32px; }

  /* Approach: copy on top, terrain below the horizon (approach.js mobile geometry). */
  .approach__mesh { -webkit-mask-image: none; mask-image: none; }
  .approach__copy { width: auto; margin-top: calc(var(--nav-h) + 28px); padding-right: var(--side); box-sizing: border-box; }
  .approach__step:not(.approach__step--intro) { right: var(--side); }
  .approach__step p { font-size: 14px !important; line-height: 1.55 !important; }
}

@media (max-width: 560px) {
  .trial__grid { grid-template-columns: 1fr; }
}

/* 404 page */
.not-found { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; }
.not-found__text { margin-top: 24px; color: rgba(255, 255, 255, .8); }
