:root {
  --bg: #070707;
  --bg-soft: #0c0c0c;
  --panel: #101010;
  --panel-2: #151515;
  --text: #f4f0e7;
  --muted: #aaa59c;
  --muted-2: #77736d;
  --accent: #d6c4a2;
  --line: rgba(255,255,255,.12);
  --line-strong: rgba(255,255,255,.26);
  --shadow: 0 28px 80px rgba(0,0,0,.34);
  --max: 1220px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --header-h: 92px;
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { background: var(--accent); color: #111; }

.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: 999;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--header-h);
  background: linear-gradient(to bottom, rgba(7,7,7,.96), rgba(7,7,7,.78));
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
  backdrop-filter: blur(16px);
}
.site-header.is-scrolled {
  background: rgba(7,7,7,.9);
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}

.nav-wrap {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 220px 1fr 160px;
  align-items: center;
  gap: 24px;
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}
.brand-mark { width: 42px; height: 42px; object-fit: contain; }
.brand-name, .footer-brand span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  letter-spacing: .02em;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 2.8vw, 40px);
  white-space: nowrap;
}
.nav a {
  position: relative;
  padding: 12px 0;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 7px;
  height: 1px;
  background: var(--accent);
  transition: right .22s ease;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="true"] { color: #fff; }
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="true"]::after { right: 0; }

.nav-toggle {
  display: none;
  justify-self: end;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  position: absolute;
  width: 16px;
  height: 1px;
  background: currentColor;
  left: 15px;
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

section { position: relative; scroll-margin-top: calc(var(--header-h) - 1px); }
.section-pad { padding: clamp(92px, 10vw, 150px) 0; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .23em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6.5vw, 88px);
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-filled { background: #f5f1e8; color: #090909; border-color: #f5f1e8; }
.button-filled:hover, .button-filled:focus-visible { background: var(--accent); border-color: var(--accent); }
.button-outline { background: rgba(255,255,255,.015); color: #fff; }
.button-outline:hover, .button-outline:focus-visible { background: #fff; color: #090909; border-color: #fff; }
.button-small { min-height: 44px; padding-inline: 18px; }
.nav-cta { justify-self: end; }

.hero {
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 20%, rgba(214,196,162,.08), transparent 28%),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,.035), transparent 30%),
    var(--bg);
}
.hero-grid {
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 34px);
  padding-bottom: 58px;
  display: grid;
  grid-template-columns: minmax(390px, .92fr) minmax(460px, 1.08fr);
  gap: clamp(50px, 8vw, 112px);
  align-items: center;
}
.hero-photo-wrap { position: relative; min-width: 0; }
.hero-photo-card {
  position: relative;
  height: min(74svh, 780px);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.06), transparent 34%),
    #0c0c0c;
  box-shadow: var(--shadow);
}
.hero-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.24), transparent 32%);
}
.hero-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.hero-photo-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 6px 0;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-copy { position: relative; z-index: 2; padding-bottom: 18px; }
.hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(72px, 9.7vw, 148px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.hero-sub {
  max-width: 620px;
  margin: 34px 0 0;
  color: #c5c0b7;
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 29px);
  line-height: 1.38;
  letter-spacing: -.015em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 52px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-social span { color: var(--accent); }
.hero-social a { border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color .2s ease, border-color .2s ease; }
.hero-social a:hover, .hero-social a:focus-visible { color: #fff; border-color: #fff; }
.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 50%;
  pointer-events: none;
}
.hero-orbit-one { width: 430px; height: 430px; right: -180px; top: 18%; }
.hero-orbit-two { width: 160px; height: 160px; right: 10%; bottom: -80px; border-color: rgba(214,196,162,.1); }
.scroll-cue {
  position: absolute;
  right: max(24px, calc((100vw - var(--max))/2));
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.scroll-cue::after { content: ""; width: 46px; height: 1px; background: var(--line-strong); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .75fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: end;
  margin-bottom: 62px;
}
.section-heading-wide { grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); }
.section-lede-wrap { display: grid; gap: 20px; }
.section-lede {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
}
.text-link {
  width: max-content;
  max-width: 100%;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 5px;
}
.text-link span { color: var(--accent); }

.about { border-top: 1px solid var(--line); background: var(--bg-soft); }
.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, .65fr);
  gap: clamp(40px, 8vw, 120px);
  padding: clamp(38px, 5vw, 68px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,.025), rgba(255,255,255,.008));
}
.about-copy { max-width: 760px; }
.about-copy p { margin: 0 0 22px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.about-copy .about-intro {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.35;
  letter-spacing: -.015em;
}
.about-mark-wrap {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-left: 1px solid var(--line);
  text-align: center;
}
.about-mark-wrap img { width: min(220px, 72%); opacity: .78; }
.about-mark-wrap p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  line-height: 1.35;
}

