/* ============================================================
   Sawyer Thomson — Expert & Bowmaker
   Dark, warm, gallery-grade. Gold: #a28663
   ============================================================ */

:root {
  --bg: #0d0c0b;
  --bg-soft: #141210;
  --ink: #ece7df;
  --ink-dim: #b8b0a4;
  --gold: #a28663;
  --gold-bright: #c3a87f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sp-lg: clamp(96px, 11.8vw, 170px);   /* between major sections */
  --sp-md: clamp(60px, 7.6vw, 110px);     /* within sections */
  --nav-h: 72px;
  --gutter: clamp(24px, 6vw, 86px);    /* consistent side margin for ALL content */
  --content: 1240px;                    /* shared max content width */
  --frame: calc(var(--content) + 2 * var(--gutter));
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, 4vw);
  height: var(--nav-h);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(13, 12, 11, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(162, 134, 99, 0.14);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-mono { height: 30px; width: auto; }

.nav-name {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
}

.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 10px 4px;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold-bright); }

.nav-cta {
  border: 1px solid rgba(162, 134, 99, 0.5);
  padding: 9px 22px !important;
  border-radius: 100px;
  color: var(--gold-bright) !important;
  transition: background 0.3s, color 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--bg) !important;
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: min(var(--content), 100% - 2 * var(--gutter));
  height: min(86svh, 780px);
  min-height: 520px;
  margin: calc(var(--nav-h) + clamp(14px, 1.8vw, 26px)) auto 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -18% 0;
  background: url("../images/hero-frog.jpg") center 38% / cover no-repeat;
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(13,12,11,0.1) 0%, rgba(13,12,11,0.55) 100%),
    linear-gradient(to bottom, rgba(13,12,11,0.45) 0%, rgba(13,12,11,0.05) 30%, rgba(13,12,11,0.05) 60%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  animation: heroIn 1.6s var(--ease) 0.2s both;
}

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

.hero-mono {
  height: clamp(48px, 4.45vw, 64px);
  width: auto;
  margin: 0 auto 20px;
  /* optical centering: glyph mass sits 2.8% left of its bounding box center */
  transform: translateX(2.8%);
  opacity: 0.95;
}

.hero h1 {
  font-size: clamp(58px, 8.9vw, 128px);
  font-weight: 400;
  color: #f6f1e9;
  text-shadow: 0 2px 40px rgba(0,0,0,0.45);
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(232, 226, 217, 0.82);
}

.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* ---------- Statement ---------- */
.statement {
  padding: var(--sp-lg) var(--gutter);
  max-width: var(--frame);
  margin: 0 auto;
  text-align: center;
}

.statement p {
  font-family: var(--serif);
  font-size: clamp(26px, 3.05vw, 44px);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink);
  max-width: 26em;
  margin: 0 auto;
}

.statement em {
  font-style: italic;
  color: var(--gold-bright);
}

/* ---------- Sections / splits ---------- */
.section {
  padding: var(--sp-lg) var(--gutter);
  max-width: var(--frame);
  margin: 0 auto;
}

.section-label {
  font-size: clamp(12px, 1.04vw, 15px);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: clamp(40px, 5vw, 72px);
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 101px);
  align-items: center;
  margin-bottom: var(--sp-md);
}

.split:last-child { margin-bottom: 0; }

.split-rev .split-media { order: 2; }
.split-rev .split-text { order: 1; }

.split-media {
  overflow: hidden;
  border-radius: 4px;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

.split-media img {
  width: 100%;
  height: auto;
  transition: transform 1.4s var(--ease);
}

.split-media:hover img { transform: scale(1.03); }

.split-text h2 {
  font-size: clamp(36px, 4.17vw, 60px);
  margin-bottom: 30px;
  color: #f1ebe1;
}

.split-text p {
  color: var(--ink-dim);
  margin-bottom: 20px;
  max-width: 52ch;
}

.stamp-card {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
  padding: 18px;
  border: 1px solid rgba(162, 134, 99, 0.18);
  border-radius: 6px;
  background: var(--bg-soft);
}

.stamp-card img {
  width: 86px;
  height: 110px;
  object-fit: cover;
  border-radius: 3px;
}

.stamp-card figcaption {
  font-size: 14px;
  color: var(--ink-dim);
}

.stamp-card em { color: var(--gold-bright); font-style: italic; }

/* ---------- Banner ---------- */
.banner {
  position: relative;
  width: min(var(--content), 100% - 2 * var(--gutter));
  height: min(72svh, 660px);
  min-height: 440px;
  margin: 0 auto;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 22%;
}

.banner-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(13,12,11,0.15) 35%, rgba(13,12,11,0.3) 70%, var(--bg) 100%);
}

.banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 clamp(28px, 4vw, 64px) clamp(40px, 5vw, 64px);
}

.banner-content .section-label { text-align: left; margin-bottom: 22px; }

.banner-content h2 {
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 300;
  color: #f4efe7;
}

/* ---------- Gallery ---------- */
.gallery-sec {
  padding: var(--sp-lg) var(--gutter);
  max-width: var(--frame);
  margin: 0 auto;
  text-align: center;
}

.gallery-sec .section-label { margin-bottom: 26px; }

.gallery-title {
  font-size: clamp(32px, 3.9vw, 56px);
  font-weight: 300;
  color: #f1ebe1;
  margin-bottom: clamp(50px, 6.25vw, 90px);
}

.gallery-group { margin-bottom: clamp(56px, 7vw, 100px); }
.gallery-group:last-child { margin-bottom: 0; }

.gallery-sublabel {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  color: #f1ebe1;
  margin-bottom: clamp(26px, 3vw, 40px);
  letter-spacing: 0.01em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.94vw, 28px);
}

