/* ═══════════════════════════════════════════
   MYRA — portfolio
   Tungsten gallery / cream editorial sections
═══════════════════════════════════════════ */

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

:root {
  --bg: #0b0b0a;
  --bg-2: #121211;
  --paper: #efe8d8;
  --ink: #141311;
  --ink-soft: #3a372f;
  --text: #f4efe6;
  --muted: #7893a1;
  --faint: #58717e;
  --line: rgba(244, 239, 230, 0.12);
  --line-ink: rgba(20, 19, 17, 0.14);
  --blue: #9fc4d8;
  --blue-deep: #4d7890;
  --sans: "Manrope", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --nav: 72px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
code {
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--blue-deep);
}
::selection { background: var(--blue); color: var(--ink); }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--blue);
  z-index: 90;
}



.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--nav);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 10, 0.82);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}
.nav-inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: "League Spartan", var(--sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}
.logo-mark { color: inherit; }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 450;
  color: #789aaa;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--blue); }

.hamburger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, top 0.25s;
}
.hamburger span:first-child { top: 16px; }
.hamburger span:last-child { top: 24px; }
.hamburger.is-open span:first-child { top: 20px; transform: rotate(45deg); }
.hamburger.is-open span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px var(--pad) 24px;
  background: rgba(11, 11, 10, 0.96);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  text-decoration: none;
  padding: 14px 0;
  font-size: 22px;
  font-family: var(--serif);
  color: #789aaa;
  border-bottom: 1px solid var(--line);
}

.hero {
  /* Easy to remove: delete the background-image and background-position lines. */
  background-image: linear-gradient(90deg, rgba(11, 11, 10, 0.92) 0%, rgba(11, 11, 10, 0.72) 48%, rgba(11, 11, 10, 0.28) 100%), url("images/work/web/img-2649.jpg");
  background-size: cover;
  background-position: center;
  min-height: 100svh;
  padding: calc(var(--nav) + 40px) var(--pad) 80px;
  display: flex;
  align-items: center;
  max-width: none;
  margin: 0;
  position: relative;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto 0 0;
  height: 190px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 92%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  margin-left: max(0px, calc((100vw - 1440px) / 2));
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 7.2vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.hero-title em { font-style: italic; color: var(--blue); }
.hero-lede {
  margin-top: 28px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 17px;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--text); color: var(--ink); }
.btn-solid:hover { background: var(--blue); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #58717e;
  margin-bottom: 6px;
}
.hero-meta dd { font-size: 14px; }




.work { padding: 64px var(--pad) 108px; }
.adopt { padding: 108px var(--pad); }
.section-head {
  max-width: 1440px;
  margin: 0 auto 48px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
}
.section-head h2,
.adopt-story h2,
.about-copy h2,
.service-intro h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.section-lede {
  margin-top: 14px;
  max-width: 46ch;
  color: var(--muted);
  font-weight: 300;
}
.section-head--ink .section-lede { color: var(--ink-soft); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filter {
  background: transparent;
  border: 1px solid var(--line);
  color: #789aaa;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.filter.is-active,
.filter:hover {
  color: var(--ink);
  background: var(--blue);
  border-color: var(--blue);
}

.gallery {
  max-width: 1440px;
  margin: 0 auto;
  columns: 3;
  column-gap: 14px;
}
.shot {
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #181816;
  animation: rise 0.7s ease both;
}
.shot.is-hidden { display: none; }
.shot img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s ease, filter 0.4s;
  filter: saturate(0.92);
}
.shot:hover img { transform: scale(1.04); filter: saturate(1); }

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


.service {
  background: #80aec4;
  color: var(--ink);
  padding: 88px var(--pad) 116px;
}
.service-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 64px;
  align-items: stretch;
}
.service-intro {
  background: #173b50;
  color: #f4efe6;
  padding: 56px 48px 60px;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-kicker {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 58px;
}
.service-intro h2 {
  position: relative;
  z-index: 1;
  color: #f4efe6;
  font-size: clamp(3.3rem, 6vw, 6.3rem);
  max-width: 5ch;
  line-height: 0.88;
}
.service-intro p:not(.service-kicker) {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  color: rgba(244, 239, 230, 0.76);
  max-width: 40ch;
  font-weight: 300;
}
.service-intro p:last-child {
  margin-top: auto;
  padding-top: 26px;
  border-top: 1px solid rgba(159, 196, 216, 0.28);
}
.service-intro a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  text-underline-offset: 3px;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-top: 0;
}
.service-card {
  background: #173b50;
  color: #f4efe6;
  border: 1px solid rgba(244, 239, 230, 0.14);
  padding: 28px 24px 26px;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  background: #234e65;
}
.service-card--feature {
  background: #234e65;
}
.service-card--feature:hover { background: #2b5d76; }

.service-card h3 {
  font-family: var(--serif);
  font-size: clamp(25px, 2.3vw, 34px);
  font-weight: 400;
  line-height: 0.98;
  margin-bottom: 14px;
  max-width: 16ch;
  text-wrap: balance;
}
.service-card p:last-child {
  color: rgba(244, 239, 230, 0.72);
  font-size: 14.5px;
  font-weight: 300;
  margin-top: 0;
}

.science {
  background: #101d26;
  color: #f4efe6;
  padding: 132px var(--pad);
}
.science-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 76px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.science-intro h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  max-width: 8ch;
}
.science-label {
  font-family: var(--mono);
  color: var(--blue-deep);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.science-intro > p:not(.science-label) {
  margin-top: 24px;
  color: rgba(244, 239, 230, 0.68);
  max-width: 46ch;
  font-weight: 300;
}
.science-notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 20px;
}
.science-notes article {
  min-height: 145px;
  border: 1px solid rgba(159, 196, 216, 0.24);
  background: rgba(28, 56, 70, 0.58);
  padding: 22px 24px;
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}
.science-notes article:hover {
  transform: translateX(8px);
  background: rgba(42, 83, 103, 0.8);
}

