/* ==========================================================================
   SedStrat Lab — one-page landing site
   No framework, no build step. Drop the folder on a static host.

   The theme is taken straight off the logo: flat colour, one charcoal
   outline, soft-rounded corners, a geometric sans. No gradients, no
   glassmorphism, no drop shadows doing the work a border should do.

   Palette sampled from sedstrat_logo.png:
     charcoal #1B2123 · green #6EB357 · yellow #FEDC4B · cyan #42C2D9
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */

:root {
  /* Straight off the logo */
  --ink:        #1B2123;
  --green:      #6EB357;
  --yellow:     #FEDC4B;
  --cyan:       #42C2D9;

  /* Darkened companions — the logo fills are too light to read as text.
     These clear 4.5:1 on white, so links and labels stay legible. */
  --green-ink:  #3D7B31;
  --cyan-ink:   #14707F;
  --amber-ink:  #8A6A00;

  /* Neutrals */
  --paper:      #FFFFFF;
  --ground:     #F2F5EF;   /* faint green-cast off-white, echoes the logo card */
  --body:       #4E585B;
  --muted:      #78848A;
  --hair:       #DCE3DC;

  --line-w:     2px;
  --radius:     14px;
  --radius-sm:  9px;
  --fade:       700ms;   /* screenshot cross-fade; JS holds each shot for 2200ms */

  --wrap:       1180px;
  --gutter:     clamp(1.15rem, 4vw, 2.5rem);
  --section:    clamp(3.75rem, 8vw, 6.5rem);

  --font-head:  'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body:  'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* --- Reset --------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;   /* clears the sticky header on anchor jumps */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 0 0 .55em;
}

h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: .95rem; }

p  { margin: 0 0 1.1em; max-width: 66ch; }
ul { padding-left: 1.1em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }

a { color: var(--green-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: .75rem 1.25rem; z-index: 200; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; top: 0; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* --- Layout -------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--ground { background: var(--ground); }

/* Grid and flex children default to min-width:auto, so one wide screenshot
   or a long unbreakable line can push the whole document past the viewport.
   Every track in this layout is allowed to shrink instead. */
.hero-grid > *,
.who-grid > *,
.contact-grid > *,
.carousel-stage,
.slide,
.slide > * { min-width: 0; }

.lede {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink);
}
.lede--wide { max-width: 62ch; }

/* The one recurring label: a coloured dot and small caps. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  width: .6rem; height: .6rem;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--ink);
}

/* Small green dot used in taglines, as in the logo's "UNDERSTAND · MODEL · INSPIRE". */
.dot {
  display: inline-block;
  width: .38rem; height: .38rem;
  border-radius: 50%;
  background: var(--green);
  margin-inline: .1rem .45rem;
  vertical-align: middle;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: var(--line-w) solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease, color .15s ease;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--solid { background: var(--green); }
.btn--solid:hover { background: #7FC268; }
.btn--line:hover { background: var(--ground); }
.btn--sm { padding: .55rem 1.15rem; font-size: .93rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: var(--line-w) solid var(--ink);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand { display: block; margin-right: auto; line-height: 0; padding-block: .5rem; }
.brand img {
  /* assets/img/logo-wordmark.png — the wordmark band cropped out of the
     master logo. multiply drops its white box onto the header. */
  width: auto;
  height: 1.85rem;
  mix-blend-mode: multiply;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  font: 600 .92rem/1 var(--font-head);
  color: var(--ink);
  background: var(--paper);
  border: var(--line-w) solid var(--ink);
  border-radius: 999px;
  padding: .5rem .95rem;
  cursor: pointer;
}
.nav-toggle .bars {
  width: 1rem; height: .7rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}
.nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; top: calc(50% - 1px);
  width: 100%; border-top: 2px solid currentColor;
}

#site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .3rem;
  margin: 0;
  padding: 0;
}
#site-nav li { margin: 0; }
#site-nav > ul > li > a:not(.btn) {
  display: block;
  padding: .5rem .85rem;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
}
#site-nav > ul > li > a:not(.btn):hover { background: var(--ground); }

/* --- Hero ---------------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}

.kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.2rem;
}

.hero h1 { max-width: 15ch; }
.hero h1 em {
  font-style: normal;
  color: var(--green-ink);
  /* the logo's own trick: the second half of the wordmark goes green */
}
.hero .lede { max-width: 52ch; }

.hero-art svg { width: 100%; height: auto; }

/* --- Who we are ---------------------------------------------------------- */

.who-grid {
  display: grid;
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .who-grid { grid-template-columns: 1fr 1fr; }
}

.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.principles li {
  background: var(--paper);
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.3rem 1.7rem;
  margin: 0;
  position: relative;
  overflow: hidden;
}
/* A flat colour bar down the left edge — one stratum per principle. */
.principles li::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: .65rem;
  border-right: var(--line-w) solid var(--ink);
}
.principles .tint-green::before  { background: var(--green); }
.principles .tint-yellow::before { background: var(--yellow); }
.principles .tint-cyan::before   { background: var(--cyan); }
.principles h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.principles p { margin: 0; font-size: .97rem; }

