/* =========================================================================
   SGS International — Senior Redesign Concept
   Design system: editorial typography, architectural restraint, premium
   corporate consulting tone. Preserves all JS class hooks.
   ========================================================================= */

:root {
  /* Surfaces */
  --bg: #faf7ee;
  --bg-soft: #f1ebdc;
  --bg-mist: #e8e1cf;
  --bg-ink: #0a1714;
  --bg-ink-deep: #050d0c;
  --panel: rgba(255, 255, 255, 0.7);
  --panel-strong: #ffffff;

  /* Brand greens */
  --green: #0f6650;
  --green-deep: #093d31;
  --green-bright: #16927a;
  --green-mist: #dfeee8;
  --green-ink: #061f19;

  /* Accents */
  --sand: #b99661;
  --sand-soft: #d8be90;
  --sand-deep: #8e6e3f;

  /* Ink */
  --text: #0f1a17;
  --text-soft: #3c4a45;
  --text-muted: #6c7873;
  --text-faint: #98a39e;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.78);
  --white-faint: rgba(255, 255, 255, 0.5);

  /* Lines */
  --line: rgba(10, 22, 20, 0.09);
  --line-strong: rgba(10, 22, 20, 0.16);
  --line-light: rgba(255, 255, 255, 0.1);
  --line-light-strong: rgba(255, 255, 255, 0.2);

  /* Type families */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 22, 20, 0.04);
  --shadow-sm: 0 2px 6px rgba(10, 22, 20, 0.06), 0 6px 18px rgba(10, 22, 20, 0.04);
  --shadow-md: 0 4px 14px rgba(10, 22, 20, 0.08), 0 14px 38px rgba(10, 22, 20, 0.08);
  --shadow-lg: 0 8px 22px rgba(10, 22, 20, 0.1), 0 30px 70px rgba(10, 22, 20, 0.14);
  --shadow: 0 24px 60px rgba(9, 23, 20, 0.12);

  /* Container */
  --container: min(1280px, calc(100% - 2.5rem));
  --container-narrow: min(880px, calc(100% - 2rem));

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --transition: 280ms var(--ease);
  --duration-fast: 180ms;
  --duration-slow: 600ms;
}

/* =========================================================================
   Reset
   ========================================================================= */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.62;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 8% -5%, rgba(185, 150, 97, 0.12), transparent 70%),
    radial-gradient(900px 500px at 100% 0%, rgba(15, 102, 80, 0.08), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

::selection { background: var(--green); color: var(--white); }

/* =========================================================================
   Layout primitives
   ========================================================================= */

.container { width: var(--container); margin: 0 auto; }
.container-narrow { width: var(--container-narrow); margin: 0 auto; }

/* =========================================================================
   Header / Navigation
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 247, 238, 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(250, 247, 238, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(10, 22, 20, 0.04);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.brand-logo {
  width: clamp(8rem, 12vw, 10.5rem);
  height: auto;
  object-fit: contain;
  display: block;
  filter: saturate(1.18) brightness(1.04);
}

.footer-brand .brand-logo {
  width: clamp(9rem, 13vw, 11rem);
  filter: brightness(1.55) saturate(1.25);
}

.brand-label { display: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.site-nav > a {
  position: relative;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: color var(--transition);
}

.site-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5rem;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.site-nav > a:hover,
.site-nav > a.active {
  color: var(--text);
}

.site-nav > a:hover::after,
.site-nav > a.active::after {
  transform: scaleX(1);
}

/* =========================================================================
   Buttons
   ========================================================================= */

.button,
.footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.button::after,
.footer-link::after {
  display: none;
}

.button:hover,
.footer-link:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(160deg, #14856c, #093d31);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 6px 18px rgba(9, 60, 48, 0.32),
    0 14px 36px rgba(9, 60, 48, 0.22);
}

.button-primary:hover {
  background: linear-gradient(160deg, #169679, #0a4538);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(9, 60, 48, 0.4),
    0 18px 44px rgba(9, 60, 48, 0.28);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.button-arrow::after {
  display: inline-block;
  content: "→";
  margin-left: 0.15rem;
  font-size: 1.05em;
  transition: transform var(--transition);
}

.button:hover .button-arrow,
.button-arrow:hover::after {
  transform: translateX(3px);
}

/* Site-nav CTA: smaller, lighter, integrated with matte header */
.site-nav > a.nav-button {
  color: #f4ede0;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 3px rgba(9, 60, 48, 0.1);
}

.site-nav > a.nav-button:hover {
  box-shadow: 0 2px 6px rgba(9, 60, 48, 0.14);
}

.site-nav > a.nav-button::after {
  display: none;
}

/* =========================================================================
   Typography
   ========================================================================= */

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 600;
  color: var(--text);
}

h1 {
  font-size: clamp(3rem, 6.8vw, 6.5rem);
  letter-spacing: -0.035em;
  font-weight: 500;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.7rem);
  letter-spacing: -0.028em;
  font-weight: 500;
}

h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  letter-spacing: -0.012em;
  font-weight: 600;
  line-height: 1.25;
}

