:root {
  --ink: #161512;
  --paper: #f2eee7;
  --paper-deep: #e6dfd4;
  --white: #fffdfa;
  --moss: #53634f;
  --rust: #9c563c;
  --line: rgba(22, 21, 18, 0.2);
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; max-width: 100%; }
figure, h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

::selection { background: var(--rust); color: var(--white); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
.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;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.25rem;
  padding: 1.25rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(242, 238, 231, 0.94);
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  line-height: 1;
}
.wordmark span {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.1vw, 1.9rem);
  letter-spacing: -0.04em;
}
.wordmark small {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-nav ul { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3.5rem); }
.site-nav a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.3rem;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(22rem, 0.72fr) minmax(35rem, 1.28fr);
  grid-template-rows: minmax(42rem, calc(100vh - 6.25rem));
  min-height: 42rem;
  background: var(--white);
}
.hero-copy {
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: clamp(3rem, 7vw, 7.5rem) var(--gutter);
}
.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero h1,
.portfolio-intro h1 {
  max-width: 10ch;
  margin: clamp(1.5rem, 3vw, 2.5rem) 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 7.4vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.82;
}
h1 em, h2 em { font-weight: 400; }
.hero-intro { max-width: 34ch; font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 2.75rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.8rem 1.3rem;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--rust); }
.button-light { border-color: rgba(255,255,255,0.5); color: var(--white); }
.button-light:hover { background: var(--white); color: var(--ink); }
.text-link {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.8;
}
.text-link span { display: inline-block; margin-left: 0.3rem; transition: transform 180ms ease; }
.text-link:hover span { transform: translate(0.15rem, -0.15rem); }
.hero-image { position: relative; min-height: 100%; overflow: hidden; }
.hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(22, 21, 18, 0.08), transparent 28%);
  pointer-events: none;
}
.hero-image img { height: 100%; object-fit: cover; }
.hero-note {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 1.6rem;
  padding: 0.25rem 0.5rem;
  background: rgba(22,21,18,0.75);
  color: var(--white);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section { padding: clamp(5rem, 10vw, 10rem) var(--gutter); }
.section-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-label span { color: var(--rust); }
.about {
  display: grid;
  grid-template-columns: 0.34fr minmax(17rem, 0.74fr) minmax(25rem, 1fr);
  gap: clamp(2rem, 5vw, 7rem);
  align-items: start;
}
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.about-photo img { height: 100%; object-fit: cover; object-position: 53% center; }
.about-copy { padding-top: clamp(1rem, 5vw, 5rem); }
.about-copy h2,
.section-heading h2,
.contact h2,
.portfolio-cta h2 {
  margin: 1rem 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.98;
}
.about-copy > p:not(.eyebrow) { max-width: 46rem; margin-bottom: 1.15rem; font-size: clamp(1rem, 1.3vw, 1.22rem); }
.about-copy .text-link { margin-top: 1.5rem; }

.work { background: var(--ink); color: var(--white); }
.section-heading {
  display: grid;
  grid-template-columns: 0.6fr 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.section-heading h2 { margin: 0 0 0.6rem; }
.section-heading p { color: rgba(255,255,255,0.64); }
.view-all { align-self: end; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
.work-card {
  position: relative;
  grid-column: span 2;
  display: block;
  height: clamp(25rem, 52vw, 43rem);
  overflow: hidden;
  background: #292724;
}
.work-card-wide { grid-column: span 4; }
.work-card img { height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.75,.25,1); }
.work-card::after {
  position: absolute;
  inset: 35% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
}
.work-card > span {
  position: absolute;
  z-index: 1;
  right: clamp(1.25rem, 3vw, 2.5rem);
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  left: clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.work-card strong { font-family: var(--serif); font-size: clamp(2rem, 3.7vw, 4rem); font-weight: 400; line-height: 1; }
.work-card small { max-width: 15rem; color: rgba(255,255,255,0.78); font-size: 0.72rem; letter-spacing: 0.06em; text-align: right; text-transform: uppercase; }
.work-card:hover img { transform: scale(1.025); }

.contact {
  display: grid;
  grid-template-columns: 0.35fr minmax(25rem, 1fr) minmax(18rem, 0.62fr);
  gap: clamp(2rem, 5vw, 7rem);
  background: var(--moss);
  color: var(--white);
}
.contact h2 { max-width: 10ch; margin-top: 1.2rem; }
.contact-details { align-self: end; }
.contact-details p { max-width: 33rem; color: rgba(255,255,255,0.78); }
.contact-details .button { margin: 2rem 0 1.25rem; }
.phone-link { display: block; width: max-content; border-bottom: 1px solid rgba(255,255,255,0.45); font-size: 0.88rem; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: start;
  gap: 2rem;
  padding: 4.5rem var(--gutter) 2rem;
  background: var(--ink);
  color: var(--white);
}
.wordmark-light { color: var(--white); }
.site-footer > p:not(.copyright) { color: rgba(255,255,255,0.6); }
.footer-links { display: flex; gap: 2rem; font-size: 0.82rem; }
.footer-links a { border-bottom: 1px solid rgba(255,255,255,0.4); }
.copyright { grid-column: 1 / -1; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.5); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto minmax(28rem, 60vh); }
  .hero-copy { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .hero h1 { font-size: clamp(4.2rem, 12vw, 7.5rem); }
  .hero-note { display: none; }
  .about { grid-template-columns: 0.25fr minmax(17rem, 0.65fr) 1fr; gap: 2.5rem; }
  .section-heading { grid-template-columns: 1fr 2fr; }
  .section-heading .view-all { grid-column: 2; justify-self: start; }
  .contact { grid-template-columns: 0.25fr 1fr; }
  .contact-details { grid-column: 2; }
}

@media (max-width: 760px) {
  .site-header { min-height: 5rem; }
  .menu-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    gap: 0.42rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.65rem;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle > span:not(.sr-only) { display: block; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(0.22rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-0.22rem) rotate(-45deg); }
  .site-nav ul {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }
  .site-nav ul.open { opacity: 1; pointer-events: auto; }
  .site-nav a { font-family: var(--serif); font-size: 2.5rem; font-weight: 400; letter-spacing: -0.02em; text-transform: none; }
  .hero { grid-template-rows: auto minmax(20rem, 58vh); min-height: 0; }
  .hero-copy { padding-top: 4rem; padding-bottom: 4rem; }
  .hero h1 { margin: 1.4rem 0 1.8rem; font-size: clamp(3.45rem, 16.5vw, 6rem); }
  .about,
  .section-heading,
  .contact { grid-template-columns: 1fr; }
  .about .section-label { margin-bottom: 0.5rem; }
  .about-photo { max-height: 42rem; }
  .about-copy { padding-top: 1rem; }
  .section-heading .view-all,
  .contact-details { grid-column: auto; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card,
  .work-card-wide { grid-column: auto; height: min(120vw, 38rem); }
  .work-card > span { display: block; }
  .work-card small { display: block; max-width: none; margin-top: 0.6rem; text-align: left; }
  .contact-details { margin-top: 1rem; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { margin-top: 1rem; }
  .copyright { grid-column: auto; }
}

@media (max-width: 420px) {
  .wordmark { gap: 0.45rem; }
  .wordmark small { font-size: 0.5rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .contact-details .button { width: 100%; font-size: 0.65rem; }
}

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