/*
  Prime Web — Brand & Software Studio
  Editorial luxury aesthetic: warm cream + deep ink + metallic gold
  Playfair Display serif · Archivo sans · IBM Plex Mono accent
*/

/* ===== fonts & variables ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Archivo:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --paper:    #F3EEE4;
  --paper-2:  #ECE5D6;
  --ink:      #1B1611;
  --ink-2:    #110D0A;
  --ink-soft: #4C443A;
  --muted:    #8A8177;
  --gold:     #B08A4E;
  --gold-dim: #9B763E;
  --copper:   #A9713B;
  --line:     rgba(27,22,17,.12);
  --line-alt: rgba(243,238,228,.16);
  --cream-soft: rgba(243,238,228,.64);
  --cream-mid:  rgba(243,238,228,.45);
  --serif:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:   'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono:   'IBM Plex Mono', 'Consolas', monospace;
  --gap:    clamp(20px,3.5vw,48px);
  --pad-inline: clamp(24px,6vw,80px);
  --content-width: 1280px;
}

/* ===== reset ===== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===== grain texture overlay ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .032;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") repeat;
}

/* ===== skip link ===== */
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10001;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: .8125rem;
  border-radius: 2px;
  transform: translateY(-120%);
  transition: transform .24s;
}
.skip-link:focus { transform: translateY(0); }

/* ===== header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(18px,3vw,28px) var(--pad-inline);
  transition: background .32s, box-shadow .32s, padding .32s;
}

.wordmark {
  font: 500 1.5rem/1 var(--serif);
  letter-spacing: -.025em;
  text-decoration: none;
  color: var(--paper);
  transition: color .32s;
}
.wordmark-dot { color: var(--gold); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px,3vw,34px);
}
.site-nav a {
  font: 400 .82rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-soft);
  transition: color .22s;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .28s cubic-bezier(.33,1,.68,1);
}
.site-nav a:hover { color: var(--paper); }
.site-nav a:hover::after { width: 100%; }
.nav-cta {
  color: var(--ink) !important;
  background: var(--paper);
  padding: 8px 16px;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }
.nav-cta::after { display: none; }

/* scrolled state */
.site-header.is-scrolled {
  background: rgba(243,238,228,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: clamp(10px,2vw,16px);
  padding-bottom: clamp(10px,2vw,16px);
}
.site-header.is-scrolled .wordmark { color: var(--ink); }
.site-header.is-scrolled .site-nav a { color: var(--ink-soft); }
.site-header.is-scrolled .site-nav a:hover { color: var(--ink); }
.site-header.is-scrolled .nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
}
.site-header.is-scrolled .nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

/* menu toggle (mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--paper);
  transition: background .26s, transform .26s;
  transform-origin: center;
}
.site-header.is-scrolled .menu-toggle span { background: var(--ink); }

/* ===== hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink-2) url('assets/hero.png') center/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(27,22,17,.72) 0%, rgba(27,22,17,.38) 42%, rgba(27,22,17,.15) 65%, rgba(27,22,17,.32) 100%),
    radial-gradient(ellipse at 25% 50%, rgba(176,138,78,.12) 0%, transparent 60%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto;
  padding: clamp(100px,18vh,160px) var(--pad-inline) clamp(60px,10vh,100px);
}

.eyebrow {
  font: 400 .72rem/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: clamp(20px,4vh,32px);
}
.eyebrow--cream { color: var(--cream-mid); }

.hero-title {
  max-width: 840px;
  margin-bottom: clamp(22px,4vh,36px);
}
.hero-line {
  display: block;
  font: 400 clamp(48px,8.5vw,118px)/.94 var(--serif);
  letter-spacing: -.035em;
  color: var(--paper);
}
.hero-line--accent {
  font-weight: 500;
}
.hero-line em {
  font-style: italic;
  color: var(--gold);
}

.hero-lede {
  max-width: 560px;
  font-size: clamp(1rem,1.7vw,1.2rem);
  line-height: 1.65;
  color: var(--cream-soft);
  margin-bottom: clamp(28px,5vh,44px);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 .82rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: background .26s, color .26s, gap .3s;
}
.button--light {
  background: var(--paper);
  color: var(--ink);
}
.button--light:hover { background: var(--gold); gap: 16px; }

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: clamp(32px,7vh,56px);
  right: var(--pad-inline);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream-soft);
  transition: color .3s;
}
.scroll-cue:hover { color: var(--gold); }
.scroll-cue-label {
  font: 400 .68rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue-line {
  width: 1px;
  height: 48px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: var(--gold);
  animation: scroll-cue-pulse 2.2s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes scroll-cue-pulse {
  0%   { top: -35%; opacity: 1; }
  60%  { top: 75%; opacity: .3; }
  100% { top: 105%; opacity: 0; }
}

/* ===== sections ===== */
.section-pad {
  padding: clamp(80px,12vh,140px) var(--pad-inline);
}

.section-head {
  max-width: var(--content-width);
  margin: 0 auto clamp(40px,8vh,72px);
}

