:root {
  --ink: #0b0d0e;
  --paper: #f2efe9;
  --mist: #a5bac2;
  --line: rgba(11, 13, 14, .22);
  --side: clamp(1.25rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
img { display: block; width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 99; background: var(--paper); padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4.75rem;
  padding: .9rem var(--side);
  background: rgba(242, 239, 233, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.brand-mark { width: 1.05rem; height: 1.05rem; border: 1px solid currentColor; border-radius: 50%; position: relative; }
.brand-mark::after { content: ""; position: absolute; width: .28rem; height: .28rem; border-radius: 50%; background: var(--mist); inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.75rem); }
nav a { font-size: .8rem; text-decoration: none; text-transform: uppercase; letter-spacing: .12em; }
.nav-lead { border: 1px solid var(--ink); padding: .65rem .85rem; transition: background .2s, color .2s; }
.nav-lead:hover, .nav-lead:focus-visible { background: var(--ink); color: var(--paper); }

.hero { min-height: 100svh; padding: 7rem var(--side) 3rem; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(20rem, .85fr); gap: clamp(2rem, 5vw, 6rem); align-items: end; }
.hero-image-wrap { position: relative; height: calc(100svh - 10rem); min-height: 32rem; overflow: hidden; background: #25292b; }
.hero-image { height: 100%; object-fit: cover; }
.image-index { position: absolute; left: 1rem; bottom: 1rem; margin: 0; padding: .35rem .55rem; color: var(--paper); background: rgba(11, 13, 14, .64); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-copy { padding-bottom: clamp(1rem, 5vh, 5rem); }
.eyebrow { margin: 0 0 1.5rem; font-size: .73rem; letter-spacing: .16em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: .94; letter-spacing: -.045em; }
h1 { font-size: clamp(3.5rem, 7.5vw, 7.6rem); }
h1 em { color: #66818b; font-weight: 400; }
.hero-intro { max-width: 31rem; margin: 2rem 0; font-size: clamp(1rem, 1.25vw, 1.2rem); }
.text-link { display: inline-flex; justify-content: space-between; gap: 2rem; min-width: 14rem; padding: .75rem 0; border-bottom: 1px solid currentColor; text-decoration: none; font-size: .8rem; letter-spacing: .11em; text-transform: uppercase; }

.work-section { padding: 8rem var(--side); }
.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: start; margin-bottom: 5rem; }
.section-heading h2 { max-width: 12ch; font-size: clamp(3rem, 7vw, 7rem); }
.portfolio-grid { column-count: 3; column-gap: clamp(1rem, 2vw, 2rem); }
.portfolio-item { break-inside: avoid; margin: 0 0 clamp(1rem, 2vw, 2rem); }
.image-button { display: block; width: 100%; padding: 0; border: 0; background: #1b2022; cursor: zoom-in; overflow: hidden; }
.image-button img { width: 100%; height: auto; transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.image-button:hover img, .image-button:focus-visible img { transform: scale(1.025); opacity: .88; }

.about-section { padding: 8rem var(--side); background: var(--ink); color: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: clamp(3rem, 8vw, 10rem); align-items: end; }
.about-grid h2 { font-size: clamp(3rem, 6.2vw, 6.8rem); }
.about-copy { max-width: 34rem; }
.about-copy p { font-size: 1.05rem; margin: 0 0 1.25rem; color: rgba(242,239,233,.78); }
.text-link.light { margin-top: 1.5rem; }

.lead-section { padding: 9rem var(--side); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 10vw, 12rem); }
.lead-intro { position: sticky; top: 8rem; align-self: start; }
.lead-intro h2 { font-size: clamp(3.25rem, 6vw, 6.3rem); }
.lead-intro > p:last-child { max-width: 29rem; margin-top: 2rem; }
.contact-email { display: inline-block; margin-top: 1.25rem; padding-bottom: .2rem; border-bottom: 1px solid currentColor; font-size: .86rem; text-decoration: none; }
.lead-form { display: grid; gap: 2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
label { display: grid; gap: .55rem; font-size: .73rem; text-transform: uppercase; letter-spacing: .12em; }
input, textarea, select { width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: .7rem 0; background: transparent; color: var(--ink); font-size: 1rem; text-transform: none; letter-spacing: 0; outline: none; }
textarea { resize: vertical; min-height: 8rem; }
input:focus, textarea:focus, select:focus { border-bottom-width: 2px; }
.submit-button { justify-self: start; min-width: 14rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 1rem 1.15rem; display: flex; justify-content: space-between; gap: 2rem; cursor: pointer; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; transition: background .2s, color .2s; }
.submit-button:hover, .submit-button:focus-visible { background: var(--mist); color: var(--ink); }
.form-note { margin: -.8rem 0 0; color: #596165; font-size: .78rem; }

footer { padding: 2rem var(--side); background: var(--ink); color: var(--paper); border-top: 1px solid rgba(242,239,233,.2); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; }
footer p { margin: 0; }
footer p:last-child { text-align: right; }

dialog { width: min(94vw, 1100px); max-height: 92vh; padding: 0; border: 0; background: transparent; color: white; overflow: visible; }
dialog::backdrop { background: rgba(5, 7, 8, .92); backdrop-filter: blur(10px); }
dialog img { max-height: 86vh; object-fit: contain; }
.close-lightbox { position: absolute; right: 0; bottom: calc(100% + .7rem); border: 0; background: transparent; color: white; cursor: pointer; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 860px) {
  .site-header { min-height: 4.25rem; }
  nav a:not(.nav-lead) { display: none; }
  .hero { min-height: auto; padding-top: 6.2rem; grid-template-columns: 1fr; }
  .hero-image-wrap { height: 64svh; min-height: 28rem; }
  .hero-copy { padding: 0 0 2rem; }
  .section-heading { display: block; }
  .section-heading .eyebrow { margin-bottom: 1rem; }
  .portfolio-grid { column-count: 2; }
  .about-grid, .lead-section { grid-template-columns: 1fr; }
  .lead-intro { position: static; }
  footer { grid-template-columns: 1fr; }
  footer p:last-child { text-align: left; }
}

@media (max-width: 560px) {
  .brand { font-size: .72rem; }
  .nav-lead { padding: .55rem .65rem; }
  .hero-image-wrap { height: 58svh; }
  h1 { font-size: clamp(3.1rem, 15vw, 4.9rem); }
  .work-section, .about-section, .lead-section { padding-top: 6rem; padding-bottom: 6rem; }
  .field-row { grid-template-columns: 1fr; gap: 2rem; }
  .portfolio-grid { column-count: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .image-button img { transition: none; }
}
