/* ============================================
   Agman — Modern Minimalist Design System
   ============================================ */

/* ---- Reset & base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

/* ---- Tokens ---- */
:root {
  /* Palette — inspired by Agman brand blue #3882AB */
  --ink: #0B1D2E;            /* primary text / deep navy */
  --ink-80: #1f3447;
  --ink-60: #4a5a6c;
  --ink-40: #7d8a98;
  --ink-20: #c4ccd4;
  --ink-10: #e7eaee;
  --line: #e5e7eb;
  --paper: #ffffff;
  --paper-warm: #f7f6f1;     /* soft cream */
  --paper-cool: #f4f6f8;
  --accent: #3882AB;         /* Agman blue */
  --accent-dark: #2a6a8f;
  --accent-ink: #143a52;

  /* Typography */
  --font-serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --step--1: clamp(0.83rem, 0.81rem + 0.11vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 1.85rem);
  --step-3:  clamp(2rem, 1.7rem + 1.5vw, 2.6rem);
  --step-4:  clamp(2.8rem, 2.2rem + 3vw, 4rem);
  --step-5:  clamp(3.5rem, 2.5rem + 5vw, 6rem);
  --step-6:  clamp(4.5rem, 3rem + 7vw, 8rem);

  /* Layout */
  --container: 1280px;
  --container-narrow: 960px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms var(--ease);
  --t: 320ms var(--ease);
  --t-slow: 640ms var(--ease);

  /* Border radius */
  --r-xs: 2px;
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  font-feature-settings: "cv11", "ss01", "ss03";
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---- Typography utilities ---- */
.display {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-size: var(--step-6);
}

.display em,
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { max-width: 65ch; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: currentColor;
}

.lede {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--step-2);
  line-height: 1.35;
  color: var(--ink-80);
  max-width: 36ch;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--ink-60);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

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

.section {
  padding-block: clamp(4rem, 8vw, 8rem);
}

.section-lg {
  padding-block: clamp(6rem, 12vw, 12rem);
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
}

/* ---- Buttons / Links ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn--ghost {
  border-color: transparent;
  padding-inline: 0;
}

.btn--ghost:hover {
  background: none;
  color: var(--accent);
  transform: translateX(4px);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--ink);
  transition: color var(--t-fast), border-color var(--t-fast), gap var(--t-fast);
}

.arrow-link::after {
  content: "→";
  transition: transform var(--t-fast);
}

.arrow-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  gap: 0.8rem;
}

.arrow-link:hover::after {
  transform: translateX(4px);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), padding var(--t);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  padding-block: 0.85rem;
}

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

.nav__logo {
  display: block;
}

.nav__logo img {
  height: 28px;
  width: auto;
  transition: height var(--t);
}

.nav.is-scrolled .nav__logo img {
  height: 24px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.2vw, 2.5rem);
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--t-fast);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right var(--t);
}

.nav__link:hover {
  color: var(--accent);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  right: 0;
}

.nav__link.is-active {
  color: var(--accent);
}

.nav__toggle {
  display: none;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav__toggle span {
  display: block;
  position: absolute;
  height: 1px;
  width: 22px;
  background: var(--ink);
  transition: transform var(--t), opacity var(--t-fast), top var(--t);
}

.nav__toggle span:nth-child(1) { top: 10px; }
.nav__toggle span:nth-child(2) { top: 17px; }

.nav.is-open .nav__toggle span:nth-child(1) {
  top: 14px;
  transform: rotate(45deg);
}

.nav.is-open .nav__toggle span:nth-child(2) {
  top: 14px;
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  /* Solid nav background on mobile — translucent + dark hero video
     left the logo and hamburger hard to read */
  .nav {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: var(--line);
  }
  .nav__toggle { display: inline-flex; }
  /* Slide-in mobile menu — explicit fixed positioning with full viewport
     dimensions and z-index above page content so the white background
     reliably covers everything, regardless of the parent's containing
     block behavior. */
  .nav__links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100vh - 64px);
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2.5rem var(--gutter);
    transform: translateX(100%);
    transition: transform var(--t);
    border-top: 1px solid var(--line);
    z-index: 99;
  }
  .nav.is-open .nav__links {
    transform: translateX(0);
  }
  .nav__link {
    font-size: 1.25rem;
    font-family: var(--font-serif);
    letter-spacing: 0;
    text-transform: none;
    font-weight: 300;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: clamp(640px, 92vh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: clamp(6rem, 12vw, 10rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
  overflow: hidden;
}

.hero--split {
  min-height: clamp(600px, 85vh, 820px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,29,46,0.55) 0%, rgba(11,29,46,0.75) 100%),
    linear-gradient(90deg, rgba(11,29,46,0.35) 0%, rgba(11,29,46,0) 60%);
  pointer-events: none;
}

.hero__bg video,
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--step-6);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 18ch;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  /* Long words like "entrepreneurial" can exceed phone widths at the
     base size — let them wrap rather than overflow */
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 640px) {
  .hero__title {
    font-size: clamp(2.5rem, 11vw, 4rem);
    letter-spacing: -0.02em;
  }
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: #ffffff;
}

