:root {
  --ink: #0f1419;
  --ink-soft: #243040;
  --paper: #f3f1ec;
  --paper-2: #eae7e0;
  --surface: #ffffff;
  --muted: #5b6570;
  --line: rgba(15, 20, 25, 0.12);
  --accent: #0c6e6b;
  --accent-2: #0a5553;
  --accent-soft: #d7f0ee;
  --glow: #c8f542;
  --danger: #9b2c2c;
  --success: #166534;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(15, 20, 25, 0.08);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(12, 110, 107, 0.12), transparent 60%),
    radial-gradient(900px 420px at -10% 20%, rgba(200, 245, 66, 0.12), transparent 55%),
    linear-gradient(180deg, #f7f5f0 0%, var(--paper) 40%, #efece5 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-2);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.55em;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: var(--accent);
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 38rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(243, 241, 236, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 245, 240, 0.94);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
}

.brand-word span {
  color: var(--accent);
}

.brand--footer {
  color: #fff;
  margin-bottom: 0.75rem;
}

.brand--footer .brand-word span {
  color: var(--glow);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.nav-list,
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem 1.35rem;
}

.nav-link,
.menu a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  position: relative;
}

.nav-link::after,
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after,
.current-menu-item > a::after,
.menu a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-2);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(15, 20, 25, 0.92) 0%, rgba(15, 20, 25, 0.72) 48%, rgba(12, 110, 107, 0.55) 100%),
    var(--hero-image) center / cover no-repeat;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
  z-index: 1;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 7.2rem);
  letter-spacing: -0.055em;
  line-height: 0.92;
  color: #fff;
  margin: 0 0 1.1rem;
  max-width: 11ch;
}

.hero-brand span {
  color: var(--glow);
}

.hero-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  max-width: 34rem;
  margin: 0;
}

.hero .btn--primary {
  background: var(--glow);
  color: var(--ink);
}

.hero .btn--primary:hover {
  background: #fff;
  color: var(--ink);
}

.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hero .btn--ghost:hover {
  border-color: #fff;
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.hero-meta strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section--alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
}

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 40rem;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

/* Cards / grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.card--plain {
  box-shadow: none;
  background: transparent;
}

.card-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* Portfolio */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.logo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 0;
  padding: 1.25rem 1.1rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.95rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: var(--shadow);
}

.logo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(12, 110, 107, 0.35);
}

.logo-card__media {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #f7f5f0;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  margin-inline: auto;
}

.logo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.logo-card__fallback {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  font-size: 1.25rem;
}

.logo-card__body {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  width: 100%;
}

.logo-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.logo-card__type {
  color: var(--muted);
  font-size: 0.9rem;
}

.logo-card__cta {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-2);
}

.logo-card--link {
  text-decoration: none;
  color: inherit;
}

.logo-card--link:hover {
  color: inherit;
}

.logo-card--link:hover .logo-card__cta {
  color: var(--ink);
}

.portfolio-note {
  margin: 1.5rem 0 0;
  font-weight: 600;
}

.portfolio-note a {
  text-decoration: none;
  color: var(--accent-2);
}

.phone-stack {
  display: grid;
  gap: 0.35rem;
}

.phone-stack a {
  display: inline-block;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.person {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.person__photo {
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  overflow: hidden;
}

.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.person:hover .person__photo img {
  transform: scale(1.04);
}

.person__body {
  padding: 1rem 1rem 1.15rem;
}

.person__body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.person__role {
  color: var(--accent-2);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.person__bio {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 0.65rem;
}

.person--link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.person--link:hover {
  color: inherit;
  transform: translateY(-3px);
  border-color: rgba(12, 110, 107, 0.35);
}

.person__cta {
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-2);
}

.team-grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.chip--link {
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.chip--link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.page-hero--member h1 {
  max-width: 16ch;
}

.member-role-lede {
  color: var(--accent-2);
  font-weight: 600;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.2fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.profile-photo {
  margin: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
}

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

.identity-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.identity-card__label {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-2);
}

.detail-list--light span {
  color: var(--muted);
}

.detail-list--light strong {
  color: var(--ink);
}

.detail-list--light a {
  color: var(--accent-2);
  text-decoration: none;
}

.detail-list--light a:hover {
  color: var(--ink);
}

.profile-copy h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-top: 0.25rem;
}

.profile-copy h3 {
  font-size: 1.1rem;
  margin-top: 1.4rem;
}

.profile-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.focus-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.35rem;
}

.content-prose h2 {
  margin-top: 1.75rem;
  font-size: 1.45rem;
}

/* Contact / company card */
.company-card {
  background: var(--ink);
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 1.25rem;
}

.company-card h2,
.company-card h3 {
  color: #fff;
}

.company-card a {
  color: var(--glow);
  text-decoration: none;
}

.company-card a:hover {
  color: #fff;
}

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.detail-list li {
  display: grid;
  gap: 0.2rem;
}

.detail-list span {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.detail-list strong {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
}

.page-hero {
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  max-width: 12ch;
}

.content-prose {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.content-prose p + p {
  margin-top: 1rem;
}

/* Forms */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-field span {
  font-size: 0.88rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  font: inherit;
  background: #fbfaf7;
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(12, 110, 107, 0.35);
  border-color: var(--accent);
  background: #fff;
}

.form-notice {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 600;
}

.form-notice--success {
  background: #dcfce7;
  color: var(--success);
}

.form-notice--error {
  background: #fee2e2;
  color: var(--danger);
}

/* Split layouts */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.2rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 0.75rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-list a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
}

.footer-list a:hover {
  color: var(--glow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  .hero-brand {
    animation: rise 0.9s var(--ease) both;
  }
  .hero-copy,
  .hero .btn-row,
  .hero-meta {
    animation: rise 0.9s var(--ease) both;
  }
  .hero-copy { animation-delay: 0.08s; }
  .hero .btn-row { animation-delay: 0.16s; }
  .hero-meta { animation-delay: 0.24s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .grid-3,
  .logo-grid,
  .team-grid,
  .footer-grid,
  .split,
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(247, 245, 240, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .site-header.is-open .site-nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list,
  .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .grid-3,
  .logo-grid,
  .team-grid,
  .footer-grid,
  .split,
  .stat-row,
  .form-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    max-width: none;
  }

  .page-hero h1,
  .page-hero--member h1 {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 1.5rem, var(--max));
  }
}
