@import url("https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap");

:root {
  --bg: #071018;
  --bg-deep: #03070c;
  --bg-elevated: rgba(13, 23, 34, 0.9);
  --bg-soft: rgba(17, 31, 45, 0.72);
  --card: rgba(10, 18, 28, 0.92);
  --card-hover: rgba(14, 24, 37, 0.98);
  --line: rgba(159, 190, 215, 0.16);
  --line-strong: rgba(159, 190, 215, 0.28);
  --text: #eef4fb;
  --muted: #95a8bb;
  --muted-strong: #bfd0df;
  --accent: #4dc0b5;
  --accent-soft: rgba(77, 192, 181, 0.16);
  --accent-warm: #f09a52;
  --shadow: 0 40px 100px rgba(0, 0, 0, 0.36);
  --radius-xl: 18px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Sora", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(77, 192, 181, 0.18), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(240, 154, 82, 0.14), transparent 18%),
    radial-gradient(circle at 50% 120%, rgba(63, 113, 184, 0.18), transparent 30%),
    linear-gradient(180deg, #09131c 0%, #050a11 48%, #02060a 100%);
  opacity: 0;
  transition: opacity 300ms ease;
}

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

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 80%);
}

body::after {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

body.is-ready {
  opacity: 1;
}

body.lightbox-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 0 6px;
  backdrop-filter: blur(18px);
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(6, 13, 20, 0.72);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.brand {
  display: grid;
  gap: 4px;
}

.brand.brand-home {
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.brand.brand-home.brand-home-detailed {
  display: inline-flex;
  justify-content: flex-start;
  width: auto;
  height: auto;
  min-height: 48px;
  padding: 10px 14px 10px 12px;
  align-items: center;
  gap: 10px;
  place-items: unset;
}

.brand.brand-home:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}

.brand.brand-home svg,
.social-icon svg,
.social-inline svg {
  width: 20px;
  height: 20px;
}

.brand-home-label {
  max-width: min(52vw, 420px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-kicker,
.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
}

.brand-title {
  font-size: clamp(1.05rem, 1.2vw + 0.9rem, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a,
.social-link,
.text-link {
  position: relative;
  color: var(--muted);
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.nav-links a {
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.social-link,
.text-link {
  font-size: 0.9rem;
}

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.social-link:hover,
.text-link:hover {
  color: var(--muted-strong);
}

.text-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-inline {
  vertical-align: middle;
}

.social-inline span {
  line-height: 1;
}

.hero-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 6px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: var(--text);
}

.page-root {
  padding: 34px 0 48px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 38px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(14, 25, 39, 0.96), rgba(7, 15, 24, 0.88)),
    rgba(7, 12, 18, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero.hero-single {
  grid-template-columns: minmax(0, 1fr);
}

.hero.hero-single h1 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 4.2vw, 3.8rem);
  line-height: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -120px -180px auto;
  width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 192, 181, 0.2), transparent 66%);
  filter: blur(18px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 55%, transparent 100%);
  pointer-events: none;
}

.hero h1,
.section-heading h2,
.cover-copy h2,
.cover-copy h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.07em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  line-height: 0.9;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 16px;
}

.lead,
.hero-note p,
.cover-copy p,
.contact-copy p,
.form-helper,
.footer-inner p,
.contact-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 54ch;
  color: var(--muted-strong);
}

.hero-note {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(10, 19, 29, 0.88);
}

.hero-note p {
  font-size: 0.95rem;
}

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

.cover-card {
  display: grid;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    background 240ms ease;
}

.cover-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--card-hover);
}

.cover-card.compact {
  min-height: 320px;
}

.cover-image {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.cover-image::after,
.photo-frame::after,
.contact-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.cover-card img,
.photo-frame img,
.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.cover-card:hover img,
.photo-frame:hover img {
  transform: scale(1.03);
}

.cover-copy {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 26px 26px 30px;
}

.cover-copy h2 {
  font-size: clamp(1.85rem, 2.6vw, 3rem);
}

.cover-copy h3 {
  font-size: 1.6rem;
}

.photo-grid {
  margin-bottom: 56px;
}

.masonry-grid {
  columns: 2 320px;
  column-gap: 20px;
}

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

.feature-grid .photo-frame {
  grid-column: span 6;
  margin: 0;
}

.feature-grid .photo-frame:nth-child(1) {
  grid-column: span 7;
}

.feature-grid .photo-frame:nth-child(2) {
  grid-column: span 5;
}

.feature-grid .photo-frame:nth-child(5n) {
  grid-column: span 8;
}

.feature-grid .photo-frame:nth-child(5n + 1) {
  grid-column: span 4;
}

.photo-frame {
  position: relative;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  break-inside: avoid;
}

.photo-frame img {
  width: 100%;
  height: auto;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 22px;
}

.contact-image,
.contact-panel {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow);
}

.contact-image img {
  aspect-ratio: 4 / 5;
}

.contact-image figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1;
  color: var(--text);
  font-size: 0.88rem;
}

.contact-panel {
  padding: 30px;
}

.contact-copy {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 10px;
}

.contact-form span {
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(77, 192, 181, 0.38);
  background: rgba(77, 192, 181, 0.06);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.primary-button {
  width: fit-content;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #26687a);
  color: #041018;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted-strong);
}

.site-footer {
  padding-top: 8px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px 24px;
  padding: 24px 0 12px;
  border-top: 1px solid var(--line);
}

.footer-inner p:first-child {
  justify-self: start;
}

.footer-inner p:nth-child(2) {
  justify-self: center;
  text-align: center;
}

.footer-inner a {
  color: var(--muted-strong);
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 10, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-dialog {
  width: min(100%, 1280px);
  display: grid;
  gap: 16px;
}

.lightbox-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.32);
}

.lightbox-image img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-strong);
}

.lightbox-actions {
  display: flex;
  gap: 8px;
}

.lightbox-button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
}

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

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

  .feature-grid .photo-frame,
  .feature-grid .photo-frame:nth-child(1),
  .feature-grid .photo-frame:nth-child(2),
  .feature-grid .photo-frame:nth-child(5n),
  .feature-grid .photo-frame:nth-child(5n + 1) {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 18px), var(--max-width));
  }

  .site-header {
    padding-top: 14px;
  }

  .header-bar {
    grid-template-columns: auto auto;
    border-radius: 14px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-wrap {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    grid-column: 1 / -1;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(6, 13, 20, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-wrap.is-open {
    display: grid;
  }

  .nav-links {
    display: grid;
  }

  .hero {
    padding: 28px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .cover-card {
    min-height: 420px;
  }

  .masonry-grid {
    columns: 1;
  }

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

  .feature-grid .photo-frame,
  .feature-grid .photo-frame:nth-child(1),
  .feature-grid .photo-frame:nth-child(2),
  .feature-grid .photo-frame:nth-child(5n),
  .feature-grid .photo-frame:nth-child(5n + 1) {
    grid-column: auto;
  }

  .contact-panel {
    padding: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-inner p:first-child,
  .footer-inner p:nth-child(2),
  .footer-inner a {
    justify-self: center;
  }
}
