:root {
  --bg: #121212;
  --fg: #e9e4d8;
  --muted: #a9a59b;
  --line: #3a3835;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --gap: clamp(1rem, 3vw, 3rem);
  /* fluid root size: 16px on phones, scales up to ~32px on 4K */
  font-size: clamp(16px, 0.55vw + 11px, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, figure, blockquote { margin: 0; }

.section {
  width: min(100% - 2 * var(--gutter), 90rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 8rem);
}
.center { text-align: center; }

/* Typography */
.display {
  font-family: var(--serif);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.1;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
}
.display--lg { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: clamp(2rem, 6vw, 5rem); }
.display--md { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.display--quote {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  max-width: 24em;
  margin: 2rem auto;
  line-height: 1.5;
}
.script { font-family: var(--serif); font-style: italic; font-size: 1.1rem; letter-spacing: .03em; }
.small { font-size: .78rem; color: var(--muted); max-width: 26em; }
.small.caps { text-transform: uppercase; letter-spacing: .15em; color: var(--fg); margin-bottom: 1.2rem; font-size: .7rem; }
.eyebrow, .label {
  font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.label { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: .05em; font-size: .9rem; }
.link {
  display: inline-block; margin-top: 1rem;
  font-size: .65rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--muted); padding-bottom: 2px;
  transition: color .3s, border-color .3s;
}
.link:hover { color: #fff; border-color: #fff; }

/* Image shapes */
.img {
  --img: none;
  background-color: #2a2825;
  background-image: var(--img), var(--ph);
  background-size: cover;
  background-position: center;
  width: 100%;
  overflow: hidden;
}
/* An <img> placed inside a shape fills it and is cropped to fit */
.img > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.rect { aspect-ratio: 4 / 3; }
.rect.tall { aspect-ratio: 3 / 4; }
.rect.wide { aspect-ratio: 16 / 10; }
.circle { aspect-ratio: 1; border-radius: 50%; }
.arch { aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; }

/* Placeholder gradients (replace via --img) */
.p1  { --ph: linear-gradient(#aaa8a2 0 40%, #6b6a52 40% 60%, #25241f 60%); }
.p2  { --ph: linear-gradient(160deg, #cfd2d6, #7a6a5a 55%, #4a3a30); }
.p3  { --ph: linear-gradient(90deg, #b99a62, #d2b783 48%, #1f1f1f 49% 51%, #c9a96e 52%); }
.p4  { --ph: linear-gradient(135deg, #8a5a2b, #c49a4f 40%, #5b4a22 70%, #a46e34); }
.p5  { --ph: linear-gradient(#9c8f55, #b3a468); }
.p6  { --ph: linear-gradient(170deg, #5a5550, #2b2926 60%, #1a1918); }
.p7  { --ph: linear-gradient(#c9bfc1 0 35%, #6c7c88 35% 70%, #4a4540 70%); }
.p8  { --ph: linear-gradient(100deg, #5a4535, #8a6a52 45%, #3a2a22 60%, #6d5340); }
.p9  { --ph: linear-gradient(#8f9395, #d5d6d4 45%, #50555a 80%); }
.p10 { --ph: linear-gradient(#cfd3d6 0 45%, #7a6a55 45% 60%, #3c4a52 60%); }
.p11 { --ph: linear-gradient(#d4d6d8 0 30%, #4a5a3a 30% 65%, #b8b4a6 65%); }
.p12 { --ph: linear-gradient(#7a8a96 0 40%, #5a4a3a 40%); }
.p13 { --ph: linear-gradient(#6a8aa6, #8a7a5a); }
.p14 { --ph: linear-gradient(#3a3a3c, #b5642e 60%); }
.p15 { --ph: linear-gradient(#7a8a9a, #5a4a40); }
.p16 { --ph: linear-gradient(#b8c8d4 0 25%, #2f5a6a 25% 55%, #7a8040 55% 75%, #3a3a28 75%); }
.p17 { --ph: radial-gradient(circle at 30% 30%, #5a6a2a, #2a3a1a 70%); }
.p18 { --ph: linear-gradient(160deg, #d6d0cc, #8a5a3a 60%, #2a2420); }

/* Hero */
.hero { display: grid; gap: var(--gap); align-items: start; padding-top: clamp(2rem, 6vw, 6rem); }
.hero__side { display: grid; justify-items: center; text-align: center; gap: .8rem; max-width: 14rem; }
.hero__text .script { margin-top: 1.2rem; color: var(--muted); }

/* About */
.about { display: grid; gap: var(--gap); align-items: center; }
.about__text { display: grid; gap: 1.2rem; justify-items: center; text-align: center; }

/* Work rows */
.row { display: grid; gap: var(--gap); align-items: center; margin-bottom: clamp(3rem, 8vw, 8rem); }
.row__cap { display: grid; gap: .5rem; justify-items: start; }
.row--a .row__cap { justify-items: center; text-align: center; }
.row--a .row__cap .circle { width: min(60%, 12rem); margin-bottom: 1rem; }
.row--a .row__cap .small { text-align: center; }
.row__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.row__pair .row__cap { grid-column: 1 / -1; margin-top: 1.2rem; }
.row__stack { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.row__main .row__cap { margin-top: 1.2rem; }

/* CTA */
.cta .arch { width: min(40%, 9rem); margin: 0 auto; }
.cta .script { color: var(--muted); }
.cta .link { margin-top: 1.5rem; }

/* Testimonials */
.t-grid { display: grid; gap: 3rem; }
.t { display: grid; justify-items: center; gap: .6rem; text-align: center; }
.t .circle { width: 9rem; margin-bottom: 1rem; }
.t .small { text-align: center; }

/* Credentials */
.cred { display: grid; gap: var(--gap); align-items: center; }
.cred__text { display: grid; gap: .6rem; align-content: start; }
.cred__text .script { margin-top: 1.5rem; }
.cred__text .script:first-child { margin-top: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: end; }
.contact__text { grid-column: 1 / -1; text-align: center; display: grid; gap: .3rem; justify-items: center; padding-top: 2rem; }
.contact__text .display { margin-bottom: 1.5rem; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Tablet */
@media (min-width: 700px) {
  .hero { grid-template-columns: 1.6fr 1fr; }
  .hero__side { justify-self: end; }
  /* text | arch | tall strip; the two photos sit side by side at equal height */
  .about { grid-template-columns: 1.1fr 1fr .55fr; column-gap: .4rem; align-items: stretch; }
  .about__text { padding-right: var(--gap); align-content: center; }
  .about .arch { aspect-ratio: 5 / 6; align-self: center; }
  .about .rect { aspect-ratio: auto; height: auto; align-self: stretch; position: relative; }
  .about .rect > img { position: absolute; inset: 0; }
  .row--a { grid-template-columns: 1.6fr 1fr; }
  .row--b { grid-template-columns: 1.5fr 1fr; }
  .row--c { grid-template-columns: 1.6fr 1fr; }
  .row__stack { grid-template-columns: 1fr; justify-items: center; }
  .row__stack .img { width: 80%; }
  .t-grid { grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
  .cred { grid-template-columns: 1fr 1.8fr; }
  .contact { grid-template-columns: 1fr 1fr 1fr; }
  /* photos sit flush with the page bottom; the left circle bleeds off the edge */
  .contact { padding-bottom: 0; }
  .contact .circle { margin-left: calc(-1 * var(--gutter) - 30%); }
  .contact__text { grid-column: auto; padding: 0 0 clamp(2rem, 6vw, 5rem); }
}

/* Large desktops / 4K: rem scaling handles size; widen the container a bit */
@media (min-width: 2200px) {
  .section { width: min(100% - 2 * var(--gutter), 100rem); }
}

/* Very small phones */
@media (max-width: 380px) {
  .display { letter-spacing: .08em; }
}
