:root {
  --bg: #0f1412;
  --bg-soft: #151b18;
  --panel: #f4f1eb;
  --panel-muted: #e7e2d8;
  --ink: #f7f4ed;
  --ink-dark: #17201c;
  --muted: #aeb8b1;
  --muted-dark: #5c6760;
  --line: rgba(247, 244, 237, 0.16);
  --line-dark: rgba(23, 32, 28, 0.14);
  --green: #5f8f70;
  --green-deep: #214631;
  --blue: #173b5c;
  --violet: #7d73c8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 0%, rgba(95, 143, 112, 0.2), transparent 34rem),
    linear-gradient(180deg, #0f1412 0%, #151b18 54%, #f4f1eb 54%, #f4f1eb 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(15, 20, 18, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  background: var(--green-deep);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 13px;
}

.site-nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a,
.header-action {
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-action {
  padding: 10px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
}

.header-action:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  gap: 50px;
  align-items: center;
  min-height: calc(100vh - 74px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 58px;
}

.hero-copy,
.panel-main,
.profile-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0 0 14px;
  color: #91b49b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 660px;
  margin-bottom: 24px;
  font-size: clamp(38px, 4.25vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.16;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.56;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
  color: #07110c;
  background: #dfe9d8;
}

.btn.secondary {
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin: 0;
}

.hero-metrics div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-metrics dt {
  font-size: 28px;
  font-weight: 850;
}

.hero-metrics dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  position: relative;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  height: min(72vh, 700px);
  min-height: 520px;
  background: #a9aaa8;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 48%, rgba(15, 20, 18, 0.26));
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 26%;
}

.signal-panel {
  position: absolute;
  right: -18px;
  bottom: 34px;
  max-width: 260px;
  padding: 18px;
  background: rgba(244, 241, 235, 0.94);
  color: var(--ink-dark);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.signal-panel span,
.result-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-panel strong {
  display: block;
  font-size: 18px;
  line-height: 1.24;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 74px 24px;
  scroll-margin-top: 92px;
}

.compact-section {
  color: var(--ink-dark);
  background: var(--panel);
  border: 1px solid rgba(23, 32, 28, 0.08);
  border-radius: 22px;
  box-shadow: 0 26px 80px rgba(15, 20, 18, 0.14);
  padding-top: 52px;
  padding-bottom: 52px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.46fr) minmax(360px, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 22px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted-dark);
  font-size: 18px;
  line-height: 1.58;
}

.section-heading.narrow {
  display: block;
  max-width: 720px;
}

.tabs {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
}

.tab-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-button {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  color: var(--ink-dark);
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.tab-button.active {
  color: var(--ink);
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.tab-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  min-height: 390px;
  padding: 22px;
  background: #fffaf2;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(23, 32, 28, 0.08);
}

.tab-panel.active {
  display: grid;
}

.panel-main {
  padding: 10px 6px;
}

.panel-index {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green-deep);
  font-size: 15px;
  font-weight: 900;
}

.panel-main p,
.result-box p,
.profile-copy p {
  color: var(--muted-dark);
  font-size: 17px;
  line-height: 1.58;
}

.company-experience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 24px;
}

.company-experience div {
  min-height: 92px;
  padding: 16px;
  background: #fffaf2;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.company-experience strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-deep);
  font-size: 18px;
  line-height: 1.2;
}

.company-experience span {
  display: block;
  color: var(--muted-dark);
  font-size: 14px;
  line-height: 1.35;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: #29342f;
  line-height: 1.44;
}

.check-list li::before {
  position: absolute;
  top: 0.56em;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  content: "";
}

.stage-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.stage-row div {
  min-height: 96px;
  padding: 14px;
  background: rgba(33, 70, 49, 0.07);
  border: 1px solid rgba(33, 70, 49, 0.13);
  border-radius: var(--radius);
}

.stage-row b {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  place-items: center;
  color: var(--ink);
  background: var(--green-deep);
  border-radius: 50%;
  font-size: 13px;
}

.stage-row span {
  display: block;
  color: #29342f;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.28;
}

.result-box {
  align-self: stretch;
  padding: 24px;
  color: var(--ink-dark);
  background: var(--panel-muted);
  border-radius: 12px;
}

.result-box a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--green-deep);
  font-weight: 850;
}

.method-section {
  color: var(--ink);
  background: var(--bg-soft);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.method-grid article {
  min-height: 210px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.method-grid span {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 26px;
  place-items: center;
  color: #07110c;
  background: #dfe9d8;
  border-radius: 50%;
  font-weight: 900;
}

.method-grid p {
  color: var(--muted);
  line-height: 1.56;
}

.profile-section {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  color: var(--ink-dark);
}

.profile-photo {
  overflow: hidden;
  height: 440px;
  background: #b7b6b1;
  border-radius: 18px;
}

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

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 34px;
  color: var(--ink);
  background: var(--green-deep);
  border-radius: 18px;
}

.contact-section h2 {
  max-width: 730px;
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.contact-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contact-section .btn.secondary {
  color: var(--ink);
  background: rgba(7, 17, 12, 0.18);
  border-color: rgba(247, 244, 237, 0.42);
}

.contact-section .btn.secondary:hover {
  background: rgba(7, 17, 12, 0.28);
  border-color: rgba(247, 244, 237, 0.72);
}

@media (max-width: 920px) {
  .site-nav {
    display: none;
  }

  .hero,
  .section-heading,
  .tabs,
  .tab-panel,
  .profile-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
    min-height: auto;
    padding-top: 44px;
  }

  .hero-visual {
    max-width: 520px;
  }

  .portrait-frame {
    height: 620px;
  }

  .tab-list {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tab-button {
    min-width: 170px;
  }

  .tab-panel {
    min-height: auto;
  }

  .stage-row {
    grid-template-columns: 1fr;
  }

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

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
    margin-right: 24px;
    margin-left: 24px;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
  }

  .header-action {
    display: none;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    width: auto;
    max-width: none;
    margin-right: 16px;
    margin-left: 16px;
    padding-right: 0;
    padding-left: 0;
  }

  .section {
    width: 100%;
    max-width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-copy,
  .hero-actions,
  .hero-metrics {
    width: 100%;
    max-width: min(100%, 342px);
    min-width: 0;
  }

  .hero-visual,
  .portrait-frame,
  .hero-metrics div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.08;
  }

  .eyebrow {
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: 0.06em;
  }

  .hero-lead {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.5;
  }

  .hero-actions {
    gap: 10px;
    margin-bottom: 24px;
  }

  .btn {
    width: 100%;
    padding-right: 14px;
    padding-left: 14px;
  }

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

  .portrait-frame {
    height: 520px;
    min-height: 0;
    border-radius: 18px;
  }

  .signal-panel {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }

  .tab-panel {
    padding: 18px;
  }

  .profile-photo {
    height: 520px;
  }

  .company-experience {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 24px;
  }
}