.science-notes h3 {
  font-family: var(--serif);
  color: #f4efe6;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  margin: 18px 0 6px;
}
.science-notes p {
  color: rgba(244, 239, 230, 0.62);
  font-size: 14px;
  font-weight: 300;
}

.adopt-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.adopt-story { position: sticky; top: 96px; }
.adopt-story h2 em { font-style: italic; color: var(--blue); }
.adopt-story p {
  margin-top: 18px;
  color: var(--muted);
  max-width: 42ch;
  font-weight: 300;
}
.adopt-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0 32px;
  padding: 22px 0;
  border-block: 1px solid var(--line);
}
.adopt-stats dt {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--blue);
}
.adopt-stats dd {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #58717e;
}

.post-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.post {
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.post:nth-child(3n) { grid-column: span 2; }
.post img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.post:nth-child(3n) img { aspect-ratio: 16 / 10; }
.post-body { padding: 16px 16px 18px; }
.post-name { font-family: var(--serif); font-size: 22px; }
.post-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.post-body p { color: var(--muted); font-size: 14px; margin-top: 8px; font-weight: 300; }

.about {
  background: var(--paper);
  color: var(--ink);
  padding: 108px var(--pad);
}
.about-grid {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.about-portrait figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.about-copy p { margin-top: 16px; color: var(--ink-soft); max-width: 54ch; }
.about-list {
  margin-top: 28px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-list li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 18px;
  position: relative;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--blue-deep);
  border-radius: 50%;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--pad) 40px;
  border-top: 1px solid var(--line);
  color: #58717e;
  font-size: 13px;
}
.footer a { text-decoration: none; color: var(--muted); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 6, 5, 0.94);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 48px 20px 32px;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0 auto; max-width: min(1100px, 86vw); }
.lb-figure img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.lb-figure figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lb-close, .lb-nav {
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
}
.lb-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--blue);
}
.lb-nav {
  font-size: 28px;
  width: 56px;
  height: 56px;
  color: var(--blue);
}

@media (max-width: 980px) {
  .hero, .adopt-grid, .about-grid, .service-inner, .science-inner { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav) + 24px); min-height: 100svh; }
  .hero-copy { margin-left: 0; }
  .gallery { columns: 2; }
  .adopt-story { position: static; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero-meta { grid-template-columns: 1fr 1fr; }

}
@media (max-width: 620px) {
  .hero {
    background-image: linear-gradient(to bottom, rgba(11, 11, 10, 0.78) 0%, rgba(11, 11, 10, 0.58) 42%, rgba(11, 11, 10, 0.2) 100%), url("images/work/web/img-2649.jpg");
    background-position: 64% center;
    background-size: cover;
    background-repeat: no-repeat;
  }
  .hero-copy { padding-top: 20px; }
  .gallery { columns: 1; }
  .post-stack, .service-grid, .science-notes { grid-template-columns: 1fr; }
  .service { padding: 56px var(--pad) 80px; }
  .service-intro { min-height: auto; padding: 40px 28px 44px; }
  .science { padding-block: 100px; }
  .service-kicker { margin-bottom: 42px; }
  .service-grid { padding-top: 18px; }
  .science-notes { padding-top: 18px; }
  .post:nth-child(3n) { grid-column: auto; }
  .hero-meta { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .section-head { flex-direction: column; align-items: start; }
  .filters { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot { animation: none; }
  .btn, .frame img, .shot img { transition: none; }
}
