/* =========================================================
   Ross Lavery - Portfolio
   Design: "Ink & Amber" - a premium, editorial palette
   ========================================================= */
:root {
  --ink: #0f1013;          /* near-black, warm */
  --ink-2: #16181d;        /* raised dark */
  --paper: #f4f1ec;        /* warm off-white */
  --paper-2: #ece7df;      /* darker cream (alt section) */
  --text: #211f1c;         /* body on light */
  --text-dim: #6b655c;     /* muted on light */
  --text-inv: #f4f1ec;     /* body on dark */
  --text-inv-dim: #b7b1a7; /* muted on dark */
  --amber: #c98a2b;        /* brand accent */
  --amber-2: #e0a94a;      /* brighter amber */
  --line: rgba(255, 255, 255, 0.12);
  --line-inv: rgba(20, 18, 15, 0.16);
  --serif: Georgia, "Times New Roman", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.55);
  --maxw: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: #1c1305; border-color: var(--amber); }
.btn--primary:hover { background: var(--amber-2); border-color: var(--amber-2); }
.btn--ghost { background: transparent; color: var(--text-inv); border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber-2); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 16, 19, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--text-inv);
}
.nav__menu {
  display: flex;
  gap: 1.9rem;
  list-style: none;
}
.nav__menu a {
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: var(--text-inv-dim);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.18s ease;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width 0.2s ease;
}
.nav__menu a:hover { color: var(--text-inv); }
.nav__menu a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-inv);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(201, 138, 43, 0.14), transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--text-inv);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber-2);
  margin-bottom: 1.1rem;
}
.hero__name {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.2rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.3rem;
}
.hero__tag {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: var(--text-inv-dim);
  max-width: 44ch;
  margin-bottom: 2.1rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.1rem; }
.hero__rep { font-size: 0.86rem; color: var(--text-inv-dim); letter-spacing: 0.02em; }
.hero__rep a { color: var(--amber-2); border-bottom: 1px solid rgba(224,169,74,0.4); }
.hero__rep a:hover { color: var(--text-inv); }

.hero__portrait {
  position: relative;
  justify-self: end;
  width: min(100%, 380px);
}
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(201, 138, 43, 0.5);
  border-radius: var(--radius);
  z-index: 0;
}
.hero__portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Section shell ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--paper-2); }
.section__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 2.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
.section__title span {
  font-size: 0.95rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--amber);
}
.section .intro,
.credits__intro, .range__intro, .gallery__intro, .contact__intro {
  color: var(--text-dim);
  margin-bottom: 2.2rem;
  font-size: 1.04rem;
}
/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about__text p {
  margin-bottom: 1.1rem;
  font-size: 1.06rem;
  color: #3a3733;
}
.about__text p:first-child {
  font-size: 1.28rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.55;
}
.about__facts {
  list-style: none;
  border: 1px solid var(--line-inv);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.about__facts li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--line-inv);
  font-size: 0.95rem;
}
.about__facts li:last-child { border-bottom: none; }
.about__facts strong {
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.74rem;
  align-self: center;
}
.about__facts span { color: var(--text); font-weight: 500; }

/* ---------- Credits table ---------- */
.credits-table {
  overflow-x: auto;
  border: 1px solid var(--line-inv);
  border-radius: var(--radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.credits-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.credits-table th,
.credits-table td {
  text-align: left;
  padding: 1.05rem 1.2rem;
  border-bottom: 1px solid var(--line-inv);
  vertical-align: top;
}
.credits-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
  background: #faf8f4;
  white-space: nowrap;
}
.credits-table tbody tr:last-child td { border-bottom: none; }
.credits-table tbody tr { transition: background 0.15s ease; }
.credits-table tbody tr:hover { background: #fbf6ee; }
.credits-table td strong { color: var(--text); font-weight: 600; }
.credits-table td em {
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.85em;
  font-weight: 400;
}
.credits-table td:first-child {
  color: var(--text-dim);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.credits__note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.credits__note a { color: var(--amber); font-weight: 600; border-bottom: 1px solid rgba(201,138,43,0.4); }
.credits__note a:hover { color: var(--text); }
/* ---------- Range ---------- */
.range-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.range-card {
  background: #fff;
  border: 1px solid var(--line-inv);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.range-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -22px rgba(0, 0, 0, 0.5);
}
.range-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.range-card p { font-size: 0.95rem; color: #4a463f; }
.range-card strong { color: var(--text); font-weight: 600; }

/* ---------- On Camera / Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.gallery-item {
  margin: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #fff;
  border: 1px solid var(--line-inv);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.5);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__cap {
  padding: 0.7rem 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  border-top: 1px solid var(--line-inv);
  text-transform: uppercase;
  font-weight: 600;
}
.gallery__note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}
.lightbox.is-open img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.lightbox__close:hover { background: var(--amber); color: #1c1305; transform: rotate(90deg); }
/* ---------- Contact / Agency ---------- */
.agency {
  background: var(--ink);
  color: var(--text-inv);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2.4rem;
  align-items: center;
}
.agency__kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--amber-2);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.agency__name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
}
.agency__details {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 2rem;
}
.agency__details li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0.9rem;
  font-size: 0.95rem;
  align-items: baseline;
}
.agency__details li > span {
  color: var(--text-inv-dim);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.agency__details a { color: var(--text-inv); }
.agency__details a:hover { color: var(--amber-2); }

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.social-card {
  background: #fff;
  border: 1px solid var(--line-inv);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.social-card h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
}
.social-card p { font-size: 0.88rem; color: var(--text-dim); }
.social-card:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
  box-shadow: 0 14px 26px -20px rgba(0, 0, 0, 0.45);
}
.social-card:hover h3 { color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-inv-dim);
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}
.site-footer .site-footer__note { max-width: 60ch; }

/* ---------- Mobile nav ---------- */
@media (max-width: 760px) {
  .nav__toggle { display: inline-block; }
  .nav__menu {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__menu a {
    display: block;
    padding: 1rem 1.4rem;
    border-top: 1px solid var(--line);
  }
  .nav__menu a::after { display: none; }
  .site-header .nav { position: relative; }
  .nav.is-open .nav__menu { max-height: 340px; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Responsive layout ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__portrait { justify-self: center; }
  .hero__tag { margin-inline: auto; }
  .hero__cta, .hero__kicker { justify-content: center; }
  .hero__cta { justify-content: center; }
  .about__grid { grid-template-columns: 1fr; }
  .range-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .agency { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .range-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .agency__details { grid-template-columns: 1fr; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .gallery-item:hover img { transform: none; }
}
/* End of file */

