:root {
  color-scheme: dark;
  --ink: #eef5f0;
  --ink-soft: #afbeb7;
  --muted: #798b84;
  --line: rgba(230, 245, 237, 0.12);
  --line-bright: rgba(230, 245, 237, 0.22);
  --night: #071418;
  --night-2: #0b1c20;
  --night-3: #10262a;
  --green: #8edba9;
  --green-deep: #2e8d6a;
  --amber: #f2ba6b;
  --white: #f7fbf8;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.13;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--white);
  color: var(--night);
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 16px;
}

.ambient {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  filter: blur(110px);
  opacity: 0.24;
  border-radius: 999px;
}

.ambient-one {
  width: 420px;
  height: 420px;
  left: -120px;
  top: 80px;
  background: #1c8b6a;
}

.ambient-two {
  width: 380px;
  height: 380px;
  right: -100px;
  top: 580px;
  background: #b66e30;
  opacity: 0.12;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid transparent;
  background: rgba(7, 20, 24, 0.7);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(7, 20, 24, 0.91);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 15px;
}

.site-header nav {
  display: flex;
  gap: 28px;
}

.site-header nav a {
  color: var(--ink-soft);
  font-size: 14px;
  transition: color 180ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--white);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}

.header-cta span,
.button span,
.text-link span {
  transition: transform 180ms ease;
}

.header-cta:hover span,
.button:hover span,
.text-link:hover span {
  transform: translate(2px, -2px);
}

.hero,
.work-section,
.fit-section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 76px 0 36px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.06;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 6.5vw, 6.6rem);
  font-weight: 500;
}

h1 span {
  color: var(--green);
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--green);
  color: #06130f;
}

.button-primary:hover {
  background: #ace9c0;
}

.button-quiet {
  border-color: var(--line-bright);
  color: var(--ink-soft);
}

.button-quiet:hover {
  border-color: rgba(142, 219, 169, 0.55);
  color: var(--white);
}

.signal-row {
  display: flex;
  gap: 0;
  margin-top: 42px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.signal-row span {
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.signal-row span:first-child {
  padding-left: 0;
}

.signal-row span:last-child {
  border-right: 0;
}

.signal-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.02em;
  text-transform: none;
}

.hero-portrait {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0;
  justify-self: end;
  border: 1px solid var(--line-bright);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-portrait figcaption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 4px;
  padding: 70px 28px 28px;
  background: linear-gradient(transparent, rgba(7, 20, 24, 0.95));
}

.hero-portrait figcaption strong {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}

.hero-portrait figcaption span {
  color: var(--ink-soft);
  font-size: 14px;
}

.operating-card {
  grid-column: 1 / -1;
  position: relative;
  padding: 22px;
  border: 1px solid var(--line-bright);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(17, 43, 47, 0.92), rgba(9, 25, 29, 0.74));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.operating-card::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -120px;
  top: -130px;
  border: 1px solid rgba(242, 186, 107, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(242, 186, 107, 0.02), 0 0 0 80px rgba(242, 186, 107, 0.015);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 4px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-dot {
  position: relative;
  padding-left: 12px;
  color: var(--green);
}

.status-dot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(142, 219, 169, 0.1);
  transform: translateY(-50%);
}

.impact-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 0 14px;
}

.flow-step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.flow-step:hover,
.flow-step:focus-visible,
.flow-step.is-active {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(4px);
}

.flow-number {
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 14px;
}

.flow-step strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.flow-step small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.flow-note {
  min-height: 72px;
  padding: 16px;
  border-radius: 16px;
  background: var(--green);
  color: #0a1c16;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.4;
}

.hero-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-section {
  padding: 124px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 54px;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 5.1rem);
  font-weight: 500;
}

.section-heading > p,
.fit-intro > p:last-child {
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 17px;
}