p { margin: 0; color: var(--text-soft); }

.lead {
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  color: var(--text);
  line-height: 1.45;
}

.kicker {
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--green);
}

/* Dark-section kicker */
.section-visual .kicker,
.section-dark-map .kicker,
.cta-section .kicker {
  color: var(--sand-soft);
}

.section-visual .kicker::before,
.section-dark-map .kicker::before,
.cta-section .kicker::before {
  background: var(--sand);
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 4rem);
  display: grid;
  align-items: stretch;
  color: var(--white);
  background: var(--bg-ink);
}

.hero-media,
.hero-overlay,
.page-hero-media,
.page-hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.78) contrast(1.05);
  transform: scale(1.04);
}

.hero-overlay,
.page-hero-overlay {
  background:
    linear-gradient(180deg, rgba(5, 13, 12, 0.4) 0%, rgba(5, 13, 12, 0.15) 30%, rgba(5, 13, 12, 0.7) 100%),
    linear-gradient(90deg, rgba(5, 13, 12, 0.78) 0%, rgba(5, 13, 12, 0.15) 60%, rgba(5, 13, 12, 0.35) 100%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 4rem;
  align-items: end;
  padding: 7rem 0 4.5rem;
  min-height: calc(100vh - 4rem);
}

.hero-copy { max-width: 46rem; }

.hero-copy .kicker {
  color: var(--sand-soft);
  margin-bottom: 1.4rem;
}

.hero-copy .kicker::before { background: var(--sand); }

.hero-copy h1 {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.hero-summary {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.3rem;
}

.hero-panel {
  display: grid;
  gap: 1px;
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.panel-line {
  padding: 1.3rem 1.4rem;
  background: rgba(5, 13, 12, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.panel-line:last-child { border-bottom: none; }

.panel-line strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--white);
}

.panel-line span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Hero scroll cue */
.hero::after {
  content: "scroll";
  position: absolute;
  z-index: 2;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

/* =========================================================================
   Credibility band
   ========================================================================= */

.credibility-band {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
}

.credibility-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.credibility-layout > p {
  flex: 1 1 22rem;
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  font-weight: 400;
  color: var(--text);
  font-weight: 400;
  line-height: 1.45;
}

.credibility-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.credibility-tags span {
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 102, 80, 0.18);
  background: transparent;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* =========================================================================
   Sections
   ========================================================================= */

.section { padding: 6rem 0; position: relative; }

.section-soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-visual {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(22, 146, 122, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(8, 18, 16, 0.98), rgba(6, 18, 16, 1));
  color: var(--white);
}

.section-dark-map {
  position: relative;
  background:
    radial-gradient(700px 400px at 90% 50%, rgba(22, 146, 122, 0.15), transparent 60%),
    linear-gradient(180deg, rgba(8, 18, 16, 0.99), rgba(5, 13, 12, 1));
  color: var(--white);
  overflow: hidden;
}

.section-dark-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 1100px 700px at 50% 50%, black 30%, transparent 75%);
  pointer-events: none;
}

.section-dark-map > .container { position: relative; z-index: 1; }

.section-dark-map p,
.section-visual p {
  color: rgba(255, 255, 255, 0.72);
}

.section-visual h2,
.section-dark-map h2 {
  color: var(--white);
  font-weight: 400;
}

.section-head {
  max-width: 48rem;
  margin-bottom: 4rem;
  position: relative;
}

.section-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.section-head .kicker::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1px;
  background: var(--green);
  opacity: 0.6;
}

.section-head h2 {
  margin: 0;
}

.section-head h2 + p {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  max-width: 38rem;
}

/* =========================================================================
   Split grid (about intro, market focus)
   ========================================================================= */

.split-grid,
.presence-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.split-grid.reverse .section-copy { order: 2; }
.split-grid.reverse .wide-image { order: 1; }

.section-copy { max-width: 36rem; }

.section-copy p {
  font-size: 1.075rem;
  line-height: 1.65;
}

.section-copy p + p,
.section-copy h2 + p {
  margin-top: 1.2rem;
}

.section-copy h2 + p {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--text);
  font-weight: 400;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.6rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--green);
  color: var(--green-deep);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.005em;
  transition: gap var(--transition), border-color var(--transition);
}

