/* ==============================
   EASY THEME SETTINGS
   Update these colors first.
   ============================== */
@import url("https://use.typekit.net/smy1htf.css");
:root {
  /* Primary Typekit font (exact family name from the kit) */
  --primary-font: "roca", sans-serif;
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-strong: #e6f0f4;
  --text-main: #20303a;
  --text-muted: #4d6370;
  --border: #c7d9e0;
  --accent: #1c8ca3;
  --accent-strong: #166c7d;
  --shadow: 0 14px 30px rgba(26, 67, 82, 0.12);
  --container-width: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "roca", sans-serif;
  font-weight: 100;
  font-style: normal;
  color: var(--text-main);
  background: var(--page-bg);
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

.container {
  width: min(100% - 2rem, var(--container-width));
  margin-inline: auto;
}

/* ==============================
   HEADER + NAV
   ============================== */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 300;
}

.site-header .container {
  padding: 100px 20px 60px;
  text-align: center;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compact-header .container {
  padding-top: 3.2rem;
}

/* Header row layout: signature on left, content on the right */
.site-header .container.header-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: left;
  justify-content: space-between;
  padding-left: 0.35rem;
  padding-right: 1rem;
  /* allow .site-header .container's vertical padding to control centering */
}

.header-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-right {
  flex: 1 1 auto;
  min-width: 0;
}

/* Keep the signature compact and left-aligned */
.header-left .site-signature,
.header-left .header-slug-logo,
.site-signature {
  display: block;
  width: auto;
  max-width: min(600px, 55vw);
  height: clamp(51px, 7vh, 69px);
  max-height: 69px;
  margin: 0;
}

/* Visually hidden but accessible h1 */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Push navigation to the right side of the header row */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.header-right .main-nav {
  margin-top: 0;
  justify-content: flex-end;
}

/* Compact projects index gallery (smaller cards) — scoped to .index-gallery */
.index-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.index-gallery .project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
  position: relative;
}

.index-gallery .project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.427) 24%,
    rgba(0, 0, 0, 0.14) 44%,
    rgba(0, 0, 0, 0.0) 80%,
  );
  pointer-events: none;
  z-index: 2;
}

.index-gallery .project-card:hover,
.index-gallery .project-card:focus-visible {
  transform: translateY(-6px);
}

.index-gallery .project-sample {
  width: 100%;
  height: clamp(180px, 22vw, 260px);
  object-fit: contain;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
}

.index-gallery .project-card-meta {
  position: absolute;
  inset: 0; /* fill the card */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
  font-size: 1.10rem;
  text-align: center;
  color: #ffffff;
  background: transparent;
  border: none;
  border-radius: 0;
  text-decoration: none;
  z-index: 3;
}

/* Projects meta text (section descriptions) — ensure high contrast on dark thumbnails */
.section-description {
  color: #ffffff;
}

@media (max-width: 640px) {
  .index-gallery {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .index-gallery .project-sample {
    height: clamp(140px, 42vw, 220px);
  }
}
@media (min-width: 641px) and (max-width: 900px) {
  .site-header .container.header-row {
    align-items: flex-start;
  }

  .header-right {
    width: 100%;
    margin-top: 0.6rem;
    display: block;
  }
  .header-right .main-nav {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.6rem;
  }
}

h1 {
  margin: 0.3rem 0;
  font-family: "roca", "Georgia", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
}

.main-nav {
  margin-top: 1.2rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--text-main);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  font-size: 0.96rem;
  border: none;
  background: transparent;
  transition: color 160ms ease, transform 120ms ease;
}

.main-nav a:hover {
  color: var(--accent-strong);
  transform: translateY(-2px);
}