.section-title {
  font: 400 clamp(36px,5.5vw,72px)/1.08 var(--serif);
  letter-spacing: -.025em;
  max-width: 680px;
}

/* ===== work (horizontal scroll) ===== */
.work { overflow: hidden; }
.work .section-head { margin-bottom: clamp(32px,6vh,52px); }

.work-track {
  display: flex;
  gap: clamp(16px,2.5vw,28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--pad-inline) clamp(12px,2vw,24px);
  margin: 0 calc(var(--pad-inline) * -1 + var(--pad-inline));
  cursor: grab;
}
.work-track::-webkit-scrollbar { display: none; }
.work-track:active { cursor: grabbing; }

.work-card {
  flex: 0 0 clamp(260px,35vw,400px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work-thumb {
  aspect-ratio: 4/5;
  background: var(--paper-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.work-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(27,22,17,.08) 100%);
}
/* abstract thumbnail art — geometric blocks that read like brand/system fragments */
.work-thumb--1 { background: linear-gradient(135deg, #D4C5A9 0%, #C2A883 30%, #A98B5C 60%, #DACCB4 100%); }
.work-thumb--2 { background: linear-gradient(160deg, #B8C5D6 0%, #8FA4B8 35%, #6A7E94 70%, #B8C5D6 100%); }
.work-thumb--3 { background: linear-gradient(145deg, #C4B5A5 0%, #B09A84 40%, #9A8270 75%, #C4B5A5 100%); }
.work-thumb--4 { background: linear-gradient(150deg, #A8B5A2 0%, #8A9A84 35%, #6E7E68 65%, #B5C0AF 100%); }
.work-thumb--5 { background: linear-gradient(155deg, #B5A9A0 0%, #A0958B 30%, #8A7E74 60%, #BAB0A8 100%); }
.work-thumb--6 { background: linear-gradient(140deg, #C8BDA8 0%, #B5A88F 40%, #A0947A 65%, #D0C6B2 100%); }

.work-card:hover .work-thumb {
  transform: scale(1.03);
  transition: transform .6s cubic-bezier(.33,1,.68,1);
}

.work-meta {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.work-index {
  font: 500 .8rem/1 var(--mono);
  color: var(--gold);
  letter-spacing: .04em;
}
.work-tag {
  font: 400 .66rem/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-title {
  font: 500 clamp(1.25rem,2vw,1.6rem)/1.2 var(--serif);
  letter-spacing: -.015em;
}
.work-desc {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 300px;
}

.scroll-hint {
  max-width: var(--content-width);
  margin: clamp(20px,3vw,36px) auto 0;
  padding: 0 var(--pad-inline);
  font: 400 .66rem/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== about ===== */
.about-grid {
  max-width: var(--content-width);
  margin: 0 auto clamp(48px,8vh,80px);
}
.about-grid .eyebrow { margin-bottom: clamp(28px,5vh,44px); }
.about-statement {
  font: 400 clamp(1.35rem,2.6vw,2rem)/1.48 var(--serif);
  letter-spacing: -.01em;
  max-width: 760px;
  color: var(--ink);
}

.stats {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px,3vw,40px);
}
.stat {
  padding: clamp(20px,3vw,36px) 0 0;
  border-top: 1px solid var(--line);
}
.stat strong {
  display: block;
  font: 500 clamp(2.2rem,4vw,3.4rem)/1 var(--serif);
  letter-spacing: -.02em;
  color: var(--gold);
  margin-bottom: 6px;
}
.stat-plus {
  font-size: .65em;
  vertical-align: super;
}
.stat span {
  font: 400 .74rem/1.5 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== practice ===== */
.practice {
  background: var(--ink-2);
  color: var(--paper);
}
.practice .eyebrow { color: var(--copper); }
.practice .section-title { color: var(--paper); }

.practice-list {
  list-style: none;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.practice-list li {
  display: grid;
  grid-template-columns: 48px 1fr 1.2fr;
  gap: clamp(16px,3vw,40px);
  align-items: baseline;
  padding: clamp(24px,4vh,40px) 0;
  border-bottom: 1px solid var(--line-alt);
}
.practice-list li:first-child { border-top: 1px solid var(--line-alt); }

.practice-index {
  font: 400 .82rem/1 var(--mono);
  color: var(--copper);
  letter-spacing: .04em;
}
.practice-title {
  font: 500 clamp(1.25rem,2.2vw,1.65rem)/1.2 var(--serif);
  letter-spacing: -.015em;
  color: var(--paper);
}
.practice-desc {
  font-size: .94rem;
  line-height: 1.6;
  color: var(--cream-soft);
}

/* ===== quote ===== */
.quote { position: relative; }
.quote figure {
  max-width: var(--content-width);
  margin: 0 auto;
}
.quote-mark {
  display: block;
  font: 600 clamp(80px,14vw,160px)/.7 var(--serif);
  color: var(--gold);
  opacity: .55;
  margin-bottom: clamp(-10px,-2vw,-20px);
  margin-left: -.04em;
  user-select: none;
}
.quote blockquote p {
  font: italic 400 clamp(1.35rem,2.8vw,2.1rem)/1.38 var(--serif);
  letter-spacing: -.01em;
  max-width: 760px;
  margin-bottom: clamp(20px,3vh,32px);
}
.quote figcaption {
  font: 400 .78rem/1.5 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 480px;
}

/* ===== contact ===== */
.contact {
  background: var(--ink-2);
  color: var(--paper);
}
.contact-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.contact .eyebrow { text-align: center; }
.contact-title {
  font: 400 clamp(36px,5vw,64px)/1.1 var(--serif);
  letter-spacing: -.02em;
  margin-bottom: clamp(16px,2.5vh,24px);
}
.contact-sub {
  font-size: clamp(1rem,1.5vw,1.15rem);
  line-height: 1.6;
  color: var(--cream-soft);
  margin-bottom: clamp(32px,5vh,52px);
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.contact-link {
  font: 400 1rem/1 var(--serif);
  color: var(--cream-mid);
  text-underline-offset: 4px;
  transition: color .24s;
}
.contact-link:hover { color: var(--gold); }

/* ===== footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--cream-soft);
  padding: clamp(60px,10vh,100px) var(--pad-inline) clamp(28px,5vh,48px);
}
.footer-grid {
  max-width: var(--content-width);
  margin: 0 auto clamp(48px,7vh,72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px,5vw,60px);
}
.footer-brand .wordmark { color: var(--paper); }
.footer-tag {
  font-size: .9rem;
  line-height: 1.6;
  max-width: 300px;
  margin-top: 14px;
}
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav h4 {
  font: 400 .7rem/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 8px;
}
.footer-nav a {
  font-size: .9rem;
  text-decoration: none;
  color: var(--cream-soft);
  transition: color .22s;
}
.footer-nav a:hover { color: var(--paper); }

.footer-bottom {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-top: clamp(20px,3vh,32px);
  border-top: 1px solid var(--line-alt);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 28px;
  font: 400 .7rem/1.6 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.33,1,.68,1), transform .8s cubic-bezier(.33,1,.68,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.work-card:nth-child(1).reveal.is-visible { transition-delay: .04s; }
.work-card:nth-child(2).reveal.is-visible { transition-delay: .10s; }
.work-card:nth-child(3).reveal.is-visible { transition-delay: .16s; }
.work-card:nth-child(4).reveal.is-visible { transition-delay: .22s; }
.work-card:nth-child(5).reveal.is-visible { transition-delay: .28s; }
.work-card:nth-child(6).reveal.is-visible { transition-delay: .34s; }
.practice-list li:nth-child(1).reveal.is-visible { transition-delay: .04s; }
.practice-list li:nth-child(2).reveal.is-visible { transition-delay: .10s; }
.practice-list li:nth-child(3).reveal.is-visible { transition-delay: .16s; }
.practice-list li:nth-child(4).reveal.is-visible { transition-delay: .22s; }
.stat:nth-child(1).reveal.is-visible { transition-delay: .04s; }
.stat:nth-child(2).reveal.is-visible { transition-delay: .12s; }
.stat:nth-child(3).reveal.is-visible { transition-delay: .20s; }
.stat:nth-child(4).reveal.is-visible { transition-delay: .28s; }

/* ===== responsive ===== */
@media (max-width: 880px) {
  .menu-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 0 var(--pad-inline);
    background: rgba(17,13,10,.97);
    transform: translateX(100%);
    transition: transform .42s cubic-bezier(.33,1,.68,1);
    z-index: 1000;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a { font-size: 1.1rem; color: var(--cream-soft); }
  .site-nav a.nav-cta { display: inline-block; margin-top: 12px; }
  .site-header.is-scrolled .site-nav { background: rgba(243,238,228,.98); }
  .site-header.is-scrolled .site-nav a { color: var(--ink-soft); }

  .hero {
    min-height: 100dvh;
    background-position: 65% center;
  }
  .hero::before {
    background: linear-gradient(0deg, rgba(27,22,17,.78) 0%, rgba(27,22,17,.42) 55%, rgba(27,22,17,.58) 100%);
  }

  .stats { grid-template-columns: repeat(2, 1fr); }

  .practice-list li {
    grid-template-columns: 36px 1fr;
    gap: 12px 16px;
  }
  .practice-desc {
    grid-column: 2;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .hero-line { font-size: clamp(38px,11vw,64px); }
  .hero-lede { font-size: .95rem; }
  .scroll-cue { right: var(--pad-inline); bottom: 36px; }

  .work-card { flex: 0 0 clamp(220px,68vw,300px); }

  .stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat strong { font-size: 2rem; }

  .practice-list li { display: flex; flex-direction: column; gap: 6px; }
  .practice-index { margin-bottom: 2px; }

  .about-statement { font-size: 1.2rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-title { font-size: clamp(28px,8vw,44px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue-line::after { animation: none; }
  .work-card:hover .work-thumb { transform: none; transition: none; }
}