.text-link::after {
  content: "→";
  font-size: 1.05em;
  transition: transform var(--transition);
}

.text-link:hover {
  gap: 0.65rem;
  border-color: var(--green-deep);
}

.text-link:hover::after {
  transform: translateX(2px);
}

/* =========================================================================
   Media stack (about intro)
   ========================================================================= */

.media-stack {
  position: relative;
  min-height: 38rem;
}

.media-card,
.wide-image,
.solution-image,
.project-tile,
.story-image,
.visual-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-mist);
}

.media-card img,
.wide-image img,
.solution-image img,
.project-tile img,
.story-image img,
.visual-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms var(--ease);
}

.media-card:hover img,
.wide-image:hover img,
.solution-row:hover img,
.project-tile:hover img,
.project-story:hover img,
.visual-solution:hover img {
  transform: scale(1.04);
}

.media-card.large {
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
  height: 82%;
  box-shadow: var(--shadow-md);
}

.media-card.small {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  height: 42%;
  border: 10px solid var(--bg);
  box-shadow: var(--shadow-md);
}

/* =========================================================================
   Cards: services / why / info / contact
   ========================================================================= */

.service-grid,
.why-grid,
.card-row.three {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.why-grid {
  counter-reset: why-counter;
}

.card-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.service-card,
.why-card,
.info-card,
.contact-info-card {
  position: relative;
  padding: 2.2rem 1.7rem 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(6px);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  overflow: hidden;
}

.why-card {
  counter-increment: why-counter;
  padding-top: 3.4rem;
}

.why-card::after {
  content: counter(why-counter, decimal-leading-zero);
  position: absolute;
  top: 1.5rem;
  left: 1.7rem;
  font-family: var(--font-mono, var(--font-display));
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--green-deep);
  opacity: 0.55;
}

.service-card::before,
.why-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease);
}

.service-card:hover,
.why-card:hover,
.info-card:hover,
.contact-info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 102, 80, 0.2);
  background: rgba(255, 255, 255, 0.78);
}

.service-card:hover::before,
.why-card:hover::before {
  transform: scaleX(1);
}

.service-card h3,
.why-card h3,
.info-card h3 {
  margin-bottom: 0.55rem;
  letter-spacing: -0.01em;
}

.service-card p,
.why-card p,
.info-card p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.service-card.highlight {
  background: linear-gradient(155deg, var(--green-bright) 0%, var(--green) 50%, var(--green-deep) 100%);
  border-color: transparent;
  box-shadow: 0 14px 38px rgba(9, 60, 48, 0.22);
}

.service-card.highlight h3,
.service-card.highlight p {
  color: var(--white);
}

.service-card.highlight p { color: rgba(255, 255, 255, 0.84); }

.service-card.highlight::before { display: none; }

/* =========================================================================
   Solutions rows
   ========================================================================= */

.solution-rows,
.project-story-list,
.visual-list {
  display: grid;
  gap: 4rem;
}

.solution-row,
.visual-solution,
.project-story {
  display: grid;
  grid-template-columns: minmax(340px, 1.05fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.solution-row.reverse .solution-image,
.visual-solution.reverse .visual-media,
.project-story.reverse .story-image { order: 2; }

.solution-row.reverse .solution-copy,
.visual-solution.reverse .visual-copy,
.project-story.reverse .story-copy { order: 1; }

.solution-image,
.visual-media,
.story-image {
  min-height: 30rem;
  border-radius: var(--radius-lg);
}

.solution-copy,
.visual-copy,
.story-copy { padding: 0; max-width: 32rem; }

.solution-type {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  color: var(--sand);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.solution-type::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: var(--sand);
}

.section-visual .solution-copy h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  letter-spacing: -0.018em;
  line-height: 1.18;
}

.section-visual .solution-copy p {
  margin-top: 1rem;
  font-size: 1.08rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

/* =========================================================================
   Project grid
   ========================================================================= */

.project-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 1rem;
}

.project-tile {
  position: relative;
  min-height: 26rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
}

.project-large { min-height: 34rem; }

.project-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(5, 13, 12, 0.55) 70%, rgba(5, 13, 12, 0.92) 100%);
  z-index: 0;
}

