:root {
  --bg: #f4efe7;
  --bg-2: #ebe2d7;
  --panel: rgba(255, 252, 246, 0.82);
  --panel-2: rgba(255, 252, 246, 0.96);
  --line: rgba(32, 28, 24, 0.16);
  --text: #191715;
  --muted: #625b52;
  --soft: #efe7dc;
  --cyan: #c96442;
  --blue: #326b85;
  --violet: #6f5f7f;
  --lime: #496f55;
  --orange: #b85f32;
  --shadow: 0 18px 55px rgba(47, 35, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(201, 100, 66, 0.12), transparent 28%),
    radial-gradient(circle at 86% 22%, rgba(50, 107, 133, 0.1), transparent 30%),
    linear-gradient(135deg, var(--bg) 0%, #fbf7ef 48%, var(--bg-2) 100%);
  color: var(--text);
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.72), transparent 42%);
  opacity: 0.7;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(244, 239, 231, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
}

.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--text);
  color: #fffaf2;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: none;
}

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

.site-header nav a {
  padding: 9px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-header nav a:hover {
  color: var(--text);
  background: rgba(25, 23, 21, 0.06);
}

main {
  position: relative;
  z-index: 1;
}

.hero,
.metrics,
.experience-section,
.portfolio-section,
.landscape-section,
.principles-section,
.contact-section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: center;
  gap: 36px;
  min-height: 660px;
  padding: 42px 0 44px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
button {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 128px;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-title {
  max-width: 820px;
  margin: 24px 0 0;
  font-size: 46px;
  line-height: 1.04;
  font-weight: 850;
  letter-spacing: 0;
}

.hero-text {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.hero-actions,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button,
.filter {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary,
.filter.active {
  border-color: var(--text);
  background: var(--text);
  color: #fffaf2;
  box-shadow: none;
}

.button.secondary,
.filter {
  background: rgba(255, 252, 246, 0.68);
  color: var(--text);
}

.portrait-card,
.metrics article,
.role-panel,
.project-card,
.panorama-board,
.landscape-detail,
.principle-grid article,
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.portrait-card {
  overflow: hidden;
  border-radius: 8px;
}

.portrait-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d8cec1;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 32%;
  filter: saturate(1.02) contrast(1.04);
}

.portrait-caption {
  padding: 20px;
}

.portrait-caption span,
.portrait-caption small {
  display: block;
  color: var(--muted);
}

.portrait-caption span {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.portrait-caption strong {
  display: block;
  margin-bottom: 8px;
  font-size: 26px;
}

.portrait-caption small {
  line-height: 1.5;
}

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

.metrics article {
  min-height: 118px;
  padding: 18px;
  border-radius: 8px;
}

.metrics span {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.metrics p,
.section-head p,
.role-panel p,
.project-card p,
.project-card .outcome,
.principle-grid p,
.contact-card p {
  color: var(--muted);
  line-height: 1.6;
}

.metrics p {
  margin: 0;
}

.experience-section,
.portfolio-section,
.landscape-section,
.principles-section,
.contact-section {
  padding: 46px 0;
}

.section-head {
  display: block;
  max-width: 980px;
  margin-bottom: 16px;
}

.section-head.compact {
  max-width: 760px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: 46px;
  line-height: 1.04;
  letter-spacing: 0;
  white-space: nowrap;
}

.contact-card h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-head p:not(.kicker) {
  margin: 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.45;
}

.experience-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
}

.role-rail {
  display: grid;
  gap: 8px;
  align-content: start;
}

.role-button {
  width: 100%;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.66);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.role-button strong,
.role-button span {
  display: block;
}

.role-button strong {
  margin-bottom: 5px;
  font-size: 15px;
}

.role-button span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.role-button.active {
  border-color: rgba(201, 100, 66, 0.62);
  background: rgba(201, 100, 66, 0.11);
}

.role-panel {
  min-height: 0;
  padding: 28px;
  border-radius: 8px;
}

.role-panel-top {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.role-panel h3 {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.04;
  letter-spacing: 0;
}

.role-panel .company {
  margin: 0;
  font-weight: 750;
}

.role-period {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 9px 11px;
  border-radius: 6px;
  background: rgba(201, 100, 66, 0.12);
  color: var(--cyan);
  font-weight: 850;
}

.role-story {
  max-width: 880px;
  margin: 0 0 18px;
  font-size: 17px;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.task-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.7);
}

.task-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.task-card h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
}

.task-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.project-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.project-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.12;
}

.project-card p {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.42;
}

.project-card .outcome {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.42;
  font-weight: 750;
}

.landscape-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
  align-items: stretch;
}

.panorama-board {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(201, 100, 66, 0.12), transparent 24%),
    radial-gradient(circle at 78% 28%, rgba(50, 107, 133, 0.12), transparent 24%),
    radial-gradient(circle at 20% 72%, rgba(73, 111, 85, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(255, 252, 246, 0.9), rgba(239, 231, 220, 0.72));
}

.panorama-board::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(25, 23, 21, 0.08);
  border-radius: 26px;
}

