:root {
  --bg: #f6f2ed;
  --bg-strong: #e7eef7;
  --surface: rgba(255, 255, 255, 0.52);
  --surface-strong: rgba(255, 255, 255, 0.72);
  --line: rgba(46, 51, 66, 0.12);
  --line-strong: rgba(46, 51, 66, 0.22);
  --text: #1e2430;
  --muted: rgba(30, 36, 48, 0.72);
  --shadow: 0 22px 80px rgba(58, 68, 84, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 999px;
  --max-width: 1240px;
  --section-space: clamp(5rem, 10vw, 9rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(202, 218, 243, 0.9), transparent 30%),
    radial-gradient(circle at left 20%, rgba(250, 241, 245, 0.9), transparent 28%),
    linear-gradient(180deg, rgba(249, 247, 243, 0.96), rgba(239, 244, 249, 0.94)),
    url("./assets/img/7841915f8f60b0fd1c8e55c139ee7eb1.jpg") center top / cover fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
    url("./assets/img/fa13b5efe8dea084146447e34fb29ce1.jpg") center / cover;
  mix-blend-mode: screen;
  opacity: 0.42;
}

body::after {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.52), transparent 20%),
    radial-gradient(circle at 70% 60%, rgba(214, 228, 248, 0.46), transparent 24%);
}

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

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

.page-shell {
  position: relative;
  overflow: clip;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: -1;
}

.page-shell::before {
  top: 6rem;
  right: -8rem;
  width: min(32rem, 52vw);
  aspect-ratio: 1;
  background: url("./assets/img/c98ff93c20cbaaff8b1a8bebbe24bbd9.jpg") center / cover;
  opacity: 0.28;
  filter: blur(8px);
}

.page-shell::after {
  bottom: 14rem;
  left: -10rem;
  width: min(34rem, 56vw);
  aspect-ratio: 1;
  background: url("./assets/img/c0253025a786b6f3120b8ae251dd46e7.jpg") center / cover;
  opacity: 0.18;
  filter: blur(4px);
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.95rem 1.2rem;
  background: rgba(249, 246, 241, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(61, 71, 90, 0.08);
  transition:
    border-radius 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.brand-mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border: 1px solid rgba(59, 67, 82, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.nav-toggle span {
  position: absolute;
  width: 1.15rem;
  height: 1px;
  background: var(--text);
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-0.34rem);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(0.34rem);
}

.site-header.is-menu-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.site-header.is-menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a,
.inline-link,
.contact-card,
.button {
  transition:
    transform 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease,
    box-shadow 220ms ease;
}

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

.site-nav a:focus-visible,
.button:focus-visible,
.inline-link:focus-visible,
.project-card:focus-visible,
.contact-card:focus-visible,
.brand-mark:focus-visible {
  outline: 2px solid rgba(74, 98, 131, 0.55);
  outline-offset: 4px;
}

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

.hero {
  min-height: calc(100vh - 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(4rem, 8vw, 7rem);
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(47, 59, 80, 0.64);
}

h1,
h2,
.brand-mark,
.contact-value,
.project-name {
  font-family: "Cormorant Garamond", serif;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(4.5rem, 10vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 0.97;
  letter-spacing: -0.03em;
}

.hero-lead,
.hero-subcopy,
.section-heading h2,
.about-panel p,
.contact-copy h2 {
  max-width: 42rem;
}

.hero-lead {
  margin-top: 1.75rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.45;
}

.hero-subcopy {
  margin-top: 1.2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
}

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

.button-primary {
  color: #f7f7f6;
  background: linear-gradient(135deg, #293243, #56657f);
  box-shadow: 0 14px 28px rgba(44, 54, 72, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 20px 38px rgba(44, 54, 72, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(59, 67, 82, 0.14);
  backdrop-filter: blur(14px);
}

.hero-aside {
  position: relative;
  min-height: 36rem;
}

.floating-panel,
.about-panel,
.contact-card,
.focus-card,
.project-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.floating-panel {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.floating-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-panel-large {
  inset: 0 3.5rem 5rem 0;
}

.floating-panel-small {
  right: 0;
  bottom: 0;
  width: min(17rem, 46%);
  aspect-ratio: 0.9;
  border-radius: 26px;
}

.floating-caption {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  background: rgba(247, 244, 239, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  font-size: 0.9rem;
  color: var(--muted);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

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

.focus-card {
  position: relative;
  grid-column: span 4;
  min-height: 16rem;
  padding: 1.8rem;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.focus-card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(227, 236, 248, 0.28)),
    url("./assets/img/6e14bcc67b80aeef848fbe8d06992def.png") center / cover;
  opacity: 0.18;
  pointer-events: none;
}

.focus-card:nth-child(2n)::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(237, 244, 255, 0.28)),
    url("./assets/img/c0253025a786b6f3120b8ae251dd46e7.jpg") center / cover;
}

.focus-card:nth-child(3n)::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(245, 236, 245, 0.25)),
    url("./assets/img/c98ff93c20cbaaff8b1a8bebbe24bbd9.jpg") center / cover;
}

.focus-card:nth-child(1) {
  grid-column: span 7;
}

.focus-card:nth-child(2) {
  grid-column: span 5;
}

.focus-card:nth-child(3) {
  grid-column: span 5;
}

.focus-card:nth-child(4) {
  grid-column: span 3;
}

.focus-card:nth-child(5) {
  grid-column: span 4;
}

.focus-card h3,
.project-name {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.focus-card h3 {
  position: relative;
  margin-bottom: 1rem;
}

.focus-card p {
  position: relative;
  max-width: 26rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
  white-space: pre-line;
}

.projects-heading {
  align-items: flex-start;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-weight: 600;
}

.inline-link::after {
  content: "→";
}

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

.project-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 21rem;
  grid-column: span 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #f7f5f1;
  isolation: isolate;
}

.project-card:nth-child(1) {
  grid-column: span 7;
  min-height: 30rem;
}

.project-card:nth-child(2) {
  grid-column: span 5;
  min-height: 30rem;
}

.project-card:nth-child(3),
.project-card:nth-child(4),
.project-card:nth-child(5),
.project-card:nth-child(6) {
  min-height: 24rem;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 12, 17, 0.08), rgba(18, 22, 30, 0.7)),
    var(--project-image) center / cover;
  transform: scale(1.01);
  transition: transform 420ms ease, filter 420ms ease;
  z-index: -2;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(19, 24, 33, 0.44));
  z-index: -1;
}

.project-card:hover::before,
.project-card:focus-visible::before {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px rgba(34, 42, 57, 0.22);
}

.project-content {
  width: 100%;
  padding: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.project-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.82;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.project-cta::after {
  content: "↗";
}

.about-section {
  padding-top: calc(var(--section-space) * 0.7);
}

.about-panel {
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius-lg) + 4px);
  max-width: 54rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 242, 248, 0.62)),
    url("./assets/img/36f9120716710e7e80d50d021811e5ad.jpg") center / cover;
}