.project-overlay {
  position: absolute;
  inset: auto 1.5rem 1.5rem;
  z-index: 1;
  transform: translateY(8px);
  transition: transform 500ms var(--ease);
}

.project-tile:hover .project-overlay { transform: translateY(0); }

.project-overlay p {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--sand-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.project-overlay p::before {
  content: "";
  width: 1.2rem;
  height: 1px;
  background: var(--sand);
}

.project-overlay h3 {
  margin-top: 0.7rem;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  letter-spacing: -0.01em;
  line-height: 1.22;
}

.project-large .project-overlay h3 {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

/* =========================================================================
   Presence / dark
   ========================================================================= */

.presence-copy { max-width: 34rem; }

.presence-copy h2 {
  color: var(--white);
  font-weight: 400;
}

.presence-copy p:last-child {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
}

.presence-points {
  display: grid;
  gap: 0.8rem;
}

.presence-points article,
.why-card.dark {
  position: relative;
  padding: 1.6rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  transition: border-color var(--transition), background var(--transition);
}

.why-card.dark {
  padding-top: 3rem;
}

.why-card.dark::after {
  color: rgba(255, 255, 255, 0.5);
  opacity: 0.75;
}

.presence-points article:hover,
.why-card.dark:hover {
  border-color: rgba(22, 146, 122, 0.4);
  background: rgba(22, 146, 122, 0.06);
}

.presence-points strong,
.footer-title {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--sand-soft);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.presence-points span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
  line-height: 1.5;
}

.why-card.dark h3 {
  margin-bottom: 0.55rem;
  color: var(--white);
  font-weight: 500;
}

.why-card.dark p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* =========================================================================
   CTA section
   ========================================================================= */

.cta-section {
  position: relative;
  padding: 6rem 0 5.5rem;
  background:
    radial-gradient(800px 400px at 30% 0%, rgba(22, 146, 122, 0.2), transparent 60%),
    linear-gradient(135deg, #061a16 0%, #0a3328 60%, #0c4838 100%);
  color: var(--white);
  overflow: hidden;
}

.cta-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(12rem, 28vw, 22rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 146, 122, 0.55), transparent);
  pointer-events: none;
}

.cta-layout {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.cta-layout > div { max-width: 38rem; }

.cta-layout h2 {
  color: var(--white);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.9rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.cta-layout .button {
  flex-shrink: 0;
  padding: 1.05rem 1.9rem;
  font-size: 1rem;
}

/* =========================================================================
   Page hero (about, services, etc.)
   ========================================================================= */

.page-hero {
  min-height: 56vh;
  display: grid;
  align-items: center;
  color: var(--white);
  background: var(--bg-ink);
}

.page-hero-layout {
  position: relative;
  z-index: 1;
  padding: 7rem 0 5rem;
  max-width: 56rem;
}

.page-hero-layout h1 {
  color: var(--white);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 5rem);
}

.page-hero-layout p:last-child {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  max-width: 40rem;
}

/* =========================================================================
   Service panels (services page)
   ========================================================================= */

.service-list {
  display: grid;
  gap: 1.2rem;
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 2.5rem;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.service-panel:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 102, 80, 0.22);
  background: rgba(255, 255, 255, 0.78);
}

.service-panel .kicker {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.service-panel .kicker::before { display: none; }

.service-panel h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.022em;
}

.service-panel.featured {
  background: linear-gradient(155deg, var(--green-bright) 0%, var(--green) 50%, var(--green-deep) 100%);
  border-color: transparent;
  box-shadow: 0 14px 38px rgba(9, 60, 48, 0.22);
}

.service-panel.featured .kicker,
.service-panel.featured h2,
.service-panel.featured p,
.service-panel.featured li {
  color: var(--white);
}

.service-panel.featured p,
.service-panel.featured li {
  color: rgba(255, 255, 255, 0.86);
}

.service-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.service-panel li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.3rem;
  border-bottom: 1px solid var(--line);
}

.service-panel li:last-child { border-bottom: none; }

.service-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 0.55rem;
  height: 1px;
  background: var(--green);
}

.service-panel.featured li { border-bottom-color: rgba(255, 255, 255, 0.15); }
.service-panel.featured li::before { background: var(--sand-soft); }

/* =========================================================================
   Contact form / contact page
   ========================================================================= */

.contact-layout { align-items: start; }

.contact-panel {
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}

.contact-panel h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 500;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.7rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 102, 80, 0.1);
}