.portfolio { background: var(--bg); border-top: 1px solid var(--line); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.work-card {
  grid-column: span 4;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #121212, #0d0d0d);
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}
.work-card-large { grid-column: span 8; min-height: 460px; }
.work-card-wide { grid-column: span 8; }
.work-card:hover, .work-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(214,196,162,.5);
  background: linear-gradient(145deg, #161616, #0f0f0f);
}
.work-top { display: flex; justify-content: space-between; align-items: center; }
.work-num, .work-arrow { color: var(--accent); font-family: var(--serif); font-size: 17px; font-style: italic; }
.work-arrow { font-size: 20px; }
.work-label { margin: 0 0 12px; color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.work-card h3 {
  max-width: 700px;
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.work-card p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.services { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service-card {
  min-height: 370px;
  padding: clamp(28px, 3.6vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #0f0f0f;
}
.service-head { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; }
.service-head span { color: var(--accent); font-family: var(--serif); font-size: 18px; font-style: italic; padding-top: 6px; }
.service-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.service-card > p { margin: 28px 0 0 72px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 28px 0 0 72px; padding: 0; }
.service-tags li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c5c0b7;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.services-cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 26px 4px 0;
}
.services-cta p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 21px; font-style: italic; }

.giving {
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 55%, rgba(214,196,162,.055), transparent 26%),
    #080808;
}
.giving-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, .78fr);
  gap: clamp(60px, 10vw, 150px);
  align-items: center;
  min-height: 70vh;
}
.giving-mark {
  position: absolute;
  z-index: 0;
  width: min(48vw, 650px);
  right: -130px;
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  opacity: .045;
  pointer-events: none;
}
.giving-copy { position: relative; z-index: 2; }
.giving-copy > p { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.giving-copy .giving-lead {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.27;
  letter-spacing: -.02em;
}
.giving-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.contact { background: #050505; border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  gap: clamp(52px, 8vw, 112px);
  align-items: center;
}
.contact-copy > p:not(.eyebrow) { max-width: 690px; margin: 32px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 34px; }
.contact-email { color: #d0cbc1; font-size: 13px; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; }
.social-list { margin-top: 54px; border-top: 1px solid var(--line); }
.social-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: #d0cbc1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
  transition: color .2s ease, padding .2s ease;
}
.social-list a span:last-child { color: var(--accent); }
.social-list a:hover, .social-list a:focus-visible { color: #fff; padding-left: 8px; }
.contact-visual {
  position: relative;
  height: min(70vh, 690px);
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #0c0c0c;
}
.contact-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1) contrast(1.03) brightness(.72);
}
.contact-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.56), transparent 46%);
}
.contact-visual-mark {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(6,6,6,.7);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
}
.contact-visual-mark img { width: 58px; }

