/* ==========================================================================
   TRAD3_MRK by Ryan Lynch: preview stylesheet
   Restrained, contemporary, image-led. The artwork provides the intensity.
   ========================================================================== */

:root {
  /* Dark-neutral foundation */
  --bg:         #14130f;   /* warm near-black */
  --bg-2:       #1c1a15;   /* tinted panel */
  --surface:    #24211b;   /* cards */
  --line:       #35312a;   /* hairlines */
  --text:       #ece7db;   /* primary text (warm off-white) */
  --text-dim:   #a49d8c;   /* secondary text */
  --text-faint: #8a8272;   /* meta */
  /* One restrained accent, drawn from UV-reactive palette */
  --accent:     #d8a24a;   /* warm amber */
  --accent-2:   #6f9bd1;   /* cool UV blue, used sparingly */

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
}

/* ----------------------------- reset-ish ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }

:where(a, button, input, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #201a0c;
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* ------------------------------- header ------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 0.5rem; }
.brand__mark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand__by { font-size: 0.8rem; color: var(--text-dim); }

.nav__menu {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 0;
  padding: 0;
}
.nav__menu a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-dim);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav__menu a:hover { color: var(--text); border-bottom-color: var(--accent); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle-bar {
  width: 24px; height: 2px; background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------- hero ------------------------------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero__figure { margin: 0; }
.hero__image {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.hero__caption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 1rem;
}
.hero__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 0 0 1.1rem;
  color: var(--text);
}
.hero__statement {
  color: var(--text-dim);
  font-size: 1.02rem;
  margin: 0 0 1.75rem;
  max-width: 42ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* -------------------------------- buttons ----------------------------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--accent); color: #201a0c; }
.btn--primary:hover { background: #e7b768; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 0.85rem 1.8rem; font-size: 1rem; }

/* -------------------------------- sections ---------------------------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
}
.section--tinted {
  max-width: none;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--tinted > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); max-width: 60ch; }
.section__title {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  margin: 0 0 0.75rem;
}
.section__lead { color: var(--text-dim); margin: 0; }

/* ------------------------------ work grid ----------------------------- */
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card__media {
  position: relative;
  background:
    repeating-linear-gradient(45deg, #1b1913 0 10px, #1e1c15 10px 20px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0.55rem;
  overflow: hidden;
}
.card__img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;   /* contain-style, never destructive crop */
  border-radius: 2px;
}
.card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
.card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card__light-controls {
  display: inline-flex;
  align-self: flex-start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
}
.card__light-btn {
  border: 0;
  background: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.38rem 0.72rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.card__light-btn.is-active { background: var(--accent); color: #201a0c; }
.card__title { font-size: 1.2rem; margin: 0; }
.card__meta { margin: 0; font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }
.card__meta dt { display: none; }
.card__meta dd { margin: 0; }
.card__spec { color: var(--text-dim); }
.card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; }
.card__view,
.card__inquire {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.card__view:hover,
.card__inquire:hover { border-bottom-color: var(--accent); }

/* ------------------------------- gallery ----------------------------- */
.gallery-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4rem, 8vw, 7rem);
}
.gallery-intro {
  max-width: 760px;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.gallery-intro__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.gallery-intro__title {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
}
.gallery-intro__lead {
  max-width: 58ch;
  margin: 0 0 1.75rem;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}
.gallery-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(4.5rem, 10vw, 9rem);
}
.gallery-piece {
  scroll-margin-top: 6rem;
}
.gallery-piece__stage {
  position: relative;
  height: min(78vh, 820px);
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(0.55rem, 1vw, 0.8rem);
  background:
    repeating-linear-gradient(45deg, #1b1913 0 12px, #1e1c15 12px 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.gallery-piece__image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}
.gallery-piece__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gallery-piece__caption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
  align-items: start;
  padding-top: 1.35rem;
}
.gallery-piece__number {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.gallery-piece__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3.3vw, 2.8rem);
}
.gallery-piece__spec {
  margin: 0;
  color: var(--text-dim);
}
.gallery-piece__tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}
.gallery-piece__inquire {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.gallery-piece__inquire:hover { border-bottom-color: var(--accent); }

/* ------------------------- under another light ------------------------ */
.uv { max-width: 860px; margin: 0 auto; }
.uv__stage {
  position: relative;
  background: #0e0d0a;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.uv__img {
  grid-area: 1 / 1;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  object-fit: contain;
  transition: opacity 0.35s ease;
}
.uv__img--uv { opacity: 0; }
.uv.is-uv .uv__img--day { opacity: 0; }
.uv.is-uv .uv__img--uv  { opacity: 1; }

.uv__controls {
  display: inline-flex;
  margin: 1.15rem auto 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.uv__btn {
  background: none;
  border: 0;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.uv__btn.is-active { background: var(--accent); color: #201a0c; }
.uv__controls { display: flex; justify-content: center; }
.uv > .uv__controls { display: flex; }
.uv__meta {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  margin: 0.9rem 0 0;
}

/* --------------------------------- about ------------------------------ */
.about {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.about__portrait {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.about__image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}
.about__body p { color: var(--text-dim); margin: 0; max-width: 60ch; font-size: 1.05rem; }

/* ------------------------------ placeholders -------------------------- */
.placeholder {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, #1b1913 0 12px, #1e1c15 12px 24px);
  display: grid;
  place-items: center;
  color: var(--text-faint);
  text-align: center;
  padding: 1.5rem;
}
.placeholder--portrait { aspect-ratio: 4 / 5; }
.placeholder__label { font-size: 0.8rem; letter-spacing: 0.05em; }

/* -------------------------------- contact ----------------------------- */
.contact__inner { text-align: center; max-width: 640px; }
.contact__lead { color: var(--text-dim); margin: 0 auto 1.5rem; }
.contact__email { font-size: 1.35rem; margin: 0 0 1.75rem; font-family: var(--font-display); }
.contact__email a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent); }
.contact__email a:hover { color: var(--accent); }

/* --------------------------------- footer ----------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.site-footer__brand { font-family: var(--font-display); font-size: 1.1rem; margin: 0; }
.site-footer__brand span { color: var(--text-dim); font-size: 0.85rem; }
.site-footer__contact { margin: 0; }
.site-footer__contact a { color: var(--accent); text-decoration: none; }
.site-footer__contact a:hover { text-decoration: underline; }
.site-footer__note { margin: 0; color: var(--text-faint); font-size: 0.8rem; }

/* ------------------------------ responsive ---------------------------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__panel { order: 2; }
  .hero__media { order: 1; }
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 320px; }
}

@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  .card__media { aspect-ratio: 4 / 3; }
  .gallery-main { padding-top: 2.75rem; }
  .gallery-piece__stage {
    height: min(72vh, 620px);
    min-height: 430px;
    padding: 0.55rem;
  }
  .gallery-piece__stage--square {
    height: auto;
    min-height: 0;
    aspect-ratio: 1;
  }
  .gallery-piece__stage--landscape {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .gallery-piece__caption { grid-template-columns: 1fr; gap: 1rem; }
  .gallery-piece__tools { align-items: flex-start; }
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu li { border-bottom: 1px solid var(--line); }
  .nav__menu a { display: block; padding: 0.85rem 0; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---------------------------- reduced motion -------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