.panorama-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(201, 100, 66, 0.22);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 95px rgba(25, 23, 21, 0.018),
    inset 0 0 60px rgba(201, 100, 66, 0.08);
}

.panorama-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.panorama-lines line {
  stroke: rgba(25, 23, 21, 0.18);
  stroke-width: 0.25;
}

.panorama-lines line.active {
  stroke: rgba(201, 100, 66, 0.62);
  stroke-width: 0.46;
}

.landscape-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 150px;
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.92);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.landscape-node:hover,
.landscape-node.active {
  transform: translate(-50%, -50%) translateY(-4px);
  border-color: rgba(201, 100, 66, 0.62);
  background: #fffaf2;
  box-shadow: 0 16px 38px rgba(47, 35, 25, 0.16);
}

.landscape-node.center {
  width: 190px;
  min-height: 126px;
  padding: 18px;
  border-color: rgba(201, 100, 66, 0.38);
  background: linear-gradient(145deg, rgba(201, 100, 66, 0.13), rgba(50, 107, 133, 0.1));
}

.landscape-node span,
.detail-top span,
.detail-top strong,
.value-note small {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.landscape-node strong {
  display: block;
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.16;
}

.landscape-node.blue span {
  color: var(--blue);
}

.landscape-node.violet span {
  color: #bba7ff;
}

.landscape-node.lime span {
  color: var(--lime);
}

.landscape-node.orange span {
  color: var(--orange);
}

.landscape-detail {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 24px;
  border-radius: 8px;
}

.detail-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.detail-top strong {
  color: var(--muted);
}

.landscape-detail h3 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0;
}

.landscape-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0;
}

.capability-list span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.72);
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.value-note {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.value-note {
  margin-bottom: 22px;
}

.value-note small {
  margin-bottom: 10px;
}

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

.principle-grid article {
  min-height: 210px;
  padding: 20px;
  border-radius: 8px;
}

.principle-grid span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--cyan);
  font-weight: 900;
}

.principle-grid h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.12;
}

.principle-grid p {
  margin: 0;
}

.contact-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 38px;
  border-radius: 8px;
  text-align: center;
}

.contact-card p:not(.kicker) {
  max-width: 690px;
  margin: 16px auto 24px;
}

.contact-card .contact-intro {
  font-size: 17px;
  line-height: 1.5;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 610px;
  margin: 0 auto;
}

.contact-method {
  display: block;
  min-height: 78px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 252, 246, 0.68);
  color: var(--text);
  text-align: left;
}

.contact-method span,
.contact-method strong {
  display: block;
}

.contact-method span {
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-method strong {
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media (max-width: 1020px) {
  .hero,
  .section-head,
  .experience-shell,
  .landscape-shell {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    white-space: normal;
  }

  .portrait-card {
    max-width: 520px;
  }

  .metrics,
  .project-grid,
  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 64px;
    padding: 10px 18px;
  }

  .site-header nav {
    display: none;
  }

  .hero,
  .metrics,
  .experience-section,
  .portfolio-section,
  .landscape-section,
  .principles-section,
  .contact-section {
    width: min(350px, calc(100% - 36px));
    margin-left: 18px;
    margin-right: 0;
  }

  .hero {
    min-height: auto;
    padding: 38px 0 42px;
  }

  h1 {
    font-size: 58px;
    line-height: 0.95;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.06;
  }

  .hero-copy,
  .portrait-card {
    max-width: 100%;
  }

  .hero-actions,
  .filter-row,
  .role-panel-top {
    flex-direction: column;
  }

  .button,
  .filter {
    width: 100%;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .metrics,
  .task-grid,
  .project-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    margin-top: 0;
  }

  .experience-section,
  .portfolio-section,
  .landscape-section,
  .principles-section,
  .contact-section {
    padding: 42px 0;
  }

  .role-rail {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .role-button {
    scroll-snap-align: start;
  }

  .role-panel {
    min-height: 0;
  }

  .panorama-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 18px;
  }

  .panorama-board::before,
  .panorama-halo,
  .panorama-lines {
    display: none;
  }

  .landscape-node,
  .landscape-node.center,
  .landscape-node:hover,
  .landscape-node.active {
    position: static;
    width: 100%;
    min-height: 0;
    transform: none;
  }

  .landscape-detail {
    min-height: 0;
    padding: 22px;
  }

  .detail-top {
    display: block;
  }

  .detail-top strong {
    margin-top: 8px;
  }

  .landscape-detail h3 {
    font-size: 28px;
  }
}
