/* ==========================================================================
   CLOVER-X WEBSITE STYLES
   To change colours, edit the values in the ":root" block right below.
   ========================================================================== */

/* ---- Fonts (self-hosted, no third-party requests) ---------------------- */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/manrope-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope-latin-700-normal.woff2') format('woff2'); }

/* ---- Brand colours (from the Clover-X UI kit) --------------------------- */
:root {
  --brand: #163944;        /* logo teal: primary buttons, headings */
  --brand-hover: #1e4a57;
  --deep: #0f2b36;         /* dark sections, pressed state */
  --deep-2: #133542;       /* raised surfaces on dark */
  --mint: #5cd0c2;         /* accent: on dark backgrounds or small highlights only */
  --mint-hover: #7adcd0;
  --mint-pressed: #45b8aa;
  --focus: #2f7f78;        /* focus rings */
  --accent-text: #23675f;  /* mint-family text that passes contrast on light backgrounds */
  --surface: #f4f7f7;      /* light page background */
  --white: #ffffff;
  --border: #d9e3e4;
  --text: #13303b;
  --muted: #4a6470;        /* 5.6:1 on --surface */
  --on-dark: #ffffff;
  --on-dark-muted: #b6c9cf;
  --line-dark: rgba(255, 255, 255, 0.12);
  --danger: #b42318;

  --font-head: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: 16px;
  --section-y: 72px;
  --header-h: 108px;
  --shadow: 0 1px 2px rgba(15, 43, 54, .04), 0 8px 24px rgba(15, 43, 54, .07);
}
@media (min-width: 768px) { :root { --gutter: 32px; --section-y: 96px; } }
@media (min-width: 1024px) { :root { --section-y: 120px; } }

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--text);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p, figure, dl, dd { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--mint); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section-white { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dark { background: var(--deep); color: var(--on-dark); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); margin-top: 12px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.075rem; }
.dark .section-head p { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 500; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .22em; color: var(--accent-text);
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.dark .eyebrow { color: var(--mint); }

.grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { gap: 24px; } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Icons: 24px line icons, consistent 1.75 stroke */
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
.icon-tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #e6eeef; color: var(--brand); flex-shrink: 0; }
.icon-tile .icon { width: 26px; height: 26px; }

.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; line-height: 1.5; background: var(--surface); border: 1px solid var(--border); color: var(--brand); }

/* ==========================================================================
   BUTTONS (Clover-X UI kit: 3 variants x 2 surfaces, 6 states, 4 sizes)
   ========================================================================== */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 calc(var(--h) / 2); border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; background: transparent; color: var(--brand);
  transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .18s; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-lg { --h: 56px; font-size: 1.05rem; }
.btn-sm { --h: 40px; font-size: .92rem; }
.btn-xs { --h: 32px; font-size: .82rem; padding: 0 14px; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4.5px var(--focus); }
.dark .btn:focus-visible { box-shadow: 0 0 0 2px var(--deep), 0 0 0 4.5px var(--mint); }
.btn:disabled, .btn[aria-disabled='true'] { cursor: not-allowed; box-shadow: none; transform: none; }