.main-nav a[aria-current="page"] {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
/* Currently operates by translating an svg image. Should be switched to a animated effect in the future so it can have both ends rounded.*/
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 100%;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='24' viewBox='0 0 320 24'%3E%3Cpath d='M0 12 Q8 4 16 12 T32 12 T48 12 T64 12 T80 12 T96 12 T112 12 T128 12 T144 12 T160 12 T176 12 T192 12 T208 12 T224 12 T240 12 T256 12 T272 12 T288 12 T304 12 T320 12' fill='none' stroke='%23166c7d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  --nav-wave-scale: 0.7;
  background-size: calc(320px * var(--nav-wave-scale)) 100%;
  --nav-wave-period: calc(32px * var(--nav-wave-scale));
  animation: nav-wiggle 1.8s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes nav-wiggle {
  0% { background-position-x: -10px; }
  20% { background-position-x: calc(var(--nav-wave-period) * -0.2 - 10px); }
  40% { background-position-x: calc(var(--nav-wave-period) * -0.4 - 10px); }
  60% { background-position-x: calc(var(--nav-wave-period) * -0.6 - 10px); }
  80% { background-position-x: calc(var(--nav-wave-period) * -0.8 - 10px); }
  100% { background-position-x: calc(var(--nav-wave-period) * -1 - 10px); }
}

/* Dropdown menu for Projects & Artworks */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .drop-toggle {
  display: inline-block;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 0.35rem 0;
  z-index: 120;
  transition: opacity 160ms ease, transform 160ms ease;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.nav-dropdown .dropdown-menu a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: var(--text-main);
  white-space: nowrap;
}

.nav-dropdown .dropdown-menu a:hover,
.nav-dropdown .dropdown-menu a:focus {
  background: var(--surface-strong);
  color: var(--accent-strong);
}

/* show when hovered or when JS adds .open */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==============================
   HOMEPAGE
   ============================== */
.hero {
  padding: 2.8rem 0 2rem;
}

.hero-layout {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero-copy,
.hero-image,
.text-block,
.project-section {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.hero-copy {
  padding: 0.6rem 0.4rem 0.6rem 0.4rem;
}

.hero-copy h2 {
  margin: 0;
  font-family: "roca", "Georgia", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.2;
}

.hero-copy p {
  margin: 1rem 0 1.3rem;
  color: var(--text-muted);
}

.button-link {
  display: inline-block;
  background: transparent;
  color: var(--accent-strong);
  text-decoration: none;
  border: 2px solid var(--accent-strong);
  border-radius: 0;
  padding: 0.7rem 1rem;
  font-weight: 600;
  width: 12.5vw;
  box-sizing: border-box;
  text-align: center;
}

.button-link:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.hero-image {
  margin: 0;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(22, 72, 93, 0.14);
}
/* ==============================
   ABOUT PAGE
   ============================== */
.about-section {
  padding: 2.8rem 0 2rem;
}

.about-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.about-image {
  margin: 0;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
  min-height: 360px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 18px 40px rgba(22, 72, 93, 0.14);
  display: block;
}

.about-copy {
  padding: 0.6rem 0.4rem 0.6rem 0.4rem;
}

.about-copy h1 {
  margin: 0 0 1rem 0;
  font-family: "roca", "Georgia", "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
}

.about-copy p {
  margin: 0 0 1.3rem 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-copy p:last-child {
  margin-bottom: 0;
}
.bio,
.contact {
  padding-bottom: 1.8rem;
}

.text-block {
  padding: 1.5rem;
}

.text-block h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-family: "roca", "Georgia", "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.6rem;
}

.text-block p {
  margin: 0;
  color: var(--text-muted);
}

.text-block p + p {
  margin-top: 0.8rem;
}

.contact-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.contact-list li {
  margin-bottom: 0.35rem;
}

.contact-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0 0;
}

a {
  color: var(--accent);
}

/* ==============================
   PROJECTS PAGE
   ============================== */
.projects-main {
  padding: 2rem 0;
}

.project-section {
  padding: 1.2rem;
  margin-bottom: 1.3rem;
}

.project-section h2 {
  margin: 0;
  font-family: "roca", "Georgia", "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.45rem;
}

.section-description {
  margin: 0.4rem 0 1rem;
  color: var(--text-muted);
}

.gallery-grid {
  column-count: 3;
  column-gap: 1rem;
}

.gallery-card {
  border: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  background: background-color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  position: relative;
  display: block;
  width: 100%;
  margin: 1rem 0 0;
  break-inside: avoid;
  aspect-ratio: var(--gallery-ratio, 4 / 3);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms cubic-bezier(.2,.9,.3,1);
  display: block;
  border-radius: 0;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  transform: scale(1.035) translateZ(0);
}

.gallery-card:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.gallery-meta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.6rem;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  gap: 0.6rem;
  text-align: center;
}



.meta-title {
  opacity: 0.98;
}

/* ==============================
   LIGHTBOX
   ============================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.lightbox.visible {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  width: min(94vw, 1200px);
  text-align: center;
}

.lightbox-figure img {
  width: auto;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  border-radius: 0px;
  display: block;
}

/* Make the lightbox image appear cropped as a square */
.lightbox-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 82vh;
  overflow: hidden;
  display: block;
}

.lightbox-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.lightbox-figure figcaption {
  margin-top: 0.85rem;
  color: #e4f2f8;
  font-size: 0.95rem;
  text-align: center;
  width: 100%;
}

.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 0;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.lightbox-arrow {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.7rem;
}

.lightbox-prev {
  position: absolute;
  left: 1rem;
}

.lightbox-next {
  position: absolute;
  right: 1rem;
}

/* ==============================
   FOOTER
   ============================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
}

.footer-slug-logo {
  display: block;
  width: auto;
  height: 28px;
  max-width: min(140px, 45vw);
  margin: 0 auto;
}

/* ==============================
   MOBILE
   ============================== */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    column-count: 2;
  }

  .hero-image img {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    padding: 1.2rem 0 0.9rem;
  }

  .gallery-grid {
    column-count: 1;
    column-gap: 0;
  }

  .gallery-card img {
    height: auto;
  }

  .lightbox-close {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
  }

  .lightbox-arrow {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.3rem;
    position: fixed;
    top: 50%;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .button-link {
    width: 100%;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-image img {
    min-height: 300px;
  }

  /* Stack the header logo + nav for mobile */
  .header-row {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .site-header .container.header-row {
    min-height: 170px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .header-right {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0;
  }

  .main-nav {
    justify-content: center;
    margin-top: 0.45rem;
    gap: 0.45rem;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0.7rem;
  }

  .header-right .main-nav {
    justify-content: center;
    margin-inline: auto;
  }

  .main-nav a {
    white-space: normal;
  }

  .header-left .site-signature,
  .site-signature {
    width: auto;
    max-width: min(68vw, 320px);
    height: auto;
    max-height: 56px;
    margin: 0 auto;
  }

  .header-left .header-slug-logo {
    width: auto;
    max-width: min(40vw, 161px);
    height: auto;
    max-height: 39px;
    margin: 0 auto;
  }

  .header-left {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
  }

  .footer-slug-logo {
    height: 24px;
    max-width: min(120px, 45vw);
  }
}
