:root {
  --emerald: #0f4d3a;
  --deep: #05211a;
  --forest: #0a382b;
  --mint: #dcebe3;
  --paper: #fbfaf6;
  --ivory: #f3f0e8;
  --ink: #13231d;
  --muted: #5f6d67;
  --line: #d8ded9;
  --white: #ffffff;
  --shell: min(1180px, calc(100% - 48px));
  --radius: 18px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }

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

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

:focus-visible {
  outline: 3px solid #8fb7a3;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--deep);
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  padding: 14px max(24px, calc((100% - 1180px) / 2));
  background: rgba(251, 250, 246, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(5, 33, 26, 0.06); }

.profile-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 285px;
  text-decoration: none;
}

.profile-brand__avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: cover;
  object-position: 50% 34%;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.profile-brand__copy {
  display: grid;
  gap: 1px;
  line-height: 1.25;
}

.profile-brand__copy strong {
  color: var(--deep);
  font-size: 17px;
}

.profile-brand__copy span {
  max-width: 230px;
  color: var(--muted);
  font-size: 13px;
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  padding: 9px 11px;
  color: #273a32;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover { color: var(--emerald); background: var(--ivory); }

.site-nav .nav-cta {
  margin-left: 8px;
  padding-inline: 17px;
  color: var(--emerald);
  border: 1px solid var(--emerald);
}

.site-nav .nav-cta:hover { color: var(--white); background: var(--emerald); }

.menu-button {
  display: none;
  min-height: 44px;
  padding: 9px 15px;
  color: var(--deep);
  background: transparent;
  border: 1px solid #aec8bb;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.hero {
  width: var(--shell);
  margin: 0 auto;
  padding: 64px 0 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--emerald);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow--light { color: #bcd5c8; }

.hero h1 {
  margin: 0;
  color: var(--deep);
  font-size: clamp(46px, 5.5vw, 68px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1;
}

.hero__role {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--emerald);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.2;
}

.hero__lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: #3d4d46;
  font-size: 19px;
  line-height: 1.62;
}

.hero__actions, .contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.button:hover { transform: translateY(-1px); }
.button--primary { color: var(--white); background: var(--emerald); }
.button--primary:hover { background: var(--deep); }
.button--quiet { color: var(--emerald); border-color: var(--emerald); }
.button--quiet:hover { background: var(--mint); }
.button--light { color: var(--deep); background: var(--paper); }
.button--outline-light { color: var(--white); border-color: rgba(255,255,255,0.36); }
.button--outline-light:hover { border-color: var(--white); }

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 58px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-strip div { padding: 22px 24px; }
.fact-strip div + div { border-left: 1px solid var(--line); }
.fact-strip dt { margin-bottom: 4px; color: var(--emerald); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.fact-strip dd { margin: 0; color: #36473f; font-size: 15px; line-height: 1.45; }

.page-section {
  width: var(--shell);
  margin: 0 auto;
  padding: 86px 0;
}

.page-section + .page-section { border-top: 1px solid var(--line); }

.section-title h2,
.work-process h2,
.contact h2 {
  margin: 0;
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.section-title--with-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 56px;
  align-items: end;
}

.section-title--with-lead > p {
  color: #45564e;
  font-size: 18px;
}

.section-title--with-lead > p { margin: 0; }

.overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 38px 76px;
  border-top: 1px solid var(--line);
}

.about-text { max-width: 760px; color: #45564e; font-size: 18px; }
.about-text p { margin: 0; }
.about-text p + p { margin-top: 18px; }

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 28px;
  grid-column: 1 / -1;
  margin-top: 18px;
}

.current-card {
  padding: 34px;
  color: var(--white);
  background: var(--deep);
  border-radius: var(--radius);
}

.card-label {
  margin: 0 0 12px;
  color: #7aa891;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.current-card .card-label { color: #b8d2c5; }
.current-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 600; }
.current-card__role { margin: 6px 0 0; color: #d6e5dd; }
.current-card__date { margin: 5px 0 0; color: #a9c6b7; font-size: 14px; }
.current-card__summary { max-width: 620px; margin: 24px 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.16); color: #eef5f1; }

.direction-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 22px;
  margin: 0;
  padding-left: 19px;
  list-style: disc;
}

.direction-list li {
  color: #d7e7df;
  font-size: 15px;
}

.direction-list li::marker { color: #8fbaa5; }

.project-preview { padding: 2px 0; }
.project-preview h3 { margin: 0 0 14px; color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 600; }

.preview-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.preview-row:last-of-type { border-bottom: 1px solid var(--line); }
.preview-row span:first-child { display: grid; gap: 3px; }
.preview-row strong { color: var(--deep); font-size: 17px; }
.preview-row small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.preview-row__action { flex: 0 0 auto; color: var(--emerald); font-size: 13px; font-weight: 750; }
.preview-row:not(.preview-row--static):hover strong { color: var(--emerald); }
.project-preview .text-link { margin-top: 20px; }

.experience { border-top: 1px solid var(--line); }

.job {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 42px;
  margin-top: 52px;
  padding: 34px;
  background: var(--ivory);
  border-radius: var(--radius);
}

.job__date {
  margin: 0 0 5px;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.job__place { margin: 0; color: var(--muted); font-size: 14px; }
.job h3, .past-job h3, .education-item h3 { margin: 0; color: var(--deep); font-size: 26px; line-height: 1.22; }
.job__role { margin: 5px 0 0; color: var(--muted); font-size: 15px; }

.job__heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.status {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: var(--emerald);
  background: var(--mint);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.job__summary { max-width: 780px; margin: 24px 0 28px; color: #2e4038; font-size: 18px; }

.responsibility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  border-top: 1px solid var(--line);
}

.responsibility-grid > div { padding: 19px 0; border-bottom: 1px solid var(--line); }
.responsibility-grid strong { color: var(--deep); font-size: 17px; }
.responsibility-grid p { margin: 5px 0 0; color: #4b5c54; font-size: 15px; line-height: 1.55; }

.previous-jobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.past-job { padding: 32px; background: var(--paper); }
.past-job h3 { margin-top: 16px; }
.past-job p:last-child { margin: 18px 0 0; color: #4b5c54; font-size: 15px; }

.work-process { padding: 72px 24px; color: var(--white); background: var(--deep); }
.work-process__inner { width: min(1180px, 100%); margin: 0 auto; }
.work-process h2 { color: var(--white); }

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 38px 0 0;
  padding: 0;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.16);
  list-style: none;
}

.process-list li { padding: 24px; background: var(--deep); }
.process-list span { display: block; margin-bottom: 22px; color: #a6c8b7; font-size: 13px; font-weight: 800; }
.process-list strong { color: var(--white); font-size: 17px; }
.process-list p { margin: 7px 0 0; color: #bed3c8; font-size: 14px; line-height: 1.5; }

.products { border-top: 0; }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 56px;
  align-items: center;
  margin-top: 58px;
  padding-top: 58px;
  border-top: 1px solid var(--line);
}

.product--reverse .product__visual { order: 2; }
.product--reverse .product__body { order: 1; }

.product__visual {
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--deep);
  border-radius: var(--radius);
}

.product__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 300ms ease;
}

.product__visual:hover img { transform: scale(1.018); }
.product__visual--news img { object-position: center; }
.product h3 { margin: 0; color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 3.7vw, 48px); font-weight: 600; line-height: 1.08; }
.product__lead { margin: 18px 0 14px; color: var(--emerald); font-size: 21px; line-height: 1.4; }
.product__body > p:not([class]) { color: #4b5c54; font-size: 16px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 20px;
  padding: 0;
  list-style: none;
}

.tags li { padding: 6px 10px; color: var(--emerald); background: var(--mint); border-radius: 999px; font-size: 12px; font-weight: 700; }

.text-link {
  display: inline-block;
  color: var(--deep);
  font-size: 15px;
  font-weight: 800;
  text-decoration-color: #8fb7a3;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link:hover { color: var(--emerald); }

.small-projects {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  margin-top: 62px;
  padding: 34px;
  background: var(--mint);
  border-radius: var(--radius);
}

.small-projects h3 { margin: 0; color: var(--deep); font-size: 28px; line-height: 1.25; }
.small-projects > p { margin: 0; color: #40534a; }

.skills { border-top: 1px solid var(--line); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 42px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.skill-group { padding: 24px 0; border-bottom: 1px solid var(--line); }
.skill-group h3 { margin: 0; color: var(--deep); font-size: 19px; }
.skill-group p { margin: 7px 0 0; color: #4b5c54; font-size: 15px; }

.education { border-top: 1px solid var(--line); }

.education-list { margin-top: 42px; border-top: 1px solid var(--line); }

.education-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 34px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.education-item__year { margin: 3px 0 0; color: var(--emerald); font-size: 15px; font-weight: 750; }
.education-item h3 { font-size: 23px; }
.education-item p:last-child { margin: 8px 0 0; color: #4b5c54; font-size: 15px; }

.contact { padding: 78px 24px; color: var(--white); background: var(--emerald); }
.contact__inner { width: min(1180px, 100%); margin: 0 auto; }
.contact h2 { color: var(--white); }
.contact__lead { max-width: 720px; margin: 18px 0 0; color: #d5e6dd; font-size: 18px; }

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 30px;
}

.contact__links a { color: var(--white); font-size: 18px; text-underline-offset: 5px; }
.copy-status { min-height: 24px; margin: 12px 0 0; color: #d5e6dd; font-size: 14px; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px max(24px, calc((100% - 1180px) / 2));
  color: #bcd2c7;
  background: var(--deep);
  font-size: 13px;
}

.site-footer p { margin: 0; }
.site-footer a { color: inherit; text-underline-offset: 4px; }

@media (max-width: 1080px) {
  .profile-brand__copy span { display: none; }
  .profile-brand { min-width: auto; }
  .site-nav a { padding-inline: 8px; }
  .overview { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .about-text { max-width: 820px; }
}

@media (max-width: 880px) {
  :root { --shell: min(100% - 36px, 720px); }
  .site-header { min-height: 76px; }
  .profile-brand__avatar { width: 48px; height: 48px; flex-basis: 48px; }
  .profile-brand__copy span { display: none; }
  .profile-brand__copy strong { font-size: 15px; }

  .menu-button { display: inline-flex; align-items: center; }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    padding: 10px 18px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(5,33,26,0.08);
  }

  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 12px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; border: 1px solid var(--emerald); border-radius: 10px; }

  .hero { padding-top: 58px; }
  .fact-strip { grid-template-columns: 1fr; margin-top: 46px; }
  .fact-strip div { padding: 17px 0; }
  .fact-strip div + div { border-top: 1px solid var(--line); border-left: 0; }
  .page-section { padding: 68px 0; }
  .section-title--with-lead { grid-template-columns: 1fr; gap: 18px; }
  .job { grid-template-columns: 1fr; gap: 20px; }
  .responsibility-grid { grid-template-columns: 1fr; }
  .previous-jobs { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { grid-template-columns: 1fr; gap: 30px; }
  .product--reverse .product__visual, .product--reverse .product__body { order: initial; }
  .small-projects { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 30px); }
  html { scroll-padding-top: 86px; }
  body { font-size: 16px; }
  .site-header { padding-inline: 15px; }
  .profile-brand__copy strong { display: none; }
  .hero { padding-top: 44px; }
  .hero h1 { font-size: clamp(44px, 14vw, 58px); line-height: 0.98; }
  .hero__role { margin-top: 18px; font-size: 25px; }
  .hero__lead { margin-top: 22px; font-size: 17px; }
  .hero__actions { display: grid; }
  .button { width: 100%; }

  .page-section { padding: 56px 0; }
  .section-title h2, .work-process h2, .contact h2 { font-size: 34px; }
  .section-title--with-lead > p, .about-text { font-size: 16px; }
  .overview { gap: 24px; }
  .overview-grid { margin-top: 4px; }
  .current-card { padding: 24px 20px; }
  .current-card h3, .project-preview h3 { font-size: 27px; }
  .direction-list { grid-template-columns: 1fr; }
  .preview-row { align-items: flex-start; }
  .preview-row__action { padding-top: 2px; }

  .job { margin-top: 34px; padding: 24px 20px; }
  .job__heading { display: grid; gap: 14px; }
  .status { width: fit-content; }
  .job__summary { font-size: 16px; }
  .past-job { padding: 24px 20px; }

  .work-process { padding: 56px 15px; }
  .process-list { grid-template-columns: 1fr; margin-top: 28px; }
  .process-list li { padding: 20px; }

  .product { margin-top: 42px; padding-top: 42px; }
  .product__visual { aspect-ratio: 4 / 3; }
  .product h3 { font-size: 34px; }
  .product__lead { font-size: 19px; }
  .small-projects { margin-top: 44px; padding: 24px 20px; }
  .small-projects h3 { font-size: 24px; }

  .skills-grid { grid-template-columns: 1fr; gap: 0; margin-top: 30px; }
  .education-list { margin-top: 30px; }
  .education-item { grid-template-columns: 1fr; gap: 7px; padding: 22px 0; }
  .education-item h3 { font-size: 20px; }

  .contact { padding: 58px 15px; }
  .contact__links { display: grid; gap: 13px; }
  .contact__actions { display: grid; }
  .site-footer { align-items: flex-start; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