.areas {
  list-style: none;
  padding: 0;
  margin: clamp(2.25rem, 4vw, 3rem) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.areas li {
  margin: 0;
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: var(--line-w) solid var(--ink);
  border-radius: 999px;
  padding: .42rem 1rem;
}

/* --- Carousel ------------------------------------------------------------ */

.carousel { margin-top: clamp(2rem, 4vw, 3rem); }

.carousel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 1.5rem;
}
.tab {
  flex: 1 1 12rem;
  text-align: left;
  font-family: var(--font-head);
  background: var(--paper);
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius-sm);
  padding: .7rem 1.1rem;
  cursor: pointer;
  color: var(--ink);
  transition: background .15s ease, transform .12s ease;
}
.tab:hover { transform: translateY(-2px); }
.tab .tab-name { display: block; font-weight: 600; font-size: 1.02rem; }
.tab .tab-sub  { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); }
.tab[aria-selected="true"] .tab-sub { color: var(--ink); opacity: .72; }

.tab--cyan[aria-selected="true"]   { background: var(--cyan); }
.tab--yellow[aria-selected="true"] { background: var(--yellow); }
.tab--green[aria-selected="true"]  { background: var(--green); }

/* The stage: every slide sits in the same grid cell, so the box is as tall
   as the tallest slide and nothing jumps when you switch. */
.carousel-stage {
  display: grid;
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.slide {
  grid-area: 1 / 1;
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .32s ease, transform .32s ease, visibility .32s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.slide[hidden] { display: grid; }   /* keep it in the grid so height is stable */

@media (min-width: 62rem) {
  .slide { grid-template-columns: 1fr 1.06fr; }
}

.slide-tag {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 0 0 .5rem;
}
.slide--cyan   .slide-tag { color: var(--cyan-ink); }
.slide--yellow .slide-tag { color: var(--amber-ink); }
.slide--green  .slide-tag { color: var(--green-ink); }

.slide-copy h3 { margin-bottom: .7rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.slide-copy p  { font-size: 1rem; }

.ticks { list-style: none; padding: 0; margin: 1.25rem 0; }
.ticks li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: .5rem;
  font-size: .97rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: .7rem; height: .7rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.slide--cyan   .ticks li::before { background: var(--cyan); }
.slide--yellow .ticks li::before { background: var(--yellow); }
.slide--green  .ticks li::before { background: var(--green); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; }
.chips span {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--ground);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .28rem .8rem;
}

.slide-media { margin: 0; }

/* A stack of screenshots that cross-fades in place. Every file is already 16 / 10,
   so `cover` only ever absorbs a rounding pixel. */
.shots {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  opacity: 0;
  z-index: 1;
  /* Outgoing: hold at full opacity underneath, then snap away once the incoming
     image has finished fading in over the top. No dip to the background. */
  transition: opacity 0s linear var(--fade);
}
.shots img.is-shown {
  opacity: 1;
  z-index: 2;
  transition: opacity var(--fade) ease;
}
.slide-media figcaption {
  font-size: .85rem;
  color: var(--muted);
  margin-top: .7rem;
  line-height: 1.45;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.arrow {
  width: 2.9rem; height: 2.9rem;
  display: grid;
  place-items: center;
  border: var(--line-w) solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease;
}
.arrow:hover { background: var(--green); }
.arrow svg { width: 1.25rem; height: 1.25rem; }

.carousel-count {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.carousel-count .sep { color: var(--muted); margin-inline: .35rem; }

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

.contact-grid {
  display: grid;
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-details { margin: 2rem 0 0; display: grid; gap: 1rem; }
/* A fixed label column, so the values line up down the list rather than
   each row sizing itself. */
.contact-details > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--hair);
}
.contact-details dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
}
.contact-details dd { margin: 0; }

/* Drawn inline rather than as a flag emoji — Windows renders those as
   letter pairs, not flags. */
.with-flag { display: flex; align-items: center; gap: .55rem; }
.flag { width: 1.3rem; height: auto; border-radius: 2px; flex: 0 0 auto; }

/* The enquiry card — a heading, a line of guidance, and one button. */
.contact-cta {
  background: var(--paper);
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}
.contact-cta h3 { margin-bottom: .5rem; }
.contact-cta > p { font-size: 1rem; }
.contact-cta .btn { margin: 1.4rem 0 1.1rem; }

.btn--lg { font-size: 1.08rem; padding: 1rem 2.2rem; }

.cta-note { font-size: .87rem; color: var(--muted); margin: 0; }

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

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  padding-block: clamp(2.75rem, 6vw, 4rem) 1.75rem;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.footer-brand { grid-column: span 1; }
@media (min-width: 55rem) { .footer-brand { grid-column: span 2; max-width: 26rem; } }

.footer-wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0;
}
.footer-wordmark span { color: var(--green); }
.footer-tag {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  margin: .3rem 0 1rem;
}
.site-footer h4 {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 .9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 61.99rem) {
  .nav-toggle { display: inline-flex; }

  #site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: var(--line-w) solid var(--ink);
    padding: .5rem var(--gutter) 1.1rem;
    display: none;
  }
  #site-nav.is-open { display: block; }
  #site-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  #site-nav > ul > li > a:not(.btn) { padding: .7rem .5rem; }
  #site-nav .btn { margin-top: .5rem; }

  .brand img { height: 1.6rem; }
}

@media (max-width: 34rem) {
  .tab { flex: 1 1 100%; }
  .nav-toggle-text { display: none; }

  /* Label above value once there is no room for two columns. */
  .contact-details > div { grid-template-columns: 1fr; gap: .15rem; }
}

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

/* --- Print --------------------------------------------------------------- */

@media print {
  .site-header, .carousel-controls, .carousel-tabs, .btn-row, .nav-toggle { display: none; }
  .slide { opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .carousel-stage { display: block; }
  .site-footer { background: #fff; color: #000; }
  .site-footer h4, .footer-wordmark, .footer-wordmark span { color: #000; }
  .site-footer a { color: #000; }
}
