@font-face {
  font-family: "Figtree";
  src: url("assets/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

/* Colours from the Southern Tourism Solutions logo: navy, fiord blue, bush green. */
:root {
  color-scheme: light only;
  --paper: #f4f5f1;
  --navy: #0b2d46;
  --navy-2: #3a4b57;
  --green: #3f6645;
  --green-dark: #2f4f35;
  --blue: #4780ae;
  --rule: #d2d9d3;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 450 17px/1.6 "Figtree", system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--navy); color: var(--paper); padding: 10px 14px; z-index: 30; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.hero__media img, .panel__photo img { filter: saturate(.9) contrast(1.04); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: 650 14px/1 "Figtree", sans-serif; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; border: 1.5px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--paper { background: var(--paper); color: var(--navy); }
.btn--paper:hover { background: transparent; color: var(--paper); border-color: var(--paper); }
.link { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.link:hover { opacity: .75; }

/* ---------- Nav: sits on the photo, turns solid once scrolled ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; color: var(--paper); transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s; }
.nav::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(to bottom, rgba(6, 22, 34, .55), rgba(6, 22, 34, 0)); pointer-events: none; transition: opacity .35s; }
.nav.is-solid { background: var(--paper); color: var(--navy); box-shadow: 0 1px 0 var(--rule); }
.nav.is-solid::before { opacity: 0; }
.nav__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 80px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.15; }
.brand img { content: url("assets/mark-light.png"); }
.nav.is-solid .brand img { content: url("assets/mark.png"); }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 14px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.nav__links a:hover { opacity: .7; }
.nav__cta { min-height: 44px; padding: 0 22px; }
.nav.is-solid .nav__cta { background: var(--navy); color: var(--paper); }
@media (max-width: 899px) {
  .nav__inner { height: 68px; gap: 12px; }
  .nav__links { display: none; }
  .brand { font-size: 15px; }
  .nav__cta { min-height: 42px; padding: 0 18px; }
}

/* ---------- Hero: full-screen fiord ---------- */
.hero { position: relative; min-height: 100dvh; display: grid; align-items: end; color: var(--paper); }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 55%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 22, 34, .82) 0%, rgba(6, 22, 34, .45) 34%, rgba(6, 22, 34, 0) 60%); pointer-events: none; }
.hero__copy { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 7vh, 80px); }
.hero__title { font-size: clamp(2.3rem, 5.4vw, 5rem); line-height: 1.02; font-weight: 700; letter-spacing: -.03em; max-width: 18ch; }
.hero__lede { margin-top: 20px; font-size: clamp(18px, 1.5vw, 21px); max-width: 40ch; color: #e8eee9; }
.hero__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; }

.js .hero__copy > * { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero__media img { transform: scale(1.05); transition: transform 1.8s var(--ease); }
.is-loaded .hero__copy > * { opacity: 1; transform: none; }
.is-loaded .hero__copy > :nth-child(2) { transition-delay: .1s; }
.is-loaded .hero__copy > :nth-child(3) { transition-delay: .2s; }
.is-loaded .hero__media img { transform: none; }

/* ---------- About: one big statement ---------- */
.about { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 168px) var(--gutter); }
.about__lead { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.22; font-weight: 600; letter-spacing: -.02em; max-width: 30ch; }
.about__cols { margin-top: clamp(32px, 4vw, 56px); margin-left: auto; max-width: 760px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; color: var(--navy-2); }
@media (max-width: 899px) { .about__cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Services: tabs ---------- */
.section-title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.services { background: #e6ebe5; }
.services__head { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--paper); border-radius: 999px; }
.tabs button {
  border: 0; background: transparent; color: var(--navy); cursor: pointer; border-radius: 999px;
  font: 600 16px/1 "Figtree", sans-serif; padding: 13px 20px; white-space: nowrap; transition: background .25s, color .25s;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--paper); }
.panel { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) clamp(64px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.panel[hidden] { display: none; }
.panel__list > div { padding: 22px 0; border-top: 1px solid #c6cfc7; }
.panel__list dt { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.panel__list dd { margin-top: 4px; color: var(--navy-2); }
.panel__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; }
.panel__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .services__head { flex-direction: column; align-items: stretch; }
  .services__head > * { min-width: 0; }
  .tabs { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border-radius: 22px; }
  .tabs button { padding: 12px 10px; font-size: 15px; line-height: 1.2; white-space: normal; border-radius: 18px; }
  .panel { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .panel__photo { order: -1; aspect-ratio: 16 / 10; }
}

/* ---------- Articles ---------- */
.articles { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.articles__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.articles__list a { display: grid; gap: 10px; height: 100%; padding: 28px 28px 30px; background: #fff; border: 1px solid var(--rule); border-radius: 18px; text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.articles__list a:hover { border-color: var(--navy); transform: translateY(-2px); }
.articles__title { font-size: clamp(21px, 1.9vw, 25px); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.articles__note { color: var(--navy-2); }
.articles__go { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green); }
@media (max-width: 899px) { .articles__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact: the brand green block ---------- */
.contact { background: var(--green); color: var(--paper); }
.contact__inner { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 144px) var(--gutter); }
.contact__title { font-size: clamp(34px, 4.8vw, 64px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; max-width: 20ch; }
.contact__inner > p { margin-top: 20px; font-size: clamp(18px, 1.6vw, 21px); color: #e1ebe2; max-width: 52ch; }
.contact__ways { margin: 40px 0; display: flex; flex-wrap: wrap; gap: 24px 56px; }
.contact__ways a { display: grid; gap: 2px; text-decoration: none; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.015em; }
.contact__ways a span { font-size: 15px; font-weight: 500; letter-spacing: 0; color: #d5e2d6; }
.contact__ways a:hover { opacity: .8; }

/* ---------- Footer ---------- */
.footer { background: var(--green-dark); color: #d5e2d6; }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; font-size: 15px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--paper); }
.footer__brand img { content: url("assets/mark-light.png"); }
.footer__concept { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 28px; font-size: 14px; }

/* ---------- Reveal ---------- */
.js [data-reveal] { transform: translateY(18px); transition: transform .9s var(--ease); }
.js [data-reveal].is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__copy > *, .js .hero__media img, .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Footer links ---------- */
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(244,245,241,.4); }
.footer__links a:hover { border-color: var(--paper); }

/* ---------- Text pages (Clipper app pages) ---------- */
.doc { min-height: calc(100dvh - 96px); max-width: 760px; margin: 0 auto; padding: 136px var(--gutter) clamp(64px, 9vw, 120px); }
.doc h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; }
.doc h2 { margin-top: 40px; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.doc p, .doc ul { margin: 14px 0 0; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--green); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc .doc__date { margin-top: 10px; color: var(--navy-2); }
@media (max-width: 899px) { .doc { padding-top: 108px; } }
