:root {
  --ink: #1e2a32;
  --ink-soft: #3d4f5a;
  --mute: #6a7a84;
  --paper: #e4eef2;
  --paper-deep: #d2e0e6;
  --leaf: #2f6f7e;
  --leaf-bright: #3a8494;
  --line: rgba(30, 42, 50, 0.12);
  --white: #f5fafb;
  --shadow: 0 24px 60px rgba(30, 42, 50, 0.16);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 255, 255, 0.65), transparent 55%),
    radial-gradient(900px 500px at 90% 5%, rgba(47, 111, 126, 0.1), transparent 50%),
    linear-gradient(180deg, #eaf3f6 0%, var(--paper) 40%, #d7e6ec 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(228, 238, 242, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--leaf);
}

.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 35;
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(228, 238, 242, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav a {
  padding: 0.85rem 0.25rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 12s var(--ease) forwards;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 22, 18, 0.2) 0%, rgba(18, 22, 18, 0.55) 55%, rgba(18, 22, 18, 0.78) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(40rem, calc(100% - 2.5rem));
  margin: 0 auto 0 clamp(1.25rem, 4vw, 3rem);
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  animation: riseIn 1s var(--ease) both;
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: 1.05rem;
  font-weight: 300;
  color: rgba(247, 248, 245, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--white);
  color: var(--ink);
}

.btn--primary:hover {
  background: #eef1ea;
}

.btn--ghost {
  border-color: rgba(247, 248, 245, 0.45);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(247, 248, 245, 0.08);
}

.section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
}

.section__intro {
  width: min(38rem, 100%);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section__intro p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

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

.project {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}

.project__link {
  display: block;
  position: relative;
  height: 100%;
  color: var(--white);
}

.project img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.project__link:hover img,
.project__link:focus-visible img {
  transform: scale(1.04);
}

.project__meta {
  position: absolute;
  inset: auto 0 0;
  padding: 3.5rem 1.25rem 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(18, 22, 18, 0.72));
}

.project__meta h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.project__meta p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(247, 248, 245, 0.85);
}

.approach__layout {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.approach__copy p {
  color: var(--ink-soft);
  max-width: 38ch;
}

.pillars {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.pillars li {
  display: grid;
  gap: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.pillars strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}

.pillars span {
  color: var(--mute);
  font-size: 0.98rem;
}

.approach__figure {
  margin: 0;
  overflow: hidden;
}

.approach__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.studio__intro {
  width: min(40rem, 100%);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.studio__intro p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.studio__panel {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-top: 1px solid var(--line);
}

.dropzone {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px dashed rgba(47, 74, 58, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 55%),
    rgba(247, 248, 245, 0.55);
  outline: none;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-dragging {
  border-color: var(--leaf);
  background: rgba(247, 248, 245, 0.85);
}

.dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.dropzone__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.dropzone__hint {
  margin: 0 0 0.75rem;
  color: var(--mute);
  font-size: 0.95rem;
}

.dropzone__btn {
  cursor: pointer;
}

.studio__status {
  min-height: 1.4em;
  margin: 0;
  color: var(--leaf);
  font-size: 0.95rem;
}

.studio__status.is-error {
  color: #8a2f2f;
}

.studio__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.slot-card {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.slot-card__thumb {
  width: 5.5rem;
  height: 4.25rem;
  object-fit: cover;
  background: var(--paper-deep);
}

.slot-card__copy {
  min-width: 0;
}

.slot-card__copy strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
}

.slot-card__copy span {
  color: var(--mute);
  font-size: 0.9rem;
}

.slot-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.slot-card__actions label,
.slot-card__actions button {
  cursor: pointer;
}

.btn--small {
  min-height: 2.25rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn--ghost-dark {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.btn--ghost-dark:hover {
  border-color: var(--ink);
}

.studio__add {
  display: grid;
  gap: 1rem;
  padding-top: 0.5rem;
}

.studio__add h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
}

.studio__fields {
  display: grid;
  gap: 0.85rem;
}

.studio__fields label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.studio__fields input[type="text"],
.studio__fields input[type="file"] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.15rem;
  background: rgba(247, 248, 245, 0.7);
  font: inherit;
  color: var(--ink);
}

.studio__fields input[type="file"] {
  padding: 0.45rem 0.5rem;
}

.studio__footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(18, 22, 18, 0.72);
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal__dialog {
  position: relative;
  width: min(24rem, 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.admin-modal__dialog h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
}

.admin-modal__dialog > p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.admin-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.admin-modal__form {
  display: grid;
  gap: 1rem;
}

.admin-modal__form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.admin-modal__form input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.15rem;
  background: rgba(247, 248, 245, 0.7);
  font: inherit;
  color: var(--ink);
}

.admin-modal__error {
  margin: 0;
  color: #8a2f2f;
  font-size: 0.9rem;
}

.contact {
  padding-top: 0;
}

.contact__panel {
  width: min(44rem, 100%);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--line);
}

.contact__panel > p {
  color: var(--ink-soft);
  max-width: 36ch;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.contact .btn--primary {
  background: var(--leaf);
  color: var(--white);
}

.contact .btn--primary:hover {
  background: var(--leaf-bright);
}

.contact .btn--ghost {
  border-color: var(--line);
  color: var(--ink);
}

.contact .btn--ghost:hover {
  border-color: var(--ink);
  background: transparent;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--leaf);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(12, 14, 12, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: min(80vh, 100%);
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox__caption {
  margin: 0.85rem 0 0;
  color: rgba(247, 248, 245, 0.9);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.2rem;
  background: transparent;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none;
  }

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

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

  .studio__file-label {
    grid-column: 1 / -1;
  }

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

@media (min-width: 980px) {
  .hero__content {
    margin-left: clamp(1.25rem, 4vw, 3rem);
    padding-bottom: 5.5rem;
  }

  .projects {
    gap: 1.5rem;
  }

  .approach__layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
  }
}

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

  .hero__media img,
  .hero__content,
  .reveal,
  .project img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
