:root {
  --coral: #ff6b6b;
  --coral-light: #ff9c9c;
  --coral-dark: #b23c3c;
  --teal: #34a1a5;
  --peach: #ffedd5;
  --peach-deep: #ffe2bf;
  --ink: #3a2222;
  --muted: #7a5a57;
  --white: #ffffff;
  --line: rgba(178, 60, 60, 0.16);
  --shadow: 0 22px 50px rgba(178, 60, 60, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 107, 107, 0.16), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(52, 161, 165, 0.14), transparent 24%),
    linear-gradient(180deg, #fff6ea 0%, var(--peach) 42%, #ffe8cc 100%);
  font-family: "Sora", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin-top: 0; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 28px;
  color: var(--ink);
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 107, 107, 0.12), transparent 42%),
    linear-gradient(320deg, rgba(52, 161, 165, 0.1), transparent 38%);
  pointer-events: none;
}

.hero-ripple {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 107, 107, 0.22);
  pointer-events: none;
  animation: ripple 10s ease-in-out infinite;
}

.hero-ripple-a {
  width: 420px;
  height: 420px;
  right: -80px;
  top: 12%;
  background: radial-gradient(circle, rgba(255, 156, 156, 0.28), transparent 68%);
}

.hero-ripple-b {
  width: 280px;
  height: 280px;
  left: -60px;
  bottom: 8%;
  border-color: rgba(52, 161, 165, 0.28);
  background: radial-gradient(circle, rgba(52, 161, 165, 0.16), transparent 68%);
  animation-delay: -3s;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.brand {
  text-decoration: none;
  font: 700 1.35rem/1 "Fraunces", serif;
  letter-spacing: -0.03em;
  color: var(--coral-dark);
}

.brand span { color: var(--teal); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(52, 161, 165, 0.45);
  animation: pulse 2.4s ease-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.8fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 28px;
  font: 700 clamp(2.6rem, 6vw, 4.4rem)/0.95 "Fraunces", serif;
  letter-spacing: -0.045em;
  color: var(--coral-dark);
}

.intro {
  max-width: 34rem;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(52, 161, 165, 0.28);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  outline: none;
  transform: translateY(-2px);
  background: #2a8589;
  box-shadow: 0 18px 34px rgba(52, 161, 165, 0.34);
}

.ghost-link {
  color: var(--coral-dark);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(178, 60, 60, 0.35);
  padding-bottom: 2px;
  transition: border-color 180ms ease, color 180ms ease;
}

.ghost-link:hover,
.ghost-link:focus-visible {
  color: var(--teal);
  border-color: var(--teal);
}

.portrait-wrap {
  position: relative;
  justify-self: end;
  width: min(100%, 300px);
}

.portrait-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 28px 28px 72px 28px;
  border: 3px solid rgba(255, 255, 255, 0.7);
  background: var(--coral-light);
  box-shadow: var(--shadow);
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-contact {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.hero-contact a {
  text-decoration: none;
  transition: color 160ms ease;
}

.hero-contact a:hover,
.hero-contact a:focus-visible {
  color: var(--coral-dark);
}

.highlights {
  padding: 28px 0 48px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  margin-bottom: 8px;
  font: 700 clamp(2rem, 4vw, 2.8rem)/1.05 "Fraunces", serif;
  letter-spacing: -0.03em;
  color: var(--coral-dark);
}

.section-support {
  margin: 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(178, 60, 60, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(178, 60, 60, 0.08);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  outline: none;
  transform: translateY(-5px);
  border-color: rgba(255, 107, 107, 0.4);
  box-shadow: var(--shadow);
}

.card-art {
  position: relative;
  height: 170px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #ffe2bf;
}

.card-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.portfolio-card:hover .card-art img {
  transform: scale(1.05);
}

.art-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 5px;
  color: rgba(255, 247, 240, 0.95);
  background: rgba(58, 34, 34, 0.42);
  backdrop-filter: blur(5px);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-body {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 18px 18px 20px;
}

.card-number {
  color: rgba(178, 60, 60, 0.28);
  font: 600 1.5rem/1 "Fraunces", serif;
}

.card-tag {
  margin: 0 0 4px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-body h3 {
  margin: 0;
  font: 650 1.02rem/1.25 "Fraunces", serif;
  letter-spacing: -0.02em;
  color: var(--coral-dark);
}

.card-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 237, 213, 0.9);
  color: var(--coral-dark);
  font-size: 0.95rem;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}

.portfolio-card:hover .card-arrow {
  transform: translate(2px, -2px);
  background: var(--coral);
  color: var(--white);
}

.footer {
  padding: 18px 0;
  color: rgba(255, 237, 213, 0.9);
  background: var(--coral-dark);
}

.footer-inner {
  display: flex;
  justify-content: center;
}

.footer p {
  margin: 0;
  font-size: 0.88rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 34, 34, 0.55);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  padding: 34px 34px 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 156, 156, 0.22), transparent 34%),
    linear-gradient(180deg, #fffaf3, #ffedd5);
  box-shadow: 0 30px 80px rgba(58, 34, 34, 0.28);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(178, 60, 60, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-panel h2 {
  margin-bottom: 10px;
  padding-right: 48px;
  font: 700 clamp(1.7rem, 3vw, 2.3rem)/1.1 "Fraunces", serif;
  letter-spacing: -0.03em;
  color: var(--coral-dark);
}

#modal-description {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-content { display: grid; gap: 16px; }

.modal-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.modal-doc-card,
.modal-project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(178, 60, 60, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(178, 60, 60, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.modal-doc-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.modal-doc-card:hover,
.modal-project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 107, 0.4);
  box-shadow: 0 16px 32px rgba(178, 60, 60, 0.14);
}

.modal-doc-main:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
  border-radius: 12px;
}

.modal-doc-logo {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(178, 60, 60, 0.08);
}

.modal-doc-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.modal-doc-logo.is-cover {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(178, 60, 60, 0.08);
  border-radius: 14px 14px 0 0;
}

.modal-doc-logo.is-cover img {
  object-fit: cover;
}

.modal-doc-label,
.modal-project-label {
  margin: 0;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-doc-title,
.modal-project-title {
  margin: 0;
  font: 650 1rem/1.35 "Fraunces", serif;
  color: var(--coral-dark);
}

.modal-doc-meta,
.modal-project-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.modal-project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.modal-project-card {
  gap: 14px;
  height: 100%;
}

.modal-project-card:hover {
  transform: none;
}

button.modal-project-card.modal-press-card {
  width: 100%;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

button.modal-project-card.modal-press-card:hover,
button.modal-project-card.modal-press-card:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: rgba(52, 161, 165, 0.45);
  box-shadow: 0 14px 28px rgba(52, 161, 165, 0.14);
}

.modal-project-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-project-mark {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--coral-light), var(--coral));
  color: var(--white);
  font: 700 1rem/1 "Fraunces", serif;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 20px rgba(178, 60, 60, 0.18);
}

