:root {
  --ink: #152127;
  --muted: #5f6e75;
  --line: #d9e4e5;
  --paper: #f7f4ec;
  --white: #ffffff;
  --sea: #146c74;
  --sea-dark: #0c4f56;
  --moss: #6c7f3f;
  --sun: #d99b3d;
  --coral: #c95b4f;
  --shadow: 0 22px 55px rgba(21, 33, 39, .13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(21, 33, 39, .09);
  background: rgba(247, 244, 236, .88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--sea-dark);
}

.profile-link {
  display: grid;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: #dfe8e5;
  box-shadow: 0 7px 22px rgba(21, 33, 39, .16);
}

.profile-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  min-height: 620px;
  padding: clamp(42px, 5vw, 76px) clamp(18px, 6vw, 86px);
  background:
    linear-gradient(130deg, rgba(247, 244, 236, .98) 0%, rgba(247, 244, 236, .88) 45%, rgba(20, 108, 116, .16) 100%),
    radial-gradient(circle at 100% 0%, rgba(217, 155, 61, .28), transparent 32%),
    linear-gradient(180deg, #eef6f3 0%, var(--paper) 100%);
}

.hero-content {
  min-width: 0;
  max-width: 780px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--sea-dark);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(1.90rem, 4.7vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
  hyphens: auto;
  overflow-wrap: normal;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 32px;
  color: #3f5057;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  overflow-wrap: break-word;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
}

.button.primary {
  color: var(--white);
  background: var(--sea);
}

.button.secondary {
  color: var(--sea-dark);
  border-color: rgba(12, 79, 86, .24);
  background: rgba(255, 255, 255, .55);
}

.button:hover,
.button:focus-visible,
.mail-link:hover,
.mail-link:focus-visible,
.project-card a:hover,
.project-card a:focus-visible {
  transform: translateY(-1px);
}

.hero-panel {
  position: relative;
  min-width: 0;
  max-width: 390px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
}

.panel-logo {
  width: 82px;
  height: 82px;
  margin-bottom: 22px;
  object-fit: contain;
}

.hero-panel p {
  margin: 0;
  color: #31434b;
  font-size: 1.02rem;
  overflow-wrap: break-word;
}

.intro-section,
.work-section,
.approach-section,
.contact-section {
  padding: clamp(54px, 7vw, 88px) clamp(18px, 6vw, 86px);
}

.intro-section,
.approach-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(220px, 420px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: start;
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
}

.intro-copy {
  display: grid;
  gap: 18px;
  max-width: 780px;
  color: #36484f;
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
}

.intro-copy p {
  margin: 0;
}

.work-section {
  background: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.project-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--sea);
  border-radius: 8px;
  background: #fbfcfa;
}

.project-card.development {
  border-top-color: var(--sun);
}

.status {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--sea-dark);
  background: rgba(20, 108, 116, .1);
  font-size: .73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.development .status {
  color: #735014;
  background: rgba(217, 155, 61, .16);
}

.project-card h3 {
  margin: 22px 0 10px;
  font-size: 1.25rem;
  line-height: 1.15;
}

.project-card p {
  margin-bottom: 18px;
  color: var(--muted);
}

.project-card a {
  color: var(--sea-dark);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.approach-section {
  background:
    linear-gradient(90deg, rgba(108, 127, 63, .09), transparent 44%),
    var(--paper);
}

.approach-list {
  display: grid;
  gap: 12px;
}

.approach-list div {
  padding: 22px 0;
  border-top: 1px solid rgba(21, 33, 39, .13);
}

.approach-list div:last-child {
  border-bottom: 1px solid rgba(21, 33, 39, .13);
}

.approach-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--moss);
  font-size: 1.2rem;
}

.approach-list p {
  max-width: 760px;
  margin: 0;
  color: #405258;
}

.contact-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(12, 79, 86, .98), rgba(21, 33, 39, .98)),
    var(--sea-dark);
}

.contact-section .section-kicker {
  color: #f1c573;
}

.contact-box {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.contact-box p {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .82);
  font-size: 1.08rem;
}

.mail-link {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--ink);
  background: #f1c573;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 6vw, 86px);
  color: #5a686d;
  background: #edf1ed;
  font-size: .94rem;
}

@media (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    min-height: 220px;
  }
}

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

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .profile-link {
    justify-self: end;
  }

  .hero,
  .intro-section,
  .approach-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 620px) {
  .site-header {
    min-height: 66px;
    gap: 12px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .profile-link {
    width: 42px;
    height: 42px;
  }

  .main-nav {
    gap: 16px;
    font-size: .88rem;
  }

  h1 {
    font-size: clamp(2.05rem, 9vw, 2.85rem);
    line-height: 1.04;
  }

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

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

  .project-card {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}