.about-panel p {
  margin-top: 1.15rem;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
  max-width: 34rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 1.4rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.3rem 1.35rem;
  border-radius: var(--radius-md);
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(47, 59, 80, 0.62);
}

.contact-value {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.04;
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0 2.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.footer-copy {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-aside {
    min-height: 28rem;
  }

  .focus-card,
  .focus-card:nth-child(1),
  .focus-card:nth-child(2),
  .focus-card:nth-child(3),
  .focus-card:nth-child(4),
  .focus-card:nth-child(5),
  .project-card,
  .project-card:nth-child(1),
  .project-card:nth-child(2) {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    top: 0.4rem;
    margin-top: 0.4rem;
    border-radius: 24px;
    overflow: visible;
  }

  .site-header.is-menu-open {
    background: rgba(249, 246, 241, 0.84);
    box-shadow: 0 18px 42px rgba(61, 71, 90, 0.1);
  }

  .nav-toggle {
    position: relative;
    display: inline-flex;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.42);
  }

  .site-header.is-menu-open .nav-toggle {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(59, 67, 82, 0.08);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1.2rem;
    border-radius: 24px;
    background: rgba(249, 246, 241, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(61, 71, 90, 0.14);
    font-size: 0.94rem;
    color: rgba(30, 36, 48, 0.86);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.8rem) scale(0.985);
    transform-origin: top center;
    transition:
      opacity 240ms ease,
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 240ms ease;
  }

  .site-header.is-menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .site-nav a {
    padding: 1rem 0.15rem;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(59, 67, 82, 0.08);
    font-size: 1rem;
    letter-spacing: 0.01em;
    opacity: 0;
    transform: translateY(-0.35rem);
    transition:
      opacity 200ms ease,
      transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
      background-color 200ms ease,
      color 200ms ease;
  }

  .site-header.is-menu-open .site-nav a {
    opacity: 1;
    transform: translateY(0);
  }

  .site-header.is-menu-open .site-nav a:nth-child(1) {
    transition-delay: 35ms;
  }

  .site-header.is-menu-open .site-nav a:nth-child(2) {
    transition-delay: 70ms;
  }

  .site-header.is-menu-open .site-nav a:nth-child(3) {
    transition-delay: 105ms;
  }

  .site-header.is-menu-open .site-nav a:nth-child(4) {
    transition-delay: 140ms;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.42),
      rgba(255, 255, 255, 0)
    );
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-aside {
    min-height: 22rem;
  }

  .floating-panel-large {
    right: 2rem;
    bottom: 4rem;
  }

  .floating-panel-small {
    width: 42%;
  }

  .focus-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .focus-card,
  .focus-card:nth-child(1),
  .focus-card:nth-child(2),
  .focus-card:nth-child(3),
  .focus-card:nth-child(4),
  .focus-card:nth-child(5),
  .project-card,
  .project-card:nth-child(1),
  .project-card:nth-child(2) {
    grid-column: auto;
  }

  .project-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    padding-bottom: 1.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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