.hero--light .hero__title {
  color: var(--ink);
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--paper);
}

.hero--light .hero__meta { color: var(--ink); }

.hero__tag {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---- Page hero (smaller) ---- */
.page-hero {
  padding-top: clamp(9rem, 14vw, 13rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero__eyebrow { margin-bottom: 1.5rem; }

.page-hero__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--step-5);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 20ch;
  color: var(--ink);
}

.page-hero__title em {
  font-style: italic;
  color: var(--accent);
}

/* ---- Grid helpers ---- */
.grid {
  display: grid;
  gap: 3rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Philosophy / principle block ---- */
.pillar {
  padding-top: 2.5rem;
  border-top: 1px solid var(--ink);
}

.pillar__num {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink-60);
  margin-bottom: 1.25rem;
  display: block;
}

.pillar__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--step-2);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.pillar__body {
  color: var(--ink-60);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ---- Two-column content ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.two-col--reverse { grid-template-columns: 1.25fr 1fr; }

@media (max-width: 860px) {
  .two-col, .two-col--reverse { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---- Section headers ---- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-head__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--step-4);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.section-head__title em {
  font-style: italic;
  color: var(--accent);
}

.section-head__aside {
  max-width: 38ch;
  color: var(--ink-60);
}

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem 3rem;
  padding-block: 3rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.stat__number {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat__number sup {
  font-size: 0.45em;
  vertical-align: top;
  color: var(--accent);
  margin-left: 0.1em;
}

.stat__label {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
}

/* ---- Marquee (logo strip) ---- */
.marquee {
  overflow: hidden;
  padding-block: 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}

.marquee__label {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 2rem;
}

.marquee__track {
  display: flex;
  gap: 4rem;
  align-items: center;
  width: max-content;
  animation: slide 60s linear infinite;
}

.marquee__track img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity var(--t-fast), filter var(--t-fast);
}

.marquee__track img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Portfolio grid ---- */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.portfolio-filters__label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-right: 1rem;
}

.portfolio-filter {
  padding: 0.55rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-60);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all var(--t-fast);
}

.portfolio-filter:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.portfolio-filter.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.portfolio-item {
  background: var(--paper);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: background var(--t-fast);
  min-height: 220px;
}

.portfolio-item:hover {
  background: var(--paper-warm);
}

.portfolio-item[hidden] { display: none; }

.portfolio-item__logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.portfolio-item__logo img {
  max-height: 60px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter var(--t), opacity var(--t);
}

.portfolio-item:hover .portfolio-item__logo img {
  filter: grayscale(0%);
  opacity: 1;
}

.portfolio-item__logo--text {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.portfolio-item__name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.portfolio-item__tag {
  margin-top: auto;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-40);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portfolio-item__tag .cat {
  color: var(--accent);
}

/* ---- Portfolio details modal ---- */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 29, 46, 0.68);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}

