/* ---------- FONT SETUP ---------- */

/* Geomanist Ultra – self-hosted (adjust filenames if needed) */
@font-face {
    font-family: "Geomanist Ultra";
    src: url("../fonts/geomanist/geomanist-ultra-webfont.woff2") format("woff2"),
         url("../fonts/geomanist/geomanist-ultra-webfont.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
  }
  
  /* Silka Mono Thin – self-hosted, woff2 only */
  @font-face {
    font-family: "Silka Mono";
    src: url("../fonts/silkamono/silkamono-thin-webfont.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Silka Mono";
    src: url("../fonts/silkamono/silkamono-extralight-webfont.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
  }
  
  /* ---------- GLOBAL ---------- */
  
  :root {
    --bg-light: #e5e5e5;
    --bg-dark: #262626;
    --accent: #e5e5e5;
    --text-dark: #262626;
  --text-main: #e5e5e5;
  --text-muted: #939393;
  --border-soft: #3a3a3a;
  --frame-gap: clamp(1.5rem, 5vw, 4rem);
}
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
    height: 100%;
  }
  
  body {
    background: var(--bg-light);
    color: var(--text-main);
    font-family: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  
  a {
    font-family: "Silka Mono", monospace;
  }

  /* Page flex wrapper */
  
.page {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  isolation: isolate; /* keep corner overlays beneath content */
}

.page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("../imgs/corner-tl.png"), url("../imgs/corner-br.png");
  background-repeat: no-repeat, no-repeat;
  background-position: left var(--frame-gap) top var(--frame-gap),
    right calc(var(--frame-gap) - 1px) bottom calc(var(--frame-gap) - 1px); /* nudge BR image to avoid hairline */
  background-size: clamp(80px, 14vw, 180px), clamp(60px, 14vw, 150px);
  z-index: 11;
}

.page > * {
  position: relative;
  z-index: 2;
}
  
  /* ---------- HEADER / NAV ---------- */
  
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;

  display: flex;
  align-items: flex-end;
  min-height: var(--frame-gap);
  /* justify-content: space-between; */
  /* padding: 2rem var(--frame-gap) 0.1rem; */
  padding: 0 var(--frame-gap) 0;
  background: var(--bg-light); /* sit on white when content scrolls underneath */
}

  /* Burger button */
  
.burger {
  position: relative;
  width: 1.7rem;
  height: 1.7rem;
  /* border-radius: 999px; */
  border: 1px solid var(--border-soft);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  /* margin-top: -0.7rem; */
  margin-left: auto; /* push burger to the right on mobile */
  align-self: center; /* vertically center within header */
  cursor: pointer;
  z-index: 20; /* keep above the overlay */
}
  
  .burger span {
    position: absolute;
    width: 1.1rem;
    height: 2px;
    background: var(--bg-dark); /* visible on light bg */
    transition:
      transform 0.22s ease,
      opacity 0.22s ease,
      top 0.22s ease,
      bottom 0.22s ease;
  }
  
  .burger span:nth-child(1) {
    top: 0.4rem;
  }
  
  .burger span:nth-child(2) {
    opacity: 1;
  }
  
  .burger span:nth-child(3) {
    bottom: 0.4rem;
  }
  
  /* Burger animated to "X" when open */
  .burger--open span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
  
  .burger--open span:nth-child(2) {
    opacity: 0;
  }
  
  .burger--open span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
  }

  .burger--open span {
    background: var(--text-main);
  }
  
  /* Nav base (mobile overlay) */
  
  .nav {
    position: fixed;
    inset: 0;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 15;
  }
  
  .nav--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  @media (max-width: 899px) {
    .nav--open {
      transition: opacity 0.25s ease;
    }
  }
  
  .nav--open {
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-link {
    font-family: "Silka Mono", monospace;
    font-size: 1rem;
    font-weight: 200;
    text-decoration: none;
    color: var(--text-main);
    margin: 0.3rem 0 0 0;
    padding: 0.2rem 0.5rem;
    transition:
      background 0.18s ease,
      color 0.18s ease,
  }
  
  /* Hover / active highlight */
  
  .nav-link:hover {
    /* border-color: var(--accent); */
    background: var(--bg-dark);
    text-transform: uppercase;
  }
  
  .nav-link.is-active {
    background: var(--bg-dark);
    color: var(--accent);
    text-transform: uppercase;
  }
  
  /* Desktop nav */
  
  @media (min-width: 900px) {
    .nav {
      position: static;
      inset: auto;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      background: none;
      flex-direction: row;
      justify-content: flex-end;
      gap: 0.8rem;
      margin-left: auto; /* push menu to the right edge of the header */
      align-self: flex-end; /* align nav to bottom of header */
      transform: translateY(-1px); /* nudge up slightly */
    }
  
    .burger {
      display: none;
    }
  
    .nav-link {
      color: #262626;
    }
  
    .nav-link:hover {
      background: var(--bg-dark);
      color: var(--accent);
    }
  
    .nav-link.is-active {
      background: var(--bg-dark);
      color: var(--accent);
    }
  }
  
  /* ---------- FLOATING CONTENT SHELL ---------- */
  
.page-main {
  flex: 1;
  /* padding-top: clamp(4.5rem, 6vw, 6.5rem); */
  display: flex;
  align-items: stretch;
  justify-content: center;
}
  
.content-shell {
  background-color: var(--bg-dark);
  /* border-radius: 1rem; */
  width: calc(100% - (var(--frame-gap) * 2));
  max-width: none;
  margin: var(--frame-gap) auto;
  padding: clamp(1.6rem, 4vw, 4rem);
  display: flex;
  align-items: center;
}
  
  /* ---------- HERO CONTENT ---------- */
  
  .hero {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    /* gap: clamp(1rem, 3vw, 1.8rem); */
    align-items: center;   /* center the flex children */
    text-align: center;    /* center the text itself */
  }
  
  .hero-title {
    font-family: "Geomanist Ultra", system-ui, sans-serif;
    font-size: clamp(2.2rem, 14vw, 10rem);
    /* font-size: clamp(2rem, 7vw, 5rem); */
    letter-spacing: -0.03em;
    /* text-transform: uppercase; */
    margin: 0;
  }

  .hero-subtitle {
    /* font-family: "Silka Mono", monospace;
    font-weight: 200; */
    font-weight: 100;
    font-size: clamp(1rem, 4vw, 2.5rem);
    margin: clamp(-2.4rem, -4vw, -0.8rem) 0 clamp(1rem, 1.6vw, 1.6rem) 0;
  }
  
  .hero-text {
    font-weight: 300; /* Work Sans Light */
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-main);
    max-width: 38rem;
  }
  
  .hero-meta {
    font-family: "Silka Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .contact a.email-link {
    font-family: "Silka Mono", monospace;
    color: var(--text-main);
    font-size :clamp(1rem, 2.5vw, 1.75rem);
    text-decoration: underline;
  }

  .contact a.email-link:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
  }

  /* Social icons row */