.site-footer { border-top: 1px solid var(--line); background: #030303; }
.footer-inner {
  min-height: 126px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.footer-brand img { width: 42px; height: 42px; }
.footer-brand span { color: #ddd8cf; font-size: 15px; text-transform: none; letter-spacing: .02em; }
.footer-inner p { margin: 0; text-align: center; }
.back-top { justify-self: end; color: #b8b3aa; }

@media (max-width: 1040px) {
  :root { --header-h: 82px; }
  .nav-wrap { grid-template-columns: auto 1fr auto; }
  .brand-name { display: none; }
  .nav { gap: 18px; }
  .hero-grid { grid-template-columns: minmax(320px, .9fr) minmax(390px, 1.1fr); gap: 46px; }
  .hero-copy h1 { font-size: clamp(68px, 10vw, 112px); }
  .section-heading, .section-heading-wide { grid-template-columns: 1fr .78fr; gap: 42px; }
  .about-panel { grid-template-columns: 1fr .55fr; gap: 42px; }
  .work-card { grid-column: span 6; }
  .work-card-large, .work-card-wide { grid-column: span 6; }
  .contact-grid { grid-template-columns: 1fr .7fr; gap: 50px; }
}

@media (max-width: 820px) {
  :root { --header-h: 76px; }
  .shell { width: min(calc(100% - 34px), var(--max)); }
  .nav-wrap { grid-template-columns: 1fr auto; }
  .brand-name { display: inline; }
  .nav-toggle { display: block; position: relative; margin-right: 10px; }
  .nav-cta { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: grid;
    gap: 0;
    padding: 18px 24px 28px;
    background: rgba(7,7,7,.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .24s ease, opacity .24s ease;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
  .nav a::after { display: none; }

  .hero-grid {
    min-height: auto;
    padding-top: calc(var(--header-h) + 38px);
    padding-bottom: 92px;
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .hero-photo-wrap { width: min(100%, 610px); margin-inline: auto; order: 1; }
  .hero-photo-card { height: min(72svh, 680px); min-height: 500px; }
  .hero-copy { order: 2; max-width: 700px; }
  .hero-copy h1 { font-size: clamp(68px, 18vw, 112px); }
  .hero-sub { max-width: 620px; }
  .hero-social { margin-top: 38px; }
  .scroll-cue { display: none; }

  .section-heading, .section-heading-wide { grid-template-columns: 1fr; gap: 28px; margin-bottom: 44px; }
  .section-lede { max-width: 680px; }
  .about-panel { grid-template-columns: 1fr; padding: 34px; }
  .about-mark-wrap { min-height: 240px; border-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .about-mark-wrap img { width: 170px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .work-card, .work-card-large, .work-card-wide { grid-column: auto; min-height: 360px; }
  .work-card-large { grid-column: 1 / -1; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .giving-grid { grid-template-columns: 1fr; min-height: 0; gap: 46px; }
  .giving-copy { max-width: 720px; }
  .giving-mark { width: 76vw; right: -30vw; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-visual { height: 580px; width: min(100%, 560px); }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; gap: 16px; padding: 28px 0; text-align: center; }
  .back-top { justify-self: center; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 26px), var(--max)); }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 16px; }
  .hero-grid { padding-top: calc(var(--header-h) + 24px); gap: 34px; }
  .hero-photo-card { height: 58svh; min-height: 430px; border-radius: 26px; }
  .hero-photo-caption { padding-inline: 4px; }
  .hero-copy h1 { font-size: clamp(62px, 19vw, 92px); }
  .hero-sub { margin-top: 26px; font-size: 19px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-social { gap: 12px 16px; }
  .section-pad { padding: 82px 0; }
  .display { font-size: clamp(43px, 15vw, 66px); }
  .about-panel { padding: 26px; border-radius: 24px; }
  .about-copy .about-intro { font-size: 25px; }
  .about-copy p { font-size: 14px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .work-card, .work-card-large, .work-card-wide { grid-column: 1; min-height: 330px; padding: 28px; }
  .work-card h3 { font-size: 31px; }
  .service-card { padding: 28px; }
  .service-head { grid-template-columns: 38px 1fr; gap: 10px; }
  .service-head h3 { font-size: 30px; }
  .service-card > p, .service-tags { margin-left: 48px; }
  .services-cta { align-items: stretch; flex-direction: column; }
  .services-cta .button { width: 100%; }
  .giving-actions { display: grid; }
  .giving-actions .button { width: 100%; }
  .contact-actions { align-items: flex-start; flex-direction: column; }
  .contact-actions .button { width: 100%; }
  .contact-visual { min-height: 460px; height: 62svh; border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================
   Responsive refinement + social icons
   ========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --max: 1440px;
}

.shell {
  width: min(calc(100% - clamp(28px, 4vw, 64px)), var(--max));
}

/* Slightly quieter header typography. */
.brand-name,
.footer-brand span {
  font-size: 16px;
}

.nav a {
  font-size: 9px;
  letter-spacing: .16em;
}

/* Reduce the hero heading while keeping it editorial. */
.hero-copy h1 {
  font-size: clamp(62px, 7.9vw, 126px);
  line-height: .82;
}

.hero-grid > *,
.section-heading > *,
.about-panel > *,
.giving-grid > *,
.contact-grid > * {
  min-width: 0;
}

.hero,
.hero-grid {
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-grid {
  grid-template-columns: minmax(320px, .92fr) minmax(380px, 1.08fr);
  gap: clamp(36px, 6vw, 96px);
}

.hero-photo-card {
  height: min(72dvh, 760px);
  min-height: clamp(460px, 58dvh, 560px);
}

.hero-sub {
  font-size: clamp(18px, 1.65vw, 25px);
  max-width: 590px;
}

.hero-social {
  gap: 12px 20px;
}

.hero-social-label {
  color: var(--accent);
}

.social-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}

.social-link-inline img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  opacity: .8;
  transition: opacity .2s ease, transform .2s ease;
}

.social-link-inline:hover,
.social-link-inline:focus-visible {
  color: #fff;
  border-color: rgba(255,255,255,.7);
}

.social-link-inline:hover img,
.social-link-inline:focus-visible img {
  opacity: 1;
  transform: translateY(-1px);
}

.social-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.social-name img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
  opacity: .82;
}

.contact-email {
  overflow-wrap: anywhere;
}

/* Wide desktop / ultrawide monitors */
@media (min-width: 1600px) {
  :root { --max: 1520px; }

  .nav-wrap {
    grid-template-columns: minmax(190px, 240px) 1fr minmax(145px, 170px);
  }

  .hero-grid {
    grid-template-columns: minmax(430px, .92fr) minmax(500px, 1.08fr);
    gap: clamp(72px, 7vw, 128px);
  }

  .hero-photo-card {
    height: min(76dvh, 820px);
    max-height: 820px;
  }

  .hero-copy h1 {
    font-size: clamp(92px, 7.2vw, 132px);
  }
}

/* Standard laptops: keep the first screen balanced without clipping. */
@media (max-width: 1280px) {
  :root { --max: 1180px; }

  .nav-wrap {
    grid-template-columns: minmax(150px, 190px) 1fr minmax(130px, 150px);
    gap: 18px;
  }

  .nav {
    gap: clamp(14px, 2vw, 26px);
  }

  .hero-grid {
    grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr);
    gap: clamp(34px, 5vw, 64px);
  }

  .hero-copy h1 {
    font-size: clamp(60px, 8vw, 108px);
  }
}

/* Short desktop/laptop screens. */
@media (min-width: 821px) and (max-height: 760px) {
  :root { --header-h: 76px; }

  .hero-grid {
    padding-top: calc(var(--header-h) + 22px);
    padding-bottom: 30px;
  }

  .hero-photo-card {
    height: min(68dvh, 570px);
    min-height: 410px;
  }

  .hero-copy h1 {
    font-size: clamp(58px, 7.2vw, 96px);
  }

  .hero-sub {
    margin-top: 22px;
    font-size: clamp(17px, 1.45vw, 21px);
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-social {
    margin-top: 30px;
  }

  .scroll-cue {
    bottom: 16px;
  }
}

/* Tablet / compact desktop */
@media (max-width: 1040px) {
  .brand-name {
    font-size: 15px;
  }

  .nav a {
    font-size: 8.5px;
    letter-spacing: .14em;
  }

  .hero-copy h1 {
    font-size: clamp(58px, 9vw, 94px);
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(calc(100% - clamp(28px, 5vw, 42px)), var(--max));
  }

  .nav a {
    font-size: 10px;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    padding-top: calc(var(--header-h) + clamp(24px, 6vw, 42px));
    padding-bottom: clamp(72px, 12vw, 104px);
    gap: clamp(30px, 7vw, 48px);
  }

  .hero-photo-wrap {
    width: min(100%, 600px);
  }

  .hero-photo-card {
    height: clamp(460px, 70svh, 680px);
    min-height: 0;
  }

  .hero-copy h1 {
    font-size: clamp(60px, 15vw, 94px);
    line-height: .84;
  }

  .hero-social {
    row-gap: 14px;
  }

  .portfolio-grid {
    align-items: stretch;
  }

  .work-card,
  .work-card-large,
  .work-card-wide {
    min-width: 0;
  }

  .contact-visual {
    width: min(100%, 620px);
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .section-heading,
  .section-heading-wide {
    gap: 22px;
  }

  .section-lede,
  .contact-copy > p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-photo-card {
    height: clamp(420px, 66svh, 590px);
  }

  .hero-copy h1 {
    font-size: clamp(56px, 16vw, 82px);
  }

  .hero-sub {
    font-size: clamp(17px, 4.6vw, 21px);
  }

  .hero-social {
    align-items: flex-start;
  }

  .hero-social-label {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 14px;
  }

  .hero-photo-card {
    height: clamp(390px, 62svh, 520px);
    min-height: 0;
  }

  .hero-copy h1 {
    font-size: clamp(54px, 17vw, 76px);
  }

  .display {
    font-size: clamp(40px, 13.5vw, 60px);
  }

  .service-card > p,
  .service-tags {
    margin-left: 0;
  }

  .service-card > p {
    margin-top: 24px;
  }

  .service-tags {
    margin-top: 24px;
  }

  .contact-visual {
    width: 100%;
    height: clamp(430px, 66svh, 560px);
    min-height: 0;
  }
}

/* Small phones */
@media (max-width: 420px) {
  :root {
    --header-h: 70px;
    --radius-lg: 24px;
    --radius-md: 20px;
  }

  .shell {
    width: calc(100% - 24px);
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 13px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .nav-toggle span:not(.sr-only) {
    left: 13px;
  }

  .nav-toggle span:nth-child(1) { top: 17px; }
  .nav-toggle span:nth-child(2) { top: 23px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1),
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 20px; }

  .hero-grid {
    padding-top: calc(var(--header-h) + 18px);
    gap: 26px;
  }

  .hero-photo-card {
    height: clamp(350px, 59svh, 470px);
    border-radius: 22px;
  }

  .hero-photo-caption {
    font-size: 7px;
    letter-spacing: .14em;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 16.5vw, 68px);
  }

  .hero-sub {
    margin-top: 20px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-social {
    margin-top: 32px;
    gap: 12px 14px;
  }

  .social-link-inline {
    font-size: 8px;
  }

  .section-pad {
    padding: 70px 0;
  }

  .display {
    font-size: clamp(38px, 13vw, 54px);
  }

  .about-panel,
  .work-card,
  .work-card-large,
  .work-card-wide,
  .service-card {
    padding: 22px;
  }

  .about-copy .about-intro {
    font-size: 22px;
  }

  .work-card,
  .work-card-large,
  .work-card-wide {
    min-height: 300px;
  }

  .work-card h3,
  .service-head h3 {
    font-size: 27px;
  }

  .service-head {
    grid-template-columns: 30px 1fr;
  }

  .services-cta p {
    font-size: 19px;
  }

  .giving-copy .giving-lead {
    font-size: 25px;
  }

  .social-list a {
    padding: 16px 0;
    font-size: 9px;
  }

  .contact-visual {
    height: clamp(390px, 60svh, 500px);
  }

  .footer-inner {
    font-size: 8px;
  }
}

/* Very small legacy phone widths */
@media (max-width: 340px) {
  .brand-name {
    display: none;
  }

  .hero-copy h1 {
    font-size: 47px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .button {
    padding-inline: 16px;
  }
}

/* =========================================================
   Mobile hero/header correction
   Ensures the portrait is followed by hero copy and keeps
   the navigation control anchored to the far-right edge.
   ========================================================= */
@media (max-width: 900px) {
  /* Header: brand left, menu control hard-right. */
  .site-header .nav-wrap {
    display: flex;
    width: 100%;
    min-height: var(--header-h);
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .site-header .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .site-header .nav-toggle {
    display: block;
    position: relative;
    flex: 0 0 auto;
    margin-left: auto;
    justify-self: auto;
  }

  .site-header .nav-cta {
    display: none;
  }

  /* Keep the expanded menu aligned to the right instead of spanning
     awkwardly across the page. */
  .site-header .nav {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    right: clamp(12px, 3vw, 24px);
    left: auto;
    width: min(320px, calc(100vw - 24px));
    display: grid;
    gap: 0;
    padding: 10px 18px 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(7,7,7,.98);
    box-shadow: 0 22px 60px rgba(0,0,0,.4);
    backdrop-filter: blur(18px);
    transform: translateY(-14px) scale(.98);
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .site-header .nav.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header .nav a {
    width: 100%;
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    text-align: left;
  }

  .site-header .nav a:last-child {
    border-bottom: 0;
  }

  .site-header .nav a::after {
    display: none;
  }

  /* Hero: use a true vertical flow on compact screens. This prevents
     the desktop two-column grid from leaking horizontally. */
  .hero {
    overflow: hidden;
  }

  .hero .hero-grid {
    display: flex;
    flex-direction: column;
    width: min(calc(100% - clamp(28px, 5vw, 42px)), var(--max));
    min-height: auto;
    padding-top: calc(var(--header-h) + clamp(24px, 6vw, 42px));
    padding-bottom: clamp(72px, 12vw, 104px);
    gap: clamp(28px, 6vw, 42px);
    align-items: stretch;
  }

  .hero .hero-photo-wrap {
    order: 1;
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
    min-width: 0;
  }

  .hero .hero-copy {
    order: 2;
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
    min-width: 0;
    padding-bottom: 0;
  }

  .hero .hero-copy h1,
  .hero .hero-sub,
  .hero .hero-actions,
  .hero .hero-social {
    max-width: 100%;
  }

  .hero .hero-copy h1 {
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (max-width: 560px) {
  .site-header .nav-wrap {
    gap: 10px;
  }

  .site-header .brand {
    max-width: calc(100% - 58px);
  }

  .site-header .brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .nav {
    right: 12px;
    width: min(300px, calc(100vw - 24px));
  }

  .hero .hero-grid {
    width: calc(100% - 24px);
    gap: 24px;
  }

  .hero .hero-photo-wrap,
  .hero .hero-copy {
    max-width: none;
  }

  .hero .hero-photo-card {
    width: 100%;
  }

  .hero .hero-copy h1 {
    font-size: clamp(50px, 17vw, 76px);
    line-height: .86;
  }

  .hero .hero-sub {
    width: 100%;
  }
}
/* =========================================================
   Selected work image gallery
   ========================================================= */

.portfolio-gallery {
  display: grid;
  gap: 14px;
}

.portfolio-gallery-lead {
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(0, 1.08fr);
  gap: 14px;
  align-items: stretch;
}

.portfolio-gallery-stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.portfolio-gallery-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portfolio-shot {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #0a0a0a;
  box-shadow: 0 18px 50px rgba(0,0,0,.2);
}

.portfolio-gallery-stack .portfolio-shot,
.portfolio-gallery-row .portfolio-shot {
  aspect-ratio: 16 / 9;
}

.portfolio-shot-poster {
  aspect-ratio: 3 / 4;
  background: #050505;
}

.portfolio-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .45s cubic-bezier(.2,.75,.2,1), filter .35s ease;
}

.portfolio-shot-poster img {
  object-fit: contain;
}

.portfolio-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.12), transparent 28%);
}

@media (hover: hover) and (pointer: fine) {
  .portfolio-shot:hover img {
    transform: scale(1.018);
  }
}

@media (max-width: 900px) {
  .portfolio-gallery-lead {
    grid-template-columns: 1fr;
  }

  .portfolio-shot-poster {
    width: min(100%, 520px);
    justify-self: center;
  }

  .portfolio-gallery-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .portfolio-gallery-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-gallery-row .portfolio-shot:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 7.5;
  }
}

@media (max-width: 600px) {
  .portfolio-gallery,
  .portfolio-gallery-lead,
  .portfolio-gallery-stack,
  .portfolio-gallery-row {
    gap: 10px;
  }

  .portfolio-gallery-stack,
  .portfolio-gallery-row {
    grid-template-columns: 1fr;
  }

  .portfolio-gallery-row .portfolio-shot:last-child {
    grid-column: auto;
    aspect-ratio: 16 / 9;
  }

  .portfolio-shot {
    border-radius: 20px;
  }

  .portfolio-shot-poster {
    width: min(100%, 440px);
  }
}



/* =========================================================
   Section heading refinement
   ========================================================= */

/* All section headings except the main hero */
.display {
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: none;
}

/* Contact closing statement gets natural capitalization */
#contact-title {
  text-transform: none;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .display {
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.04;
  }

  #contact-title {
    font-size: clamp(30px, 7.6vw, 36px);
    line-height: 1.1;
  }
}