.dialog-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: min(640px, 92vw);
  max-height: 84vh;
  background: var(--paper);
  z-index: 210;
  padding: clamp(2rem, 5vw, 3rem);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t), transform var(--t);
}

.dialog.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.dialog__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1rem;
  transition: all var(--t-fast);
}

.dialog__close:hover {
  border-color: var(--ink);
  transform: rotate(90deg);
}

.dialog__eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.dialog__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--step-3);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.dialog__body {
  color: var(--ink-80);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---- Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.team-card {
  background: var(--paper);
  padding: 2rem 1.75rem 1.75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background var(--t-fast);
}

.team-card:hover {
  background: var(--paper-warm);
}

.team-card__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-cool);
  position: relative;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%);
  transition: filter var(--t), transform var(--t-slow);
}

.team-card__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--accent);
  background: linear-gradient(135deg, #eef3f7 0%, #dde6ed 100%);
}

.team-card:hover .team-card__photo img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.team-card__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.team-card__role {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: -0.75rem;
}

/* Team detail dialog */
.team-dialog {
  width: min(780px, 94vw);
}

.team-dialog__header {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2rem;
}

.team-dialog__photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper-cool);
}

.team-dialog__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-dialog__name {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: -0.015em;
}

.team-dialog__role {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.team-dialog__bio p + p { margin-top: 1rem; }

/* Team card footer (role + LinkedIn icon) */
.team-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.team-card__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--ink-60);
  transition: color var(--t-fast), transform var(--t-fast);
}

.team-card__linkedin:hover {
  color: #0a66c2;
  transform: scale(1.12);
}

/* LinkedIn link inside team dialog */
.team-dialog__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-60);
  text-decoration: none;
  transition: color var(--t-fast);
}

.team-dialog__linkedin:hover {
  color: #0a66c2;
}

.team-dialog__linkedin svg {
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .team-dialog__header { grid-template-columns: 1fr; }
  .team-dialog__photo  { width: 140px; }
}

/* ---- News ---- */
.news-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 2.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding-left var(--t-fast);
}

a.news-item:hover {
  padding-left: 1rem;
}

div.news-item {
  cursor: default;
}

.news-item__date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-60);
}

.news-item__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.news-item__cat {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 720px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ---- Footer ---- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(4rem, 8vw, 6rem) 2rem;
}

.footer a { color: var(--paper); opacity: 0.8; transition: opacity var(--t-fast); }
.footer a:hover { opacity: 1; color: #bfdcec; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__logo img { height: 40px; margin-bottom: 1.5rem; }

.footer__tagline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.45;
  max-width: 26ch;
  opacity: 0.85;
}

.footer__heading {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #bfdcec;
  margin-bottom: 1.25rem;
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.footer__address {
  font-size: 0.95rem;
  line-height: 1.65;
  font-style: normal;
  opacity: 0.85;
}

.footer__address strong {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
  opacity: 1;
}

.footer__bottom {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

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

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

.noscroll { overflow: hidden; }

/* Visually hide content while keeping it available to screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---- Reduced motion (WCAG 2.3.3) ---- */
@media (prefers-reduced-motion: reduce) {
  /* Neutralize all animations and transitions globally */
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* Stop the autoplaying logo marquee */
  .marquee__track {
    animation: none !important;
    transform: none !important;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Show reveal-on-scroll content immediately, no movement */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Keep hero video paused via the poster image */
  .hero__bg video {
    display: none;
  }
}

/* ---- Forms ---- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-field label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: 1px solid var(--ink-20);
  background: transparent;
  font: inherit;
  color: var(--ink);
  transition: border-color var(--t-fast);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---- Misc. marks ---- */
.mark {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.quote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--step-3);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid var(--accent);
}

/* ---- Copy toast (mailto click-to-copy confirmation) ---- */
.copy-toast {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -100%);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  border-radius: var(--r);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(11, 29, 46, 0.18);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.copy-toast::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--ink);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 1px;
}
.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 4px));
}
@media (prefers-reduced-motion: reduce) {
  .copy-toast { transition: opacity var(--t-fast); }
  .copy-toast.is-visible { transform: translate(-50%, -100%); }
}