.gallery-2 { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }

/* Masonry — flex columns with tops aligned, photos at natural proportions.
   Columns are built by JS (buildMasonry) so all column tops line up. */
.gallery-masonry {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.94vw, 28px);
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-masonry .mcol {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.94vw, 28px);
}

.gallery-masonry .g-item { width: 100%; }

.gallery-masonry .g-item img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: block;
}

@media (max-width: 520px) {
  .gallery-masonry { max-width: 420px; }
}

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.g-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 1.4s var(--ease), opacity 0.6s;
}

.g-item:hover img { transform: scale(1.045); }

.g-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: rgba(232,226,217,0.85);
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  text-align: left;
}

.g-item:hover figcaption { opacity: 1; }

@media (hover: none) {
  .g-item figcaption { opacity: 1; }
}

/* ---------- Interlude ---------- */
.interlude {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--sp-lg);
}

.interlude img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* ---------- Artists ---------- */
.artists {
  padding: var(--sp-lg) var(--gutter);
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid rgba(162,134,99,0.1);
  border-bottom: 1px solid rgba(162,134,99,0.1);
}

.artist-list {
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
}

.artist-list li {
  font-family: var(--serif);
  font-size: clamp(34px, 4.45vw, 64px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
  transition: color 0.4s;
}

.artist-list li:hover { color: var(--gold-bright); }

/* ---------- Instagram strip ---------- */
.insta-sec {
  padding: var(--sp-lg) var(--gutter) 0;
  max-width: var(--frame);
  margin: 0 auto;
  text-align: center;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.94vw, 28px);
}

.insta-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
}

.insta-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.insta-tile:hover img { transform: scale(1.045); }

.insta-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 16px 14px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: rgba(232, 226, 217, 0.9);
  background: linear-gradient(to top, rgba(0,0,0,0.78), transparent);
  text-align: left;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.insta-tile:hover .insta-cap,
.insta-tile:focus-visible .insta-cap { opacity: 1; }

.insta-tile:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

@media (hover: none) {
  .insta-cap { opacity: 1; }
}

.insta-follow { margin-top: clamp(30px, 4vw, 48px); }

@media (max-width: 900px) {
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
  .insta-cap { opacity: 1; padding: 34px 12px 10px; font-size: 11.5px; }
}

/* ---------- Contact ---------- */
.contact {
  padding: var(--sp-lg) var(--gutter);
  text-align: center;
}

.contact-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.contact-mono {
  height: clamp(40px, 3.75vw, 54px);
  width: auto;
  margin: 0 auto 36px;
  opacity: 0.9;
}

.contact h2 {
  font-size: clamp(40px, 5.3vw, 76px);
  font-weight: 300;
  color: #f4efe7;
  margin-bottom: 26px;
}

.contact p {
  color: var(--ink-dim);
  margin-bottom: 44px;
}

.btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--bg);
  background: var(--gold);
  padding: 16px 38px;
  border-radius: 100px;
  transition: background 0.3s, transform 0.3s var(--ease);
}

.btn:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.insta-link svg { width: 17px; height: 17px; }

.insta-link:hover { color: var(--gold-bright); }

.footer-insta {
  display: inline-block;
  color: var(--ink-dim);
  margin-bottom: 14px;
  transition: color 0.3s;
}

.footer-insta svg { width: 19px; height: 19px; }

.footer-insta:hover { color: var(--gold-bright); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.78vw, 40px);
  max-width: 880px;
  margin: var(--sp-md) auto 0;
  text-align: left;
}

.contact-card {
  border: 1px solid rgba(162, 134, 99, 0.18);
  border-radius: 8px;
  background: var(--bg-soft);
  padding: 34px 32px;
}

.contact-card h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.contact-card p {
  color: var(--ink-dim);
  font-size: 15px;
  margin-bottom: 14px;
  line-height: 1.9;
}

.contact-card .kr {
  font-size: 13.5px;
  color: rgba(163, 154, 141, 0.65);
}

.text-link {
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(195, 168, 127, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.3s, color 0.3s;
}

.text-link:hover {
  color: #d8c099;
  border-bottom-color: var(--gold-bright);
}

.hours {
  list-style: none;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
  color: var(--ink-dim);
  padding: 7px 0;
  border-bottom: 1px solid rgba(162, 134, 99, 0.1);
}

.hours li:last-child { border-bottom: none; }

.hours li span:last-child { color: var(--ink); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; max-width: 460px; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 56px 24px 48px;
  text-align: center;
  border-top: 1px solid rgba(162,134,99,0.1);
}

.footer-word {
  height: 16px;
  width: auto;
  margin: 0 auto 20px;
  opacity: 0.8;
}

.footer p {
  font-size: 12.5px;
  color: rgba(163, 154, 141, 0.6);
  letter-spacing: 0.05em;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-rev .split-media { order: 1; }
  .split-rev .split-text { order: 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .br-desk { display: none; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(13,12,11,0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(162,134,99,0.14);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease);
  }

  .nav-links.open { max-height: 360px; }

  .nav-links a {
    padding: 18px 24px;
    width: 100%;
    text-align: center;
    font-size: 1.0625rem;
  }

  .nav-cta {
    border: none;
    border-radius: 0;
    padding: 18px 24px !important;
  }

  .nav-toggle {
    display: block;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    position: relative;
    cursor: pointer;
  }

  .nav-toggle span {
    position: absolute;
    left: 10px; right: 10px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.4s var(--ease), top 0.4s var(--ease);
  }

  .nav-toggle span:nth-child(1) { top: 17px; }
  .nav-toggle span:nth-child(2) { top: 26px; }

  .nav-toggle.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content { animation: none; }
  .hero-bg { transform: none !important; }
}
