/* =========================================================
   Belugga — dark theme
   Deep harbour navy, limestone text, sandstone accent.
   ========================================================= */

:root {
  --ink:        #0f1620;   /* page background */
  --harbour:    #16202c;   /* raised surfaces */
  --harbour-2:  #1c2836;
  --rule:       #2a3644;
  --rule-soft:  #212c39;

  --limestone:  #ece7de;   /* primary text */
  --slate:      #a3adb9;   /* secondary text */
  --slate-dim:  #76818e;

  --sand:       #cfaa6e;   /* accent: links, highlights */
  --sand-deep:  #b38d52;

  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--limestone);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a {
  color: var(--sand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(207, 170, 110, 0.45);
  transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { text-decoration-color: var(--sand); }

:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-weight: 600;
  color: var(--limestone);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

p { margin: 0 0 1em; color: var(--slate); max-width: 68ch; }
strong { color: var(--limestone); font-weight: 600; }

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--slate);
  max-width: 60ch;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================
   Header / Nav
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 22, 32, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--limestone);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.97rem;
}
.nav-links a {
  color: var(--slate);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--limestone); }
.nav-links a.active {
  color: var(--limestone);
  border-bottom-color: var(--sand);
}
.nav-links a.nav-cta {
  color: var(--ink);
  background: var(--limestone);
  padding: 8px 16px;
  border-radius: var(--radius);
  border: none;
  font-weight: 500;
}
.nav-links a.nav-cta:hover { background: #fff; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  width: 42px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--limestone);
  transform: translateX(-50%);
  transition: transform .2s ease, top .2s ease, background .2s ease;
}
.menu-toggle .bars { top: 50%; margin-top: -1px; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after  { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after  { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* =========================================================
   Buttons
   ========================================================= */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--sand);
  color: #1a1307;
}
.btn-primary:hover { background: #dbb87e; }
.btn-secondary {
  color: var(--limestone);
  border-color: var(--rule);
}
.btn-secondary:hover { border-color: var(--slate-dim); }

/* =========================================================
   Sections
   ========================================================= */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}
.section + .section { border-top: 1px solid var(--rule-soft); }
.section.section-flush { padding-top: 0; }
.band + .section { padding-top: clamp(40px, 5vw, 64px); }
.band + .section .container > .skills:first-child { margin-top: 0; }
.section.tinted { background: var(--harbour); border-top: none; }
.section.tinted + .section { border-top: none; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.split-head { position: sticky; top: 108px; }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }

.photo {
  margin: 0;
  position: relative;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  filter: saturate(0.85);
}
.photo figcaption {
  font-size: 0.85rem;
  color: var(--slate-dim);
  margin-top: 10px;
}
.hero .photo img { aspect-ratio: 4 / 5; }

/* Page intro (inner pages) */
.page-intro {
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
}
.page-intro h1 { max-width: 18ch; }

/* =========================================================
   Facts strip
   ========================================================= */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(48px, 6vw, 80px) 0 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.facts > div {
  padding: 26px 24px 26px 0;
}
.facts > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}
.facts dt {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--limestone);
  line-height: 1.2;
}
.facts dd {
  margin: 4px 0 0;
  color: var(--slate);
  font-size: 0.95rem;
}

/* =========================================================
   Service list (rows, not cards)
   ========================================================= */

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.service-list li {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.service-list h3 { margin: 0; }
.service-list p { margin: 0; font-size: 1rem; }

.more-link {
  display: inline-block;
  margin-top: 28px;
  font-weight: 500;
}

/* =========================================================
   Photo band (full-bleed)
   ========================================================= */

.band {
  position: relative;
  min-height: clamp(320px, 46vw, 540px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--harbour);
}
.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 22, 32, 0.92) 0%, rgba(15, 22, 32, 0.6) 50%, rgba(15, 22, 32, 0.15) 100%),
    linear-gradient(180deg, rgba(15, 22, 32, 0) 40%, rgba(15, 22, 32, 0.9) 100%);
}
.band .container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.band h2 { max-width: 20ch; margin-bottom: 14px; }
.band p { color: #c6ccd3; }

/* =========================================================
   Skills matrix
   ========================================================= */

.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.skills > div {
  padding: clamp(22px, 2.6vw, 32px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.skills h3 { margin-bottom: 6px; }
.skills p {
  font-size: 0.95rem;
  margin: 0 0 18px;
}
.skills ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.97rem;
}
.skills li {
  padding: 7px 0;
  border-top: 1px solid var(--rule-soft);
  color: var(--limestone);
}
.skills li:first-child { border-top: none; padding-top: 0; }

/* =========================================================
   Delivery process (a real sequence, so numbered)
   ========================================================= */

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  border-top: 1px solid var(--rule);
}
.process li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.process li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--sand);
  font-variant-numeric: tabular-nums;
}
.process h3 { margin: 0; }
.process p { margin: 0; font-size: 1rem; }

