:root {
  --ink: #1c1b19;
  --paper: #f4efe8;
  --cream: #fbf8f3;
  --sage: #9ca68f;
  --clay: #bb725b;
  --plum: #493744;
  --line: rgba(28, 27, 25, 0.18);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 5vw;
  transition: background 180ms ease, padding 180ms ease, box-shadow 180ms ease;
}
.site-header.scrolled {
  padding-block: 14px;
  background: rgba(244, 239, 232, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
}
.site-nav { display: flex; gap: 32px; }
.site-nav a { font-size: 0.92rem; font-weight: 500; }
.site-nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 180ms ease;
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { width: 100%; }
.menu-toggle { display: none; }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 7vw;
  max-width: var(--max);
  margin: auto;
  padding: 150px 5vw 90px;
}
.eyebrow {
  margin: 0 0 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
h1 { max-width: 850px; margin-bottom: 28px; font-size: clamp(3.8rem, 7.2vw, 7.4rem); }
h1 em { color: var(--clay); font-weight: 500; }
.hero-intro { max-width: 610px; font-size: 1.12rem; color: rgba(28, 27, 25, 0.7); }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--cream); }
.button-light { background: var(--cream); color: var(--ink); }
.text-link { font-weight: 600; }
.text-link span { display: inline-block; transition: transform 180ms ease; }
.text-link:hover span { transform: translate(3px, -3px); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 540px; }
.portrait-placeholder {
  position: relative;
  z-index: 2;
  width: min(100%, 400px);
  aspect-ratio: 4 / 5;
  display: grid;
  place-content: center;
  text-align: center;
  color: rgba(255,255,255,.85);
  background: linear-gradient(145deg, var(--plum), #765767);
  border-radius: 48% 48% 10px 10px;
  box-shadow: 0 30px 60px rgba(73, 55, 68, 0.22);
}
.portrait-placeholder span { font-family: "Playfair Display", serif; font-size: 2rem; }
.portrait-placeholder small { opacity: .72; }
.orbit { position: absolute; border: 1px solid rgba(73, 55, 68, .28); border-radius: 50%; }
.orbit-one { width: 470px; height: 470px; }
.orbit-two { width: 560px; height: 340px; transform: rotate(-25deg); }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--cream); }
.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
  animation: marquee 28s linear infinite;
}
.marquee span { font-family: "Playfair Display", serif; font-size: 1.25rem; }
.marquee i { color: var(--clay); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { max-width: var(--max); margin: auto; padding: 130px 5vw; }
.section-label { font-size: .77rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10vw; margin-top: 54px; }
.about h2, .section-heading h2 { font-size: clamp(2.8rem, 5vw, 5.3rem); }
.about-copy { max-width: 650px; font-size: 1.08rem; }
.about-copy > p { color: rgba(28, 27, 25, .72); }
.facts { margin-top: 42px; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts strong { font-size: .86rem; }
.facts span { text-align: right; color: rgba(28,27,25,.68); }

.work { max-width: none; background: var(--ink); color: var(--cream); }
.work > * { max-width: var(--max); margin-inline: auto; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 58px; }
.section-heading h2 { max-width: 720px; margin: 0; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px 28px; }
.project-large { grid-column: 1 / -1; }
.project-image { min-height: 380px; display: grid; place-items: center; overflow: hidden; }
.project-large .project-image { min-height: 580px; }
.project-image span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.4); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.image-one { background: linear-gradient(135deg, #a96852, #d7a47e 48%, #59424e); }
.image-two { background: linear-gradient(145deg, #7b8470, #b8bea9); }
.image-three { background: linear-gradient(145deg, #58424f, #9f7283); }
.project-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); margin-top: 18px; }
.project-number { margin-bottom: 4px; font-size: .75rem; opacity: .55; }
.project-meta h3 { margin-bottom: 0; font-size: 1.35rem; }
.project-meta > p { color: rgba(255,255,255,.62); }

.timeline { border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 40px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.timeline-date { font-size: .85rem; color: rgba(28,27,25,.58); }
.timeline h3 { margin-bottom: 5px; font-size: 1.2rem; }
.timeline div p, .timeline article > span { color: rgba(28,27,25,.6); }

.contact { padding: 110px 5vw 28px; background: var(--plum); color: var(--cream); }
.contact-inner { max-width: 900px; margin: 0 auto 120px; text-align: center; }
.contact h2 { margin-bottom: 24px; font-size: clamp(3.3rem, 7vw, 7rem); }
.contact-inner > p:not(.eyebrow) { max-width: 620px; margin: 0 auto 34px; color: rgba(255,255,255,.68); }
.contact footer { max-width: var(--max); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); font-size: .82rem; }
.brand-light { flex: 0 0 auto; }
.social-links { display: flex; gap: 22px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .site-header { padding: 18px 5vw; }
  .menu-toggle { display: grid; gap: 6px; width: 42px; height: 42px; place-content: center; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { width: 22px; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 76px 5vw auto; display: none; flex-direction: column; gap: 0; padding: 14px; background: var(--cream); box-shadow: 0 18px 50px rgba(28,27,25,.15); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-visual { min-height: 440px; }
  .portrait-placeholder { width: min(80%, 340px); }
  .orbit-one { width: 390px; height: 390px; }
  .orbit-two { width: 430px; height: 270px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-heading { align-items: start; flex-direction: column; gap: 28px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-large { grid-column: auto; }
  .project-large .project-image, .project-image { min-height: 420px; }
  .timeline article { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 540px) {
  h1 { font-size: clamp(3.2rem, 16vw, 4.5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-visual { min-height: 380px; overflow: hidden; }
  .portrait-placeholder { width: 82%; }
  .section { padding-block: 92px; }
  .project-meta { grid-template-columns: 1fr; gap: 10px; }
  .contact footer { align-items: flex-start; flex-direction: column; }
}