.modal-project-mark.has-logo {
  background: #fff;
  border: 1px solid rgba(178, 60, 60, 0.12);
  box-shadow: none;
  padding: 6px;
}

.modal-project-mark.has-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-project-card:nth-child(2) .modal-project-mark:not(.has-logo) {
  background: linear-gradient(145deg, #7ec9cc, var(--teal));
  box-shadow: 0 10px 20px rgba(52, 161, 165, 0.22);
}

.modal-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.modal-press-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 110px;
  padding: 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(178, 60, 60, 0.08);
}

.modal-press-logo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 180px;
  object-fit: contain;
}

.modal-press-action {
  margin-top: auto;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 600;
}

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  z-index: 60;
  inset: 0;
}

body.lightbox-open { overflow: hidden; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 34, 34, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 237, 213, 0.22);
  border-radius: 50%;
  color: var(--peach);
  background: rgba(255, 237, 213, 0.12);
  cursor: pointer;
  transition: background 160ms ease, opacity 160ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover:not(:disabled) {
  background: rgba(255, 237, 213, 0.22);
}

.lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-stage {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 80px 56px;
  box-sizing: border-box;
  pointer-events: none;
}

.lightbox-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  pointer-events: auto;
}

.lightbox-frame img {
  display: block;
  max-width: min(86vw, 980px);
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  background: #2a1c21;
}

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  transform: translateX(-50%);
  margin: 0;
  color: var(--peach);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

@media (max-width: 720px) {
  .lightbox-stage { padding: 64px 16px 48px; }
  .lightbox-frame img {
    max-width: 92vw;
    max-height: calc(100vh - 130px);
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.6rem;
  }
}

.modal-chip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(52, 161, 165, 0.12);
  color: #246f72;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.modal-chip-link:hover,
.modal-chip-link:focus-visible {
  background: var(--teal);
  color: var(--white);
}

.modal-chip-link.is-coral {
  background: rgba(255, 107, 107, 0.14);
  color: var(--coral-dark);
}

.modal-chip-link.is-coral:hover,
.modal-chip-link.is-coral:focus-visible {
  background: var(--coral);
  color: var(--white);
}

@media (max-width: 720px) {
  .modal-project-grid {
    grid-template-columns: 1fr;
  }
}

.reveal-hero,
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  animation: none;
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--delay, 0s);
}

.reveal-hero {
  animation: rise 780ms ease forwards;
  animation-delay: var(--delay, 0s);
}

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

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 161, 165, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(52, 161, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 161, 165, 0); }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .portrait-wrap {
    justify-self: center;
    width: min(100%, 240px);
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1120px); }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .hero { padding-bottom: 20px; }

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

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

  .card-art { height: 180px; }

  .modal-panel { padding: 28px 20px 22px; }
}