/* Light surfaces */
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 6px 16px rgba(22, 57, 68, .28); transform: translateY(-1px); }
.btn-primary:active { background: var(--deep); box-shadow: none; transform: none; }
.btn-primary:disabled { background: #e3eaeb; color: #8fa4aa; }

.btn-secondary { border-color: var(--brand); color: var(--brand); }
.btn-secondary:hover { background: var(--brand); color: #fff; }
.btn-secondary:active { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn-secondary:disabled { border-color: #c9d6d8; color: #9fb2b7; background: transparent; }

.btn-ghost { color: var(--brand); padding: 0 16px; }
.btn-ghost:hover { background: #e3ecec; }
.btn-ghost:active { background: #cfe0de; }
.btn-ghost:disabled { color: #9fb2b7; background: transparent; }

/* Dark surfaces */
.dark .btn-primary { background: var(--mint); color: var(--deep); }
.dark .btn-primary:hover { background: var(--mint-hover); box-shadow: 0 6px 20px rgba(92, 208, 194, .3); }
.dark .btn-primary:active { background: var(--mint-pressed); box-shadow: none; }
.dark .btn-primary:disabled { background: #1f4250; color: #6f8f98; }
.dark .btn-secondary { border-color: rgba(255, 255, 255, .45); color: #fff; }
.dark .btn-secondary:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.dark .btn-secondary:active { background: rgba(255, 255, 255, .18); }
.dark .btn-ghost { color: #fff; }
.dark .btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* Icon buttons: 48px circle */
.btn-icon { width: 48px; padding: 0; }

/* Loading state: compact clover spinner inside the button */
.btn .btn-spinner { display: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .icon-arrow { display: none; }

@media (max-width: 479px) { .btn-block-mobile { width: 100%; } }

/* ==========================================================================
   LOADER (from the Clover-X loader reference: highlight sweeps around the mark)
   ========================================================================== */
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.mark-spin { position: relative; aspect-ratio: 1220 / 1168; width: var(--s, 200px); flex: none; display: inline-block; }
.mark-spin img { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark-spin .ghost { opacity: .14; }
.mark-spin .lit {
  -webkit-mask-image: conic-gradient(from var(--sweep) at 44% 56%, transparent 0deg, #000 70deg, #000 110deg, transparent 190deg, transparent 360deg);
  mask-image: conic-gradient(from var(--sweep) at 44% 56%, transparent 0deg, #000 70deg, #000 110deg, transparent 190deg, transparent 360deg);
  animation: cx-sweep 2.2s linear infinite;
}
.btn .mark-spin { --s: 20px; }
.btn .mark-spin .ghost { opacity: .3; }

.loader {
  position: fixed; inset: 0; z-index: 1000; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  background: var(--surface); transition: opacity .45s ease, visibility .45s;
}
.js .loader { display: flex; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader .mark-spin { animation: cx-breathe 2.2s ease-in-out infinite; }
.loader-word { width: min(240px, 60vw); opacity: .92; }
.loader-status { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loader-label { font-family: var(--font-head); font-size: .85rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 500; display: flex; }
.loader-label .dots { display: inline-flex; width: 1.6em; }
.loader-label .dots i { font-style: normal; opacity: 0; animation: cx-dot 1.5s infinite; }
.loader-label .dots i:nth-child(2) { animation-delay: .25s; }
.loader-label .dots i:nth-child(3) { animation-delay: .5s; }
.loader-bar { width: 168px; height: 3px; border-radius: 2px; background: #d7e2e4; overflow: hidden; position: relative; }
.loader-bar::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 2px; background: var(--focus); animation: cx-slide 1.4s cubic-bezier(.5, 0, .3, 1) infinite; }

@keyframes cx-sweep { to { --sweep: 360deg; } }
@keyframes cx-breathe { 0%, 100% { scale: 1; } 50% { scale: 1.035; } }
@keyframes cx-dot { 0%, 20% { opacity: 0; } 40%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cx-slide { from { left: -40%; } to { left: 100%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .mark-spin .lit { animation: none; -webkit-mask-image: none; mask-image: none; }
  .mark-spin .ghost { display: none; }
  .loader .mark-spin, .loader-label .dots i { animation: none; opacity: 1; }
  .loader-bar::after { animation: none; left: 0; width: 100%; opacity: .5; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
/* The blur sits on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(244, 247, 247, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.menu-open.site-header::before { background: var(--surface); }
.site-header.scrolled { border-color: var(--border); box-shadow: 0 4px 16px rgba(15, 43, 54, .05); }
.header-bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand-link { display: block; flex-shrink: 0; border-radius: 6px; }
.brand-link img { width: 120px; } /* minimum lockup width per brand guidelines */

.menu-toggle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); border: 0; color: #fff; cursor: pointer; }
.menu-toggle .i-close, .menu-open .menu-toggle .i-open { display: none; }
.menu-open .menu-toggle .i-close { display: block; }

.site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--surface); padding: 16px var(--gutter) 40px; overflow-y: auto; display: none; flex-direction: column; gap: 28px; }
.menu-open .site-nav { display: flex; }
.site-nav ul { list-style: none; display: flex; flex-direction: column; }
.site-nav li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--border); font-family: var(--font-head); font-size: 1.25rem; font-weight: 500; text-decoration: none; color: var(--brand); }

@media (min-width: 1100px) {
  .menu-toggle { display: none; }
  .site-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 24px; padding: 0; background: none; overflow: visible; }
  .site-nav ul { flex-direction: row; gap: 2px; }
  .site-nav li a { border: 0; padding: 8px 12px; font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--text); border-radius: 8px; }
  .site-nav li a:hover { color: var(--brand); background: rgba(22, 57, 68, .06); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-top: clamp(64px, 10vw, 128px); }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 70% at 85% 30%, rgba(92, 208, 194, .10), transparent 70%); }
.hero-mark { position: absolute; right: -14%; top: 46%; transform: translateY(-50%); width: min(820px, 95vw); opacity: .05; pointer-events: none; user-select: none; }
@media (min-width: 1024px) { .hero-mark { right: -4%; opacity: .06; } }
.hero-inner { position: relative; padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { max-width: 15ch; margin-top: 20px; font-size: clamp(2.2rem, 1.2rem + 4.6vw, 4.25rem); letter-spacing: -0.02em; }
.hero-lead { max-width: 560px; margin-top: 24px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.domain-strip { position: relative; border-top: 1px solid var(--line-dark); background: rgba(255, 255, 255, .02); }
.domain-strip ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); }
.domain-strip li { border-bottom: 1px solid var(--line-dark); }
.domain-strip li:nth-child(odd) { border-right: 1px solid var(--line-dark); }
@media (min-width: 1024px) {
  .domain-strip ul { grid-template-columns: repeat(4, 1fr); }
  .domain-strip li { border-bottom: 0; border-right: 1px solid var(--line-dark); }
  .domain-strip li:first-child { border-left: 1px solid var(--line-dark); }
}
.domain-strip a { display: flex; align-items: center; gap: 12px; padding: 20px 12px; min-height: 72px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; text-decoration: none; color: #fff; }
@media (min-width: 768px) { .domain-strip a { padding: 24px 20px; font-size: 1.05rem; } }
.domain-strip a:hover { background: rgba(255, 255, 255, .04); }
.domain-strip .icon { color: var(--mint); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.service-list { list-style: none; }
.service { display: flex; flex-direction: column; padding: 28px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.service:hover { border-color: #b9cbcd; box-shadow: var(--shadow); transform: translateY(-2px); }
.service h3 { margin-top: 24px; font-size: 1.3rem; }
.service .promise { margin-top: 10px; color: var(--muted); }
.offerings { list-style: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 10px; font-size: .95rem; }
.offerings li { display: flex; gap: 10px; align-items: flex-start; }
.offerings .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-text); }

/* ==========================================================================
   WHY
   ========================================================================== */
@media (min-width: 1024px) { .why-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; } .why-layout .section-head { margin: 0; } }
.why-list { list-style: none; gap: 32px 40px; }
.why-list li { display: flex; gap: 20px; align-items: flex-start; }
.why-list h3 { font-size: 1.2rem; margin-top: 4px; }
.why-list p { margin-top: 8px; color: var(--muted); }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.steps { list-style: none; display: grid; gap: 16px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0; } }
.steps li { padding: 28px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--deep-2); }
@media (min-width: 1024px) {
  .steps li { border-radius: 0; border-right-width: 0; }
  .steps li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .steps li:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-right-width: 1px; }
}
.step-top { display: flex; justify-content: space-between; align-items: center; color: var(--mint); }
.step-num { font-family: var(--font-head); font-size: .85rem; font-weight: 500; letter-spacing: .22em; }
.steps h3 { margin-top: 32px; font-size: 1.35rem; }
.steps p { margin-top: 10px; color: var(--on-dark-muted); }

/* ==========================================================================
   TEAM & SKILLS
   ========================================================================== */
.sub-title { font-size: 1.2rem; margin-bottom: 20px; }
.profile { display: grid; overflow: hidden; }
@media (min-width: 768px) { .profile { grid-template-columns: 280px 1fr; } }
@media (min-width: 1024px) { .profile { grid-template-columns: 340px 1fr; } }
.profile-photo { position: relative; background: var(--deep); aspect-ratio: 4 / 5; }
@media (min-width: 768px) { .profile-photo { aspect-ratio: auto; min-height: 100%; } }
.profile-photo picture, .profile-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.profile-photo img { object-fit: cover; object-position: top; }
.profile-body { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) { .profile-body { padding: 40px; } }
.profile h3 { font-size: 1.6rem; }
.profile .role { color: var(--accent-text); font-weight: 700; margin-top: 4px; }
.profile .bio { color: var(--muted); }
.profile .bio p + p { margin-top: .8em; }
.facts { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts dt { font-family: var(--font-head); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-weight: 600; color: var(--brand); margin-top: 2px; }
.timeline { list-style: none; display: grid; gap: 12px; border-left: 2px solid var(--border); padding-left: 18px; }
.timeline li { position: relative; font-size: .95rem; }
.timeline li::before { content: ''; position: absolute; left: -24px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--white); border: 2px solid var(--focus); }
.timeline strong { display: block; color: var(--text); }
.timeline span { color: var(--muted); }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.skills-block { margin-top: 56px; }
.skill-groups { list-style: none; }
.skill-group { padding: 24px; }
.skill-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--brand); }
.skill-group-head h3, .skill-group-head h4 { font-size: 1.05rem; }
.certs { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 768px) { .certs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .certs { grid-template-columns: repeat(3, 1fr); } }
.certs li { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.certs .icon { color: var(--accent-text); }
.certs strong { display: block; font-size: .95rem; line-height: 1.35; }
.certs span { font-size: .85rem; color: var(--muted); }
/* Team highlights (home page) */
.highlights { list-style: none; }
.highlight { padding: 28px; }
.highlight h3 { margin-top: 20px; font-size: 1.2rem; }
.highlight p { margin-top: 8px; color: var(--muted); }

/* Work section before case studies exist */
.work-empty { display: grid; gap: 20px; padding: 28px; align-items: center; }
@media (min-width: 768px) { .work-empty { grid-template-columns: auto 1fr auto; padding: 32px 36px; } }
.work-empty h3 { font-size: 1.25rem; }
.work-empty p { margin-top: 6px; color: var(--muted); max-width: 560px; }
.work-empty .btn { justify-self: start; }

/* Short team intro on the home page (full profiles are on team.html) */
.team-intros { display: grid; gap: 20px; }
@media (min-width: 1024px) { .team-intros { grid-template-columns: repeat(2, 1fr); } }
.team-intro {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; padding: 20px;
  text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.team-intro:hover { border-color: #b9cbcd; box-shadow: var(--shadow); transform: translateY(-2px); }
.team-intro:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4.5px var(--focus); border-radius: var(--radius); }
.team-intro-photo { width: 96px; height: 120px; object-fit: cover; object-position: top; border-radius: 12px; }
.team-intro h3 { font-size: 1.25rem; }
.team-intro .role { color: var(--accent-text); font-weight: 700; font-size: .92rem; margin: 2px 0 8px; }
.team-intro-body p:last-child { color: var(--muted); font-size: .95rem; }
.team-intro-cta { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 6px; padding-top: 14px; border-top: 1px solid var(--border); font-family: var(--font-head); font-weight: 500; color: var(--brand); }
.team-intro-cta .icon { width: 18px; height: 18px; transition: transform .18s; }
.team-intro:hover .team-intro-cta .icon { transform: translateX(3px); }
.team-more { margin-top: 32px; }
@media (max-width: 479px) {
  .team-intro { grid-template-columns: 72px 1fr; gap: 16px; align-items: start; }
  .team-intro-photo { width: 72px; height: 90px; }
}
.team-more .btn { white-space: normal; text-align: left; line-height: 1.3; padding-top: 12px; padding-bottom: 12px; }

/* Call-to-action band (team page) */
.cta-band { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .cta-band { grid-template-columns: 1.4fr 1fr; } .cta-actions { justify-content: flex-end; } }
.cta-band h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); margin-top: 12px; }
.cta-band p:not(.eyebrow) { margin-top: 14px; color: var(--on-dark-muted); max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.team-note { margin-top: 32px; padding: 20px 24px; border: 1px dashed #b7c8cb; border-radius: var(--radius); color: var(--muted); }

/* ==========================================================================
   WORK / PORTFOLIO
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 32px; }
.filters .btn[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: #fff; }
.projects { list-style: none; align-items: start; }
.project { display: flex; flex-direction: column; height: 100%; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.project:hover { box-shadow: var(--shadow); border-color: #b9cbcd; }
.project-cover {
  position: relative; height: 150px; display: flex; align-items: flex-end; justify-content: space-between; padding: 20px; color: var(--mint);
  background: radial-gradient(circle at 85% 15%, rgba(92, 208, 194, .2), transparent 55%), repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px), var(--deep);
}
.project-cover .icon { width: 44px; height: 44px; stroke-width: 1.3; }
.project-cover .project-tag { font-family: var(--font-head); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); }
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-family: var(--font-head); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }
.project h3 { font-size: 1.25rem; }
.project .summary { color: var(--muted); }
.project .by { font-size: .88rem; font-weight: 600; color: var(--brand); }
.project-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }

.case { border-top: 1px solid var(--border); }
.case summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 24px; font-family: var(--font-head); font-weight: 500; color: var(--brand);
}
.case summary::-webkit-details-marker { display: none; }
.case summary:hover { background: var(--surface); }
.case summary .icon { transition: transform .2s; }
.case[open] summary .icon { transform: rotate(180deg); }
.case-body { padding: 4px 24px 24px; display: grid; gap: 16px; font-size: .95rem; }
.case-body h4 { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); font-weight: 500; margin-bottom: 4px; }
.case-body p { color: var(--muted); }
.case-body figure { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.case-body figcaption { font-size: .82rem; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--border); }

/* ==========================================================================
   TEAM MEMBER CARDS + INDIVIDUAL PORTFOLIO PAGES
   ========================================================================== */
.members { list-style: none; }
.member-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.member-card:hover { border-color: #b9cbcd; box-shadow: var(--shadow); transform: translateY(-3px); }
.member-card:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4.5px var(--focus); }
.member-photo { position: relative; aspect-ratio: 4 / 5; background: var(--deep); overflow: hidden; }
.member-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.member-card:hover .member-photo img { transform: scale(1.03); }
.member-photo-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--mint);
  background: radial-gradient(circle at 80% 15%, rgba(92, 208, 194, .2), transparent 55%), repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px), var(--deep);
}
.member-photo-placeholder .icon { width: 35%; height: 35%; stroke-width: 1.1; opacity: .8; }
.member-initials { font-family: var(--font-head); font-weight: 500; font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem); letter-spacing: .08em; color: var(--mint); }
.members-compact .member-initials { font-size: 2.5rem; }
@media (max-width: 559px) { .members:not(.members-compact) .member-initials { font-size: 1.8rem; } }
.member-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.member-body h3 { font-size: 1.2rem; }
.member-body .role { color: var(--accent-text); font-weight: 700; font-size: .92rem; margin-top: -4px; }
.member-cta { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 500; color: var(--brand); }
.member-cta .icon { width: 18px; height: 18px; transition: transform .18s; }
.member-card:hover .member-cta .icon { transform: translateX(3px); }
@media (max-width: 559px) {
  .members:not(.members-compact) .member-card { flex-direction: row; }
  .members:not(.members-compact) .member-photo { width: 96px; flex-shrink: 0; aspect-ratio: auto; }
  .members:not(.members-compact) .member-body { padding: 16px; gap: 8px; }
  .members:not(.members-compact) .chips li:nth-child(n+3) { display: none; }
}
.members-compact .member-photo { aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .members-duo { max-width: 760px; } }

.portfolio-hero { padding: clamp(40px, 7vw, 88px) 0; }
.portfolio-hero-inner { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 768px) { .portfolio-hero-inner { grid-template-columns: 240px 1fr; gap: 48px; } }
@media (min-width: 1024px) { .portfolio-hero-inner { grid-template-columns: 300px 1fr; } }
.portfolio-photo { position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 220px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark); }
@media (min-width: 768px) { .portfolio-photo { max-width: none; } }
.portfolio-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.portfolio-hero h1 { margin-top: 14px; }
.portfolio-role { margin-top: 8px; color: var(--mint); font-weight: 700; font-size: 1.1rem; }
.portfolio-hero .hero-actions { margin-top: 28px; }
.back-link { display: flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--on-dark-muted); font-weight: 600; text-decoration: none; }
.back-link .icon { width: 18px; height: 18px; transform: rotate(180deg); }
.back-link:hover { color: #fff; }
.portfolio-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; } }
.h-card { font-size: 1.05rem; }
.cert-list { list-style: none; display: grid; gap: 12px; }
.cert-list strong { display: block; font-size: .95rem; }
.cert-list span { font-size: .85rem; color: var(--muted); }
.project .client { font-size: .88rem; color: var(--muted); }
.portfolio-h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.2rem); margin: 12px 0 20px; max-width: 20ch; }
.quick-facts { padding: 28px; }
.quick-facts .facts { grid-template-columns: 1fr; gap: 18px; }
.pillars { list-style: none; margin-top: 48px; }
.pillar { padding: 28px; }
.pillar-num { font-family: var(--font-head); font-style: italic; font-size: 1.4rem; color: var(--accent-text); }
.pillar h3 { margin-top: 8px; font-size: 1.25rem; }
.pillar p { margin-top: 8px; color: var(--muted); }
.exp-list { list-style: none; padding: 0; display: grid; gap: 16px; }
.exp { padding: 24px 28px; }
.exp-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.exp-head h3 { font-size: 1.15rem; }
.exp-date { font-family: var(--font-head); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.exp-org { margin-top: 4px; color: var(--muted); font-weight: 600; }
.exp ul { margin-top: 12px; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); }
.project .by a { color: var(--brand); }

/* ==========================================================================
   CONTACT
   ========================================================================== */
@media (min-width: 1024px) { .contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; } }
.contact-details { list-style: none; display: grid; gap: 20px; margin-bottom: 40px; }
.contact-details li { display: flex; gap: 16px; align-items: center; }
.contact-details .k { display: block; font-family: var(--font-head); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-details a { color: var(--brand); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 3px; }

.form-card { padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-card { padding: 40px; } }
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input:not([type='checkbox']), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid #b7c8cb; background: #fff; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163944' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 20px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 127, 120, .35); }
.field [aria-invalid='true'] { border-color: var(--danger) !important; }
.hint { font-size: .88rem; color: var(--muted); }
.err { font-size: .88rem; color: var(--danger); font-weight: 600; }
.err:empty { display: none; }
.field-check { grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }
.field-check label { font-weight: 500; color: var(--muted); }
.field-check label a { color: var(--brand); }
.field-check .err { grid-column: 2; }
.form-error { padding: 12px 16px; border-radius: var(--radius-sm); background: #fdecea; color: #7a1a12; font-size: .95rem; }
.form-error a { color: inherit; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 32px 8px; outline: none; }
.form-success .icon-tile { margin: 0 auto 20px; color: var(--accent-text); }
.form-success h3 { font-size: 1.4rem; }
.form-success p { margin-top: 8px; color: var(--muted); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { padding: 64px 0 32px; }
.footer-top { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-top .brand-link img { width: 150px; }
.footer-tagline { margin-top: 20px; color: var(--on-dark-muted); max-width: 300px; }
.footer-label { font-family: var(--font-head); font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--mint); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; color: var(--on-dark-muted); overflow-wrap: anywhere; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .9rem; color: var(--on-dark-muted); }
.footer-bottom ul { display: flex; gap: 24px; }

/* ==========================================================================
   SIMPLE PAGES (privacy, imprint, 404)
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0; }
.page-hero .hero-mark { width: min(520px, 70vw); right: -6%; top: 50%; }
.page-hero h1 { position: relative; margin-top: 16px; font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
.page-hero .eyebrow, .page-hero p { position: relative; }
.page-hero p.lead { margin-top: 16px; color: var(--on-dark-muted); max-width: 620px; font-size: 1.1rem; }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.5rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 .5em; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.3em; }
.prose a { color: var(--brand); text-underline-offset: 3px; }
.prose > :first-child { margin-top: 0; }
.prose .updated { color: var(--muted); }