.social-bar {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    margin-top: clamp(2.5rem, -2vw, 1.5rem);
  }
  
  .social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .social-icon {
    width: clamp(3rem, 2vw, 4rem);;
    height: auto;
    opacity: 0.85;
    /* filter: invert(1); */
    color: var(--text-main);
    
  }
  
  .social-icon:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
    
  }
  
  /* ---------- ABOUT PAGE ---------- */

.content-shell--about {
  align-items: flex-start; /* allow text to start at top */
}

.about-wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-header {
  text-align: center;
  margin-top: 0.5rem;
}

.about-title {
  font-family: "Geomanist Ultra", system-ui, sans-serif;
  font-size: clamp(2rem, 7vw, 5rem);
  letter-spacing: -0.03em;
  /* text-transform: uppercase; */
  margin: 0;

  /* font-family: "Geomanist Ultra", system-ui, sans-serif;
  font-size: clamp(2.2rem, 14vw, 10rem);
  letter-spacing: -0.03em;
  /* text-transform: uppercase; */
  margin: 0; */
}

.about-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0.6rem 0 0;
}

.about-divider {
  height: 1px;
  width: min(320px, 80%);
  margin: 0 auto;
  background: var(--border-soft);
  opacity: 0.9;
}

.about-bio {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  font-weight: 300; /* Work Sans Light */
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.7;
  text-align: justify;
}

.about-bio p {
  margin: 0;
  color: var(--text-main);
}