/* =========================================================
   Industry note
   ========================================================= */

.industry {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}
.industry ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--rule);
}
.industry li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--limestone);
}

/* =========================================================
   Two-column detail list (travel areas, principles)
   ========================================================= */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 5vw, 72px);
  margin-top: 48px;
}
.detail-grid.flush { margin-top: 0; }
.detail-grid h3 { margin-bottom: 8px; }
.detail-grid p { margin: 0; font-size: 1rem; }
.detail-grid > div {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

/* =========================================================
   Stack (technology)
   ========================================================= */

.stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.stack h3 {
  font-size: 1rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sand-deep);
  margin-bottom: 14px;
}
.stack ul {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--slate);
  font-size: 0.98rem;
}
.stack li { padding: 5px 0; }
.stack p { font-size: 0.95rem; margin-top: 14px; color: var(--slate-dim); }

/* =========================================================
   Timeline (about)
   ========================================================= */

.timeline {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.timeline li {
  position: relative;
  padding: 28px 24px 0 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--sand);
}
.timeline li:last-child::before { background: var(--sand); }
.timeline .year {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.timeline h3 { font-size: 1.02rem; margin-bottom: 8px; }
.timeline p { font-size: 0.95rem; margin: 0; }

/* =========================================================
   Closing call to action
   ========================================================= */

.cta {
  padding: clamp(64px, 8vw, 104px) 0;
  background: var(--harbour);
}
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px;
  align-items: end;
}
.cta h2 { margin-bottom: 12px; }
.cta p { margin: 0; }
.cta .actions { margin-top: 0; justify-content: flex-end; }

/* =========================================================
   Contact
   ========================================================= */

.contact-details {
  margin: 0;
  max-width: 560px;
  border-top: 1px solid var(--rule);
}
.contact-details > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.contact-details dt {
  font-size: 0.92rem;
  color: var(--slate-dim);
  margin-bottom: 4px;
}
.contact-details dd {
  margin: 0;
  font-size: 1.2rem;
  color: var(--limestone);
  line-height: 1.45;
}
.contact-details dd a {
  color: var(--limestone);
  text-decoration-color: var(--rule);
}
.contact-details dd a:hover { text-decoration-color: var(--sand); }


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--rule-soft);
  padding: 40px 0 48px;
  font-size: 0.92rem;
  color: var(--slate-dim);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-inner .brand { font-size: 1.1rem; display: inline-block; margin-bottom: 8px; }
.footer-inner p { margin: 0; color: var(--slate-dim); font-size: 0.92rem; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; }
.footer-inner li { padding: 2px 0; }
.footer-inner a { color: var(--slate); text-decoration: none; }
.footer-inner a:hover { color: var(--limestone); }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .timeline { grid-template-columns: 1fr; border-top: none; border-left: 1px solid var(--rule); margin-left: 4px; }
  .timeline li { padding: 0 0 32px 28px; }
  .timeline li::before { top: 6px; left: -5px; }
  .timeline .year { font-size: 1.6rem; margin-bottom: 8px; }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .hero-grid,
  .split,
  .cta-inner,
  .industry { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .hero .photo img { aspect-ratio: 16 / 10; }
  .cta .actions { justify-content: flex-start; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { padding-left: 0; border-left: none; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .nav-links.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear 0s;
  }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule-soft);
    font-size: 1.05rem;
    color: var(--limestone);
  }
  .nav-links a.active { border-bottom-color: var(--rule-soft); color: var(--sand); }
  .nav-links a.nav-cta { margin-top: 16px; text-align: center; padding: 12px 16px; }

  .service-list li { grid-template-columns: 1fr; gap: 6px; }
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .skills { grid-template-columns: 1fr; }
  .industry ul { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stack { grid-template-columns: 1fr; }
  .facts dt { font-size: 1.35rem; }
  .facts > div { padding-right: 12px; }
  .facts > div + div { padding-left: 12px; }
  .facts > div:nth-child(3) { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
