:root {
  --bg: #f3f1ec;
  --surface: #e8e3d8;
  --surface-strong: #d8d2c8;
  --text: #171513;
  --muted: #655f58;
  --line: rgba(23, 21, 19, 0.12);
  --accent: #6e8792;
  --accent-deep: #415660;
  --hero-shadow: rgba(11, 17, 22, 0.26);
  --max-width: 1380px;
  --section-space: clamp(72px, 10vw, 132px);
  --radius-lg: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(110, 135, 146, 0.12), transparent 26%),
    linear-gradient(180deg, #f7f5f0 0%, var(--bg) 28%, #f6f3ee 100%);
  color: var(--text);
  font-family: "Aptos", "Segoe UI Variable", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-heading {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.section-copy {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(243, 241, 236, 0.78);
  border-bottom: 1px solid rgba(23, 21, 19, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav .nav-cta {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(23, 21, 19, 0.16);
  color: var(--text);
}

.hero {
  padding: clamp(18px, 2.8vw, 34px) 0 0;
}

.hero__panel {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 920px);
  padding: clamp(28px, 4.4vw, 54px);
  border-radius: calc(var(--radius-lg) + 10px);
  background:
    linear-gradient(125deg, rgba(16, 33, 45, 0.84), rgba(48, 79, 93, 0.5)),
    radial-gradient(circle at 14% 12%, rgba(216, 236, 243, 0.5), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.12), transparent 16%),
    linear-gradient(135deg, #84aab7 0%, #60808e 35%, #d7d8d3 100%);
  box-shadow: 0 28px 70px var(--hero-shadow);
}

.hero__panel.has-image {
  background:
    linear-gradient(125deg, rgba(16, 33, 45, 0.84), rgba(48, 79, 93, 0.36)),
    var(--hero-image, linear-gradient(135deg, #84aab7 0%, #60808e 35%, #d7d8d3 100%));
  background-position: center;
  background-size: cover;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.82fr);
  align-items: end;
  gap: clamp(32px, 5vw, 72px);
  min-height: calc(min(92vh, 920px) - clamp(56px, 7vw, 110px));
}

.hero__content {
  max-width: 620px;
  color: #f8f8f4;
}

.hero__kicker {
  display: inline-block;
  margin-bottom: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
  font-weight: 600;
}

.hero__subtitle {
  margin: 22px 0 0;
  max-width: 18ch;
  font-size: clamp(1.16rem, 2.3vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.hero__body {
  margin: 28px 0 0;
  max-width: 42ch;
  color: rgba(248, 248, 244, 0.78);
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

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

.button--solid {
  background: #f6f5ef;
  color: var(--text);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: #f6f5ef;
  background: rgba(255, 255, 255, 0.08);
}

.hero__visual {
  position: relative;
  min-height: 460px;
}

.hero__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(246, 245, 239, 0.05), rgba(246, 245, 239, 0)),
    linear-gradient(130deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(3px);
}

.hero__frame::before {
  content: "";
  position: absolute;
  inset: 8% 7%;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.1)),
    linear-gradient(130deg, #d6d9d4 0%, #a7b7bd 34%, #f2ece1 100%);
  clip-path: polygon(18% 60%, 45% 16%, 91% 16%, 76% 84%, 22% 84%);
  filter: blur(0.4px);
  opacity: 0.88;
}

.hero__frame::after {
  content: "";
  position: absolute;
  inset: auto 11% 10% auto;
  width: 44%;
  height: 58%;
  border-radius: 28px 28px 34px 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    linear-gradient(145deg, #c6d1d2 0%, #93a6ac 52%, #f6f3e9 100%);
  clip-path: polygon(12% 12%, 100% 0, 78% 100%, 0 90%);
  opacity: 0.82;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.hero__frame.has-image {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    var(--hero-frame-image, linear-gradient(145deg, #c6d1d2 0%, #93a6ac 52%, #f6f3e9 100%));
  background-position: center;
  background-size: cover;
}

.hero__frame.has-image::before,
.hero__frame.has-image::after {
  display: none;
}

.hero__meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(246, 245, 239, 0.9);
  color: var(--text);
  box-shadow: 0 18px 42px rgba(12, 15, 18, 0.16);
}

.hero__meta-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__meta strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.section {
  padding: var(--section-space) 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(23, 21, 19, 0.08);
  background:
    linear-gradient(180deg, rgba(17, 22, 24, 0.08), rgba(17, 22, 24, 0.34)),
    linear-gradient(135deg, #708994 0%, #c6d4d7 34%, #ece6dc 100%);
  color: #f7f5f0;
  box-shadow: 0 18px 40px rgba(16, 21, 24, 0.08);
}

.project-card--large {
  grid-column: span 7;
}

.project-card--medium {
  grid-column: span 5;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(180deg, transparent 28%, rgba(7, 8, 9, 0.42) 100%);
}

.project-card.has-image {
  background:
    linear-gradient(180deg, rgba(17, 22, 24, 0.02), rgba(17, 22, 24, 0.38)),
    var(--card-image, linear-gradient(135deg, #708994 0%, #c6d4d7 34%, #ece6dc 100%));
  background-position: center;
  background-size: cover;
}

.project-card__top,
.project-card__bottom {
  position: relative;
  z-index: 1;
}

.project-card__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.project-card__index {
  color: rgba(247, 245, 240, 0.76);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.project-card__tag {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(247, 245, 240, 0.15);
  border: 1px solid rgba(247, 245, 240, 0.22);
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project-card__bottom {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.project-card h3 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.project-card p {
  margin: 12px 0 0;
  max-width: 34ch;
  color: rgba(247, 245, 240, 0.82);
  font-size: 0.98rem;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(30px, 5vw, 60px);
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, rgba(232, 227, 216, 0.64), rgba(232, 227, 216, 0.88));
  border: 1px solid rgba(23, 21, 19, 0.08);
}

.about-panel__quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(110, 135, 146, 0.16), transparent 36%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.3));
  border: 1px solid rgba(23, 21, 19, 0.08);
}

.about-panel__quote p {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.15rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.about-panel__quote span {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-panel__body {
  display: grid;
  gap: 24px;
  align-content: start;
}

.about-panel__body p {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1rem;
}

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

.service-card {
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(23, 21, 19, 0.08);
}

.service-card__number {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

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

.journal-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(23, 21, 19, 0.08);
  transition: transform 180ms ease, border-color 180ms ease;
}

.journal-card:hover,
.journal-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(23, 21, 19, 0.16);
}

.journal-card__image {
  aspect-ratio: 1.14 / 1;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #c9d0cf 0%, #f0ede4 48%, #869eaa 100%);
}

.journal-card__image.has-image {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
    var(--journal-image, linear-gradient(135deg, #c9d0cf 0%, #f0ede4 48%, #869eaa 100%));
  background-position: center;
  background-size: cover;
}

.journal-card__meta {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.journal-card h3 {
  margin: 0 0 10px;
  font-size: 1.24rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.journal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.contact-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: calc(var(--radius-lg) + 2px);
  background:
    linear-gradient(145deg, rgba(65, 86, 96, 0.94), rgba(78, 104, 113, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  color: #f7f5f0;
}

.contact-eyebrow {
  color: rgba(247, 245, 240, 0.64);
}

.contact-block h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.contact-block p {
  margin: 0;
  max-width: 42ch;
  color: rgba(247, 245, 240, 0.8);
}

.contact-block .button--solid {
  background: #f7f5f0;
}

.site-footer {
  padding: 22px 0 46px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 21, 19, 0.08);
}

.muted-link {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .hero__grid,
  .about-panel,
  .contact-block {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 360px;
  }

  .project-card--large,
  .project-card--medium {
    grid-column: span 6;
  }

  .service-list,
  .journal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header__inner,
  .section-header,
  .site-footer__inner {
    flex-direction: column;
    align-items: start;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .hero__panel,
  .hero__grid {
    min-height: auto;
  }

  .hero__meta {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 18px;
    flex-direction: column;
  }

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

  .project-card--large,
  .project-card--medium {
    grid-column: auto;
    min-height: 320px;
  }
}
