:root {
  --bg: #f5f7f4;
  --bg-deep: #e7f0ea;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(32, 50, 97, 0.1);
  --line-strong: rgba(32, 50, 97, 0.16);
  --text: #21325d;
  --text-soft: #4b5f86;
  --mint: #9ee4cb;
  --mint-strong: #63d9bc;
  --navy: #243867;
  --shadow: 0 18px 48px rgba(26, 42, 79, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1120px;
  --header-offset: 2rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(158, 228, 203, 0.3), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

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

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

.brand:focus-visible,
.site-nav a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(99, 217, 188, 0.7);
  outline-offset: 4px;
}

button,
a,
input,
textarea,
select {
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(36, 56, 103, 0.12);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(calc(100% - 2rem), var(--container));
  margin: 1.25rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0.45rem;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.brand-symbol {
  width: auto;
  height: clamp(2.35rem, 3vw, 2.8rem);
  display: block;
  border-radius: 0.75rem;
}

h1,
h2,
h3 {
  font-family: "Syne", sans-serif;
  letter-spacing: -0.04em;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 0.35rem;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.site-nav a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy);
  background: rgba(36, 56, 103, 0.08);
}

.site-nav a[aria-current] {
  color: var(--navy);
  background: rgba(36, 56, 103, 0.1);
}

.page-main {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 4rem;
}

.section {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  padding: 0;
}

section[id] {
  scroll-margin-top: var(--header-offset);
}

.hero {
  padding-top: 0.25rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.8fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2.25rem);
}

.hero-copy,
.hero-art,
.project-card,
.story-copy,
.contact-card {
  min-width: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: 0.92;
  max-width: 10ch;
  text-wrap: balance;
}

.lead,
.project-card p,
.story-copy p {
  color: var(--text-soft);
  font-size: 1.05rem;
  text-wrap: pretty;
}

.lead {
  margin: 1.25rem 0 0;
  max-width: 31rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--navy), #314b86);
  color: #fff;
  box-shadow: 0 18px 40px rgba(36, 56, 103, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 22px 48px rgba(36, 56, 103, 0.28);
}

.hero-art {
  justify-self: end;
  width: min(100%, 24rem);
}

.hero-art img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: var(--shadow);
}

.section-heading {
  margin-bottom: 0.9rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
}

.card,
.contact-card {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.card {
  border-radius: var(--radius-xl);
  padding: 1.55rem;
}

.project-meta {
  margin: 0 0 0.85rem;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-wrap: pretty;
}

.project-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.45rem;
  line-height: 1.04;
  text-wrap: balance;
}

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

.project-card-active {
  border-color: rgba(99, 217, 188, 0.28);
  background:
    linear-gradient(180deg, rgba(158, 228, 203, 0.12), rgba(255, 255, 255, 0.94)),
    rgba(255, 255, 255, 0.94);
}

.contact-section {
  padding-top: 0;
}

.story-section {
  padding-top: 0;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.45rem 1.55rem;
  border-radius: var(--radius-xl);
}

.contact-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
}

.site-footer {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.site-footer p {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

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

  .hero-panel {
    gap: 2rem;
  }

  .hero-art {
    justify-self: start;
    width: min(100%, 22rem);
  }

  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }

  h1,
  .section-heading h2,
  .contact-card h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(calc(100% - 2rem), var(--container));
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .page-main {
    gap: 2.5rem;
    padding-bottom: 3rem;
  }

  .card,
  .hero-panel,
  .contact-card {
    padding: 1.25rem;
  }

  .hero-art {
    width: 100%;
  }

  .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

}