.contact-form button {
  margin-top: 0.5rem;
  cursor: pointer;
  border: none;
}

.form-feedback {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.contact-side { display: grid; gap: 1rem; }

/* =========================================================================
   Team (about page)
   ========================================================================= */

.team-section { padding: 7rem 0; }

.team-intro {
  margin-top: 1.4rem;
  max-width: 44rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 400;
  color: var(--text);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 76rem;
  margin: 0 auto;
}

.team-card {
  position: relative;
  padding: 3rem 2.2rem 2.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 102, 80, 0.22);
  box-shadow: 0 18px 40px rgba(9, 60, 48, 0.08);
}

.team-photo {
  position: relative;
  width: 11rem;
  height: 11rem;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-bright), var(--green-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(15, 102, 80, 0.12),
    0 0 0 8px rgba(15, 102, 80, 0.04),
    0 18px 36px rgba(9, 60, 48, 0.14);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo span {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
}

.team-linkedin {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 102, 80, 0.08);
  color: var(--green-deep);
  transition: background var(--transition), color var(--transition);
}

.team-linkedin:hover {
  background: var(--green-deep);
  color: var(--white);
}

.team-linkedin svg {
  width: 1rem;
  height: 1rem;
}

.team-card h3 {
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 1.45rem;
}

.team-role {
  margin: 0 0 1rem;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-description {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 28rem;
  margin: 0 auto;
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  position: relative;
  padding: 5.5rem 0 2rem;
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(22, 146, 122, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(8, 18, 16, 0.99), rgba(5, 12, 11, 1));
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.site-footer > .container { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.9fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer-brand { margin-bottom: 1.3rem; }

.footer-text {
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.94rem;
  line-height: 1.6;
}

.site-footer p,
.site-footer a {
  display: block;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.94rem;
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-title {
  color: var(--sand-soft);
  margin-bottom: 1rem;
}

.footer-link {
  margin-top: 1rem;
  padding: 0;
  justify-content: flex-start;
  color: var(--white) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.94rem;
  font-weight: 600;
}

.footer-link::after {
  display: inline-block !important;
  content: "→";
  margin-left: 0.4rem;
  transition: transform var(--transition);
}

.footer-link:hover::after { transform: translateX(3px); }

.footer-base {
  margin-top: 0;
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-base p {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* =========================================================================
   Nav toggle (mobile)
   ========================================================================= */

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background var(--transition);
}

.nav-toggle:hover { background: rgba(255, 255, 255, 0.7); }

.nav-toggle span {
  width: 1.1rem;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--transition);
}

/* =========================================================================
   Reveal animation
   ========================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 720ms var(--ease),
    transform 720ms var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1100px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 6rem;
  }
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .project-large {
    grid-column: 1 / -1;
  }
  .service-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 800px) {
  .nav-bar { padding: 0.85rem 0; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(250, 247, 238, 0.98);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 0.6rem 0.3rem; }
  .site-nav > a::after { display: none; }
  .site-nav > a.nav-button {
    margin-top: 0.6rem;
    justify-content: center;
  }

  .section { padding: 5rem 0; }

  .hero { min-height: auto; }
  .hero-layout {
    padding: 5rem 0 4rem;
    min-height: auto;
  }
  .hero::after { display: none; }

  .split-grid,
  .presence-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .split-grid.reverse .section-copy,
  .split-grid.reverse .wide-image {
    order: 0;
  }

  .media-stack { min-height: 26rem; }
  .media-card.large { width: 80%; height: 80%; }
  .media-card.small { width: 56%; height: 46%; }

  .solution-row,
  .visual-solution,
  .project-story {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .solution-row.reverse .solution-image,
  .visual-solution.reverse .visual-media,
  .project-story.reverse .story-image,
  .solution-row.reverse .solution-copy,
  .visual-solution.reverse .visual-copy,
  .project-story.reverse .story-copy {
    order: 0;
  }

  .solution-image,
  .visual-media,
  .story-image { min-height: 22rem; }

  .service-grid,
  .why-grid,
  .card-row.three {
    grid-template-columns: 1fr;
  }

  .project-grid { grid-template-columns: 1fr; }
  .project-tile { min-height: 22rem; }
  .project-large { min-height: 28rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .footer-base { flex-direction: column; gap: 0.6rem; align-items: flex-start; }

  .service-panel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.8rem;
  }

  .cta-layout { flex-direction: column; align-items: flex-start; }

  .credibility-layout { flex-direction: column; align-items: flex-start; }
  .credibility-tags { justify-content: flex-start; }
}