.about-section {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.about-section-title {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-list li {
  position: relative;
  padding-left: 1.2rem;
}

.about-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Mobile tightening */
@media (max-width: 600px) {
  .about-wrap {
    gap: 1.6rem;
  }

  .about-bio {
    font-size: 0.98rem;
  }

  .about-list {
    font-size: 0.92rem;
  }
}

  /* ---------- WORK PAGE ---------- */

.content-shell--work {
  align-items: flex-start;
}

.work-wrap {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.work-wrap--detail {
  gap: 2rem;
}

.work-header {
  text-align: center;
  margin-top: 0.5rem;
}

.work-title {
  font-family: "Geomanist Ultra", system-ui, sans-serif;
  font-size: clamp(2rem, 7vw, 5rem);
  letter-spacing: -0.03em;
  margin: 0;
}

.work-item {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6rem;
  border-bottom: 1px solid #e5e5e526;
}

.work-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.work-item--reverse {
  flex-direction: row-reverse;
}

.work-item img {
  width: 45%;
  height: auto;
  aspect-ratio: 1;
  border: clamp(20px, 3vw, 40px) solid #e5e5e5;
  object-fit: cover;
  flex-shrink: 0;
  /* margin-right: 5%; */
}

.work-item-content {
  width: 45%;
  /* padding-left: 5%; */
  /* padding-right: 5%; */
}

.work-item--reverse .work-item-content {
  /* padding-left: 5%; */
  /* padding-right: 5%; */
}

.work-item-title {
  font-family: "Geomanist Ultra", system-ui, sans-serif;
  font-size: 2rem;
  margin: 0 0 1rem 0;
  color: var(--text-main);
}

.work-item-text {
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
}

.work-item-text a {
  color: var(--text-main);
  text-decoration: underline;
  font-family: "Work Sans", system-ui, sans-serif;
}

.work-item-text a:hover {
  background-color: var(--text-main);
  color: var(--bg-dark);
  text-decoration: none;
}

.read-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #e5e5e5;
  color: #262626;
  text-decoration: none;
  font-family: "Silka Mono", monospace;
  font-size: 0.9rem;
  margin-top: 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.read-more:hover {
  background: #262626;
  color: #e5e5e5;
}

/* Work Detail Styles */
.work-detail {
  max-width: 1200px;
  margin: 0 auto;
}

.work-detail-text {
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.work-detail-text a {
  color: var(--text-main);
  text-decoration: underline;
  font-family: "Work Sans", system-ui, sans-serif;
}

.work-detail-text a:hover {
  background-color: var(--text-main);
  color: var(--bg-dark);
  text-decoration: none;
}

.work-detail-media {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border: clamp(20px, 3vw, 40px) solid #e5e5e5;
  display: block;
  margin: 4rem auto;
}

.work-detail iframe {
  aspect-ratio: 16 / 9.46;
  background-color: #e5e5e5;
}

.work-detail-media--square {
  max-width: 1200px;
}

.work-detail-media--square {
  aspect-ratio: 1 / 1!important;
}

.work-detail-media-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  margin: 4rem auto 0;
  align-items: center;
}

.work-detail-text--media-intro {
  margin: 0 0 0.5rem 0;
  width: 100%;
}

.work-detail-media-group .work-detail-media {
  margin: 0;
}

@media (max-width: 768px) {
  .work-item {
    flex-direction: column;
  }

  .work-item--reverse {
    flex-direction: column;
  }

  .work-item img {
    width: 100%;
    border: 30px solid #e5e5e5;
  }

  .work-item-content {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .work-item--reverse .work-item-content {
    padding-left: 0;
    padding-right: 0;
  }

  .work-wrap {
    gap: 3rem;
  }

  .work-item {
    gap: 1.5rem;
  }
}

  /* ---------- FOOTER ---------- */
  
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;

  min-height: var(--frame-gap);
  padding: 0 var(--frame-gap);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-light);
  }
  
.footer-meta {
  font-family: "Geomanist Ultra", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  /* letter-spacing: 0.18em; */
  /* text-transform: uppercase; */
  color: var(--text-dark);
}
  .footer-meta .mono {
    font-family: "Silka Mono", monospace;
    font-weight: 200;
    font-size: 0.75rem;
    margin: 0 0.5rem 0 0;
    color: var(--text-dark);
  }
  
  /* ---------- RESPONSIVE SMALL ---------- */
  
@media (max-width: 600px) {
  :root {
    --frame-gap: 1.5rem;
  }

  .content-shell {
    padding: 1.5rem 1.2rem;
  }

  .site-header {
      padding-inline: var(--frame-gap);
    }

  .burger {
    width: 1.4rem;
    height: 1.4rem;
    border: none;
    /* margin-top: -1.6rem; */
  }

  .footer-meta {
    font-size: 0.75rem;
  }
  .footer-meta .mono {
    font-size: 0.6rem;
  }

  .site-footer {
    display: none;
  }

  .content-shell {
    margin-bottom: 0;
  }

  .page::before {
    background-image: url("../imgs/corner-tl.png"), none;
  }
}