.case-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(8, 25, 28, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.case-list {
  border-right: 1px solid var(--line);
}

.case-tab {
  display: grid;
  grid-template-columns: 30px 1fr 24px;
  gap: 14px;
  width: 100%;
  min-height: 33.333%;
  padding: 28px 26px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.case-tab:last-child {
  border-bottom: 0;
}

.case-tab.is-active,
.case-tab:hover,
.case-tab:focus-visible {
  background: rgba(142, 219, 169, 0.07);
}

.case-index {
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 13px;
}

.case-tab strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.case-tab small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.case-arrow {
  color: var(--green);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.case-tab.is-active .case-arrow {
  opacity: 1;
  transform: none;
}

.case-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 74px);
  outline: none;
}

.case-kicker,
.fit-label {
  margin-bottom: 18px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.case-panel h3,
.fit-detail h3 {
  max-width: 660px;
  margin-bottom: 22px;
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  font-weight: 500;
}

.case-panel > p {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 17px;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.case-grid span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-grid p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 14px;
}

.case-tag-row,
.role-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.case-tag-row span,
.role-chip-row span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 11px;
}

.confidentiality-note {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.fit-section {
  padding: 116px 0 30px;
}

.fit-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 80px;
  align-items: end;
  margin-bottom: 52px;
}

.fit-intro .eyebrow,
.fit-intro h2 {
  grid-column: 1;
}

.fit-intro h2 {
  margin-top: -20px;
}

.fit-intro > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}

.fit-explorer {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  min-height: 420px;
  margin-bottom: 88px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(14, 42, 44, 0.85), rgba(7, 20, 24, 0.8));
  overflow: hidden;
}

.fit-options {
  display: grid;
  border-right: 1px solid var(--line);
}

.fit-option {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 22px 26px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, padding 180ms ease;
}

.fit-option:last-child {
  border-bottom: 0;
}

.fit-option span {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  color: var(--amber);
  font-family: Georgia, serif;
  font-size: 12px;
}

.fit-option.is-active,
.fit-option:hover,
.fit-option:focus-visible {
  padding-left: 32px;
  background: rgba(142, 219, 169, 0.07);
  color: var(--white);
}

.fit-detail {
  align-self: center;
  padding: clamp(36px, 6vw, 72px);
}

.fit-detail > p:not(.fit-label) {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 16px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: end;
  padding: clamp(34px, 6vw, 76px);
  border-radius: 30px;
  background: var(--green);
  color: #071713;
}

.contact-card .eyebrow {
  color: #235e48;
}

.contact-card h2 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
}

.contact-card p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: #255544;
  font-size: 17px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.button-light {
  background: var(--night);
  color: var(--white);
}

.button-light:hover {
  background: #10282a;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  color: #1d513e;
  font-size: 13px;
  font-weight: 800;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 30px 0 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

footer span:nth-child(2) {
  text-align: center;
}

footer a {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .operating-card {
    max-width: none;
  }

  .hero-portrait {
    justify-self: start;
  }

  .impact-flow {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .fit-intro,
  .case-layout,
  .fit-explorer,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .fit-intro {
    gap: 24px;
  }

  .fit-intro > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .case-list,
  .fit-options {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-tab {
    min-height: 146px;
  }

  .contact-card {
    align-items: start;
    gap: 38px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 18px;
  }

  .brand-name,
  .header-cta {
    font-size: 12px;
  }

  .header-cta {
    max-width: 128px;
    text-align: right;
  }

  .hero,
  .work-section,
  .fit-section {
    width: min(100% - 32px, var(--max));
  }

  .hero {
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 4.5rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .signal-row {
    justify-content: space-between;
  }

  .signal-row span {
    flex: 1;
    padding-inline: 10px;
  }

  .signal-row strong {
    font-size: 15px;
  }

  .card-topline,
  .hero-footer {
    flex-direction: column;
  }

  .work-section,
  .fit-section {
    padding-top: 90px;
  }

  .case-panel,
  .fit-detail {
    padding: 32px 24px;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-tab {
    padding: 22px 18px;
  }

  .contact-card {
    padding: 34px 24px;
  }

  .button-light {
    width: 100%;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  footer span:nth-child(2),
  footer a {
    justify-self: start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
