/* =========================================================
   Combo Lda — combodw.com
   Palette sampled from the hero photograph.
   ========================================================= */

:root {
  /* Colour */
  --ink: #171B21;
  --paper: #F5F1EA;
  --muted: #5B6068;
  --stone: #AE8962;
  --rust: #B04A2F;
  --rule: rgba(23, 27, 33, 0.14);
  --band-2: #E3DFD8;
  --band-3: #CFCCC6;
  --header-ink: var(--paper);

  /* Type */
  --font: "Lato", ui-sans-serif, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --step-eyebrow: 0.8125rem;
  --step-body: 1.0625rem;
  --step-lede: clamp(1.125rem, 1.6vw, 1.375rem);
  --step-item: clamp(1.25rem, 2.2vw, 1.75rem);
  --step-h1: clamp(2.25rem, 8vw, 6.5rem);

  /* Space */
  --gutter: clamp(1.5rem, 6vw, 6rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);
  --measure: 46ch;
  --header-h: 3.5rem;
  --maxw: 84rem;
}

@media (min-width: 48em) {
  :root { --header-h: 4rem; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -100vw;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-size: var(--step-eyebrow);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-h);
  color: var(--header-ink);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--paper);
  border-bottom-color: var(--rule);
  --header-ink: var(--ink);
}

.site-header__inner {
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-size: var(--step-eyebrow);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.wordmark span { font-weight: 400; }

.nav {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  font-size: var(--step-eyebrow);
  letter-spacing: 0.08em;
}

.nav a {
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav a:hover { border-bottom-color: currentColor; }

.nav__wide { display: none; }

@media (min-width: 48em) {
  .nav__wide { display: block; }
}

/* ---------- Hero ---------- */
/* Type is set over the photograph in off-white. The sky pales toward the
   horizon, so two soft scrims deepen the upper-left quadrant where the
   type sits; neither reaches the rig. */

.hero {
  position: relative;
  min-height: 56vh;
  min-height: 56svh;
  display: flex;
  align-items: flex-start;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* anchored high: the shorter hero keeps the dark upper sky the type sits on */
  object-position: 55% 12%;
  display: block;
}

.hero__media::after,
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
}

.hero__media::after {
  background: linear-gradient(180deg,
              rgba(23, 27, 33, 0.58) 0%,
              rgba(23, 27, 33, 0.55) 38%,
              rgba(23, 27, 33, 0.50) 68%,
              rgba(23, 27, 33, 0.24) 84%,
              rgba(23, 27, 33, 0) 96%);
}

.hero__media::before { z-index: 1; }

.hero__text {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(1.5rem, 4vh, 3.5rem)) var(--gutter)
           clamp(2.5rem, 7vh, 4.5rem);
  color: var(--paper);
}

.hero h1 {
  max-width: 24ch;
  font-size: clamp(1.875rem, 6vw, 2.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0.875rem 0 1.5rem;
}

/* The forced break is a wide-screen refinement; below that the headline
   wraps naturally so it never runs across the rig. */
@media (max-width: 63.99em) {
  .hero h1 br { display: none; }
}

.hero__statement {
  max-width: 34ch;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: rgba(245, 241, 234, 0.9);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245, 241, 234, 0.32);
}

@media (min-width: 64em) {
  .hero { min-height: 58vh; min-height: 58svh; }

  .hero h1 { max-width: 30ch; font-size: clamp(2.5rem, 3.3vw, 3.25rem); }

  /* Framed lower than on phones so a band of ground stays in shot */
  .hero__media img { object-position: 55% 65%; }

  /* The type occupies the left column only, so the wash can be angled
     and the rig side of the frame left alone. */
  .hero__media::after {
    background: linear-gradient(180deg,
                rgba(23, 27, 33, 0.56) 0%,
                rgba(23, 27, 33, 0.48) 38%,
                rgba(23, 27, 33, 0.30) 66%,
                rgba(23, 27, 33, 0.08) 88%,
                rgba(23, 27, 33, 0) 100%);
  }

  .hero__media::before {
    background: linear-gradient(100deg,
                rgba(23, 27, 33, 0.58) 0%,
                rgba(23, 27, 33, 0.52) 32%,
                rgba(23, 27, 33, 0.30) 52%,
                rgba(23, 27, 33, 0) 68%);
  }
}

/* ---------- Sections ---------- */

/* One gap value throughout: the space under the photograph and the space
   between sections are the same, so only the top edge carries padding. */
/* With coloured bands the gap is split between the two sections it
   separates, so the colour changes midway and never clips content. */
.section {
  padding: calc(var(--section-y) / 2) var(--bleed-pad);
}

.hero + .section { padding-top: var(--section-y); }

/* Centres a --maxw content column while the background runs full width */
:root {
  --bleed-pad: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
}

/* Section bands */
#sectors { background: var(--band-2); }
#contact,
.site-footer {
  background: var(--band-3);
  --muted: #4A4F56;          /* darkened so small labels stay legible on the band */
}


@media (min-width: 48em) {
  .section {
    display: grid;
    grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
}

.section__label h2 {
  font-size: var(--step-eyebrow);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

@media (min-width: 48em) {
  .section__label h2 { margin-bottom: 0; }
}

.section__body > * + * { margin-top: 1.25rem; }

.lede {
  font-size: var(--step-lede);
  line-height: 1.5;
  max-width: var(--measure);
}

.section__body p { max-width: var(--measure); }

/* ---------- Lists ---------- */

.list--two {
  display: grid;
  row-gap: 1.25rem;
}

.list--two li {
  font-size: var(--step-item);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

@media (min-width: 48em) {
  .list--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 4vw, 4rem);
  }
}

.section__body > * + .list--two { margin-top: 2.5rem; }

/* ---------- Contact ---------- */

.contact {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.75rem;
}

.contact a {
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.2rem;
  display: inline-block;
  transition: border-color 0.2s ease;
}
.contact a:hover { border-bottom-color: var(--rust); }

.contact__email {
  font-size: clamp(1.375rem, 3.4vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contact__phone {
  font-size: var(--step-lede);
  font-variant-numeric: tabular-nums;
}

.contact__label {
  display: inline-block;
  min-width: 2.25rem;
  font-size: var(--step-eyebrow);
  letter-spacing: 0.14em;
  color: var(--muted);
}

.linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 2rem;
  min-height: 2.75rem;
  font-size: var(--step-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.linkedin:hover { border-bottom-color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 2rem var(--bleed-pad) 3rem;
  font-size: var(--step-eyebrow);
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
