/* ============================================================
   Todd Michael Design — Stylesheet
   Extracted from the design prototype.
   ============================================================ */

:root {
  --ivory: #F5F1EA;
  --ivory-2: #EEE7DC;
  --paper: #FBF8F2;
  --ink: #1C1B18;
  --ink-soft: #3A3631;
  --stone: #6B6157;
  --stone-light: #A9A098;
  --clay: #9B6B4D;
  --clay-deep: #7A4F36;
  --rule: #DDD4C5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

.serif {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Skip link — a11y improvement */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ivory);
  padding: 12px 20px;
  z-index: 100;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.skip-link:focus { left: 0; }

/* ---- Nav ---- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: rgba(251, 248, 242, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--rule); }

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand .tm { font-style: italic; }
.brand .dot {
  width: 4px; height: 4px;
  background: var(--clay);
  border-radius: 50%;
  display: inline-block;
  transform: translateY(-3px);
}
.brand-sub {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--stone);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-links a {
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--clay);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--ink); }

/* Hamburger — hidden on desktop, shown on phones (see phone breakpoint) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin: -10px -10px -10px 0;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  position: absolute;
  left: 9px;
  transition: transform 0.25s, opacity 0.25s, top 0.25s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav.open .nav-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ---- Page framework ---- */
main { padding-top: 72px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.wrap-narrow { max-width: 1080px; margin: 0 auto; padding: 0 48px; }
section.wrap, section.wrap-narrow { padding-top: 120px; padding-bottom: 120px; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 400;
}
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.hero-left {
  padding: 96px 56px 72px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero h1 {
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.018em;
  font-weight: 300;
  max-width: 10ch;
}
.hero h1 em { font-style: italic; color: var(--clay); font-weight: 400; }
.hero-tag {
  max-width: 42ch;
  font-size: 15px;
  color: var(--stone);
  margin-top: 36px;
  line-height: 1.7;
}
.hero-meta {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}
.hero-meta b {
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: none;
}
.hero-right {
  position: relative;
  min-height: 600px;
  overflow: hidden;
}
.hero-caption {
  position: absolute;
  left: 32px;
  bottom: 28px;
  color: var(--ivory);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  mix-blend-mode: difference;
}
.hero-caption b {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  display: block;
  margin-top: 6px;
}

/* ---- Photography ---- */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--ivory-2) center/cover no-repeat;
  background-image: var(--bg);
  width: 100%;
  height: 100%;
}
.photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(20, 18, 14, 0.18) 100%);
  pointer-events: none;
}

/* ---- Sections ---- */
section { padding: 120px 0; }

.section-label {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
}
.section-label .num {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--clay);
  font-size: 18px;
}
.section-label .title {
  flex: 1;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
}
.section-label .link {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.section-label .link:hover,
.section-label .link:focus-visible {
  color: var(--clay);
  border-color: var(--clay);
}

/* ---- Philosophy block ---- */
.philo {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 120px;
  align-items: start;
}
.philo h2 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  max-width: 14ch;
}
.philo h2 em { font-style: italic; color: var(--clay); }
.philo-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 56ch;
}
.philo-body p + p { margin-top: 1.2em; }
.philo-sig {
  margin-top: 40px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--clay-deep);
}
.philo-sig small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 6px;
}

/* ---- Featured projects ---- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 24px;
}
.feat { display: block; }
.feat .ph-wrap { position: relative; overflow: hidden; }
.feat .ph-wrap .photo { transition: transform 0.9s cubic-bezier(.2, .6, .2, 1); }
.feat:hover .ph-wrap .photo,
.feat:focus-visible .ph-wrap .photo { transform: scale(1.03); }
.feat .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
}
.feat .meta .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
}
.feat .meta .loc {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}
.feat .meta .cat {
  font-size: 11px;
  color: var(--stone);
  margin-top: 4px;
}

.feat.size-lg { grid-column: span 7; }
.feat.size-lg .photo { aspect-ratio: 4 / 3; }
.feat.size-md { grid-column: span 5; margin-top: 80px; }
.feat.size-md .photo { aspect-ratio: 3 / 4; }
.feat.size-sq { grid-column: span 4; }
.feat.size-sq .photo { aspect-ratio: 1 / 1; }
.feat.size-wide { grid-column: span 8; margin-top: 60px; }
.feat.size-wide .photo { aspect-ratio: 16 / 10; }

/* ---- Split feature ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--ivory);
}
.split-img { min-height: 680px; }
.split-txt {
  padding: 120px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-txt .eyebrow { margin-bottom: 24px; }
.split-txt h2 {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.08;
  max-width: 14ch;
  margin-bottom: 32px;
}
.split-txt h2 em { font-style: italic; color: var(--clay); }
.split-txt p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 16px;
}
.split-txt .cta {
  margin-top: 40px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  align-self: flex-start;
  transition: color 0.2s, border-color 0.2s;
}
.split-txt .cta:hover,
.split-txt .cta:focus-visible {
  color: var(--clay);
  border-color: var(--clay);
}

/* ---- Press strip ---- */
.press {
  padding: 60px 0;
  background: var(--ivory-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.press-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.press-lab {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
}
.press-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* ---- Testimonial ---- */
.quote {
  background: var(--ink);
  color: var(--ivory);
  padding: 140px 48px;
  text-align: center;
}
.quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 auto;
  max-width: 22ch;
  font-weight: 300;
}
.quote blockquote em { color: var(--clay); font-style: italic; }
.quote cite {
  display: block;
  margin-top: 48px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone-light);
}
.quote cite b {
  color: var(--ivory);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

/* ---- About page ---- */
.about-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  padding: 80px 0 60px;
  align-items: end;
}
.about-hero h1 {
  font-size: clamp(52px, 6.5vw, 92px);
  line-height: 1;
  letter-spacing: -0.018em;
  max-width: 12ch;
}
.about-hero h1 em { font-style: italic; color: var(--clay); }
.about-hero .right {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-left: auto;
}

.portrait-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin: 80px 0 120px;
}
.portrait-row .photo { aspect-ratio: 3 / 4; }
.portrait-row .photo.tall { aspect-ratio: 3 / 5; }
.portrait-row .col {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 20px;
}
.portrait-row .col.offset { padding-top: 80px; }
.portrait-cap {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}

.about-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
}
.about-body h2 {
  font-size: 36px;
  line-height: 1.1;
  max-width: 12ch;
}
.about-body h2 em { font-style: italic; color: var(--clay); }
.about-body .narrative p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 1.4em;
  max-width: 60ch;
}
.about-body .narrative p.lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 1.6em;
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid var(--rule);
}
.svc .no {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--clay);
  font-size: 18px;
}
.svc h3 { font-size: 28px; margin: 14px 0 16px; }
.svc p { font-size: 14px; line-height: 1.7; color: var(--stone); }

/* Process */
.process { margin-top: 100px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.proc-step {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--rule);
}
.proc-step:last-child {
  border-right: 0;
  padding-right: 0;
}
.proc-step .n {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--clay);
  font-size: 16px;
}
.proc-step h4 { font-size: 24px; margin: 12px 0 10px; }
.proc-step p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--stone);
  margin: 0;
}

/* ---- Portfolio index ---- */
.port-hero {
  padding: 80px 0 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.port-hero h1 {
  font-size: clamp(52px, 6.5vw, 92px);
  line-height: 1;
  letter-spacing: -0.018em;
}
.port-hero h1 em { font-style: italic; color: var(--clay); }
.port-hero .r {
  font-size: 15px;
  line-height: 1.75;
  color: var(--stone);
  max-width: 44ch;
  margin-left: auto;
}

.port-filters {
  display: flex;
  gap: 4px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.port-filters button {
  background: none;
  border: 0;
  padding: 8px 18px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.port-filters button.active {
  background: var(--ink);
  color: var(--ivory);
}
.port-filters button:hover:not(.active),
.port-filters button:focus-visible:not(.active) { color: var(--ink); }
.port-count {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  align-self: center;
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px 48px;
}
.port-card { display: block; }
.port-card .photo {
  aspect-ratio: 4 / 3;
  transition: transform 0.9s cubic-bezier(.2, .6, .2, 1);
}
.port-card:hover .photo,
.port-card:focus-visible .photo { transform: scale(1.02); }
.port-card .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  gap: 20px;
}
.port-card .name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-style: italic;
}
.port-card .loc {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}
.port-card .sub {
  font-size: 13px;
  color: var(--stone);
  margin-top: 4px;
}
.port-card.alt { margin-top: 60px; }

.port-empty {
  grid-column: span 2;
  padding: 80px 0;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--stone);
}

/* ---- Project detail ---- */
.pd-back {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 12px 0;
  display: inline-block;
  transition: color 0.2s;
}
.pd-back:hover,
.pd-back:focus-visible { color: var(--clay); }

.pd-hero { padding: 40px 0 80px; }
.pd-title {
  font-size: clamp(60px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.018em;
  max-width: 14ch;
}
.pd-title em { font-style: italic; color: var(--clay); }
.pd-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.pd-meta dt {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
}
.pd-meta dd {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
}
.pd-hero-img {
  aspect-ratio: 16 / 9;
  margin-top: 48px;
}

.pd-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  padding: 100px 0;
}
.pd-intro h2 {
  font-size: 36px;
  line-height: 1.1;
  max-width: 12ch;
}
.pd-intro h2 em { font-style: italic; color: var(--clay); }
.pd-intro p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 1.4em;
}
.pd-intro p.lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1.4em;
}

.pd-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-bottom: 80px;
}
.pd-gallery .g.full { grid-column: span 12; }
.pd-gallery .g.full .photo { aspect-ratio: 16 / 9; }
.pd-gallery .g.two-a { grid-column: span 7; }
.pd-gallery .g.two-a .photo { aspect-ratio: 4 / 3; }
.pd-gallery .g.two-b { grid-column: span 5; margin-top: 80px; }
.pd-gallery .g.two-b .photo { aspect-ratio: 3 / 4; }
.pd-gallery .g.half { grid-column: span 6; }
.pd-gallery .g.half .photo { aspect-ratio: 4 / 3; }
.pd-gallery .pull {
  grid-column: 3 / span 8;
  text-align: center;
  padding: 60px 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.3;
  font-style: italic;
  color: var(--ink);
  max-width: 24ch;
  margin: 40px auto;
}
.pd-gallery .pull em { color: var(--clay); }
.pd-cap {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 10px;
}

.pd-next {
  border-top: 1px solid var(--rule);
  padding: 80px 0 120px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.pd-next .l {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
}
.pd-next .n {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-style: italic;
  transition: color 0.2s;
}
.pd-next .n:hover,
.pd-next .n:focus-visible { color: var(--clay); }
.pd-next .n .arr {
  font-style: normal;
  margin-left: 16px;
  color: var(--clay);
}

/* ---- Contact ---- */
.contact-hero {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
}
.contact-hero h1 {
  font-size: clamp(52px, 6.5vw, 92px);
  line-height: 1;
  letter-spacing: -0.018em;
  max-width: 12ch;
}
.contact-hero h1 em { font-style: italic; color: var(--clay); }
.contact-hero .r {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-left: auto;
}

.contact-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--rule);
  padding-bottom: 120px;
}
.contact-info dl { margin: 0; }
.contact-info dt {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 32px;
  margin-bottom: 6px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
}
.contact-info dd.plain {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-form .full { grid-column: span 2; }
.field {
  display: flex;
  flex-direction: column;
}
.field label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  font-weight: 300;
  transition: border-color 0.2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: var(--clay); }
.field textarea { resize: vertical; min-height: 120px; }

.submit {
  grid-column: span 2;
  justify-self: start;
  margin-top: 12px;
  background: var(--ink);
  color: var(--ivory);
  padding: 16px 36px;
  border: 0;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.submit:hover,
.submit:focus-visible { background: var(--clay-deep); }
.submit.sent { background: var(--clay); }

/* ---- Footer ---- */
footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 100px 48px 40px;
}
.foot {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.foot h4 {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone-light);
  font-weight: 500;
  margin-bottom: 20px;
}
.foot a {
  display: block;
  color: var(--ivory);
  font-size: 14px;
  padding: 5px 0;
  font-weight: 300;
  transition: color 0.2s;
}
.foot a:hover,
.foot a:focus-visible { color: var(--clay); }
.foot .brand-f {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.foot .brand-f em { font-style: italic; color: var(--clay); }
.foot .blurb {
  font-size: 14px;
  line-height: 1.7;
  color: var(--stone-light);
  max-width: 36ch;
}
.foot-bottom {
  max-width: 1440px;
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-light);
}

/* ---- Page transition ---- */
.page { animation: pageIn 0.5s cubic-bezier(.2, .6, .2, 1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  main { padding-top: 64px; }
  .nav-links { gap: 16px; font-size: 10px; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 420px; }
  .hero-left { padding: 56px 20px 40px; }
  .philo,
  .about-hero,
  .port-hero,
  .contact-hero,
  .pd-intro,
  .about-body,
  .contact-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feat-grid,
  .port-grid,
  .services,
  .pd-meta,
  .process-grid,
  .portrait-row {
    grid-template-columns: 1fr 1fr;
  }
  .foot {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding-bottom: 48px;
  }
  .foot > div:first-child { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .split-txt { padding: 60px 24px; }
  .split-img { min-height: 400px; }
  section { padding: 72px 0; }
  section.wrap, section.wrap-narrow { padding-top: 72px; padding-bottom: 72px; }
  .feat.size-lg,
  .feat.size-md,
  .feat.size-sq,
  .feat.size-wide {
    grid-column: span 2;
    margin-top: 0;
  }
  .pd-gallery .g.full,
  .pd-gallery .g.two-a,
  .pd-gallery .g.two-b,
  .pd-gallery .g.half {
    grid-column: span 12;
    margin-top: 0;
  }
  .pd-gallery .pull {
    grid-column: span 12;
    padding: 40px 20px;
    margin: 20px auto;
  }
  footer { padding: 72px 20px 32px; }
  .foot-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .quote { padding: 80px 24px; }
}

/* Phone — hamburger, brand compaction, drop-down nav */
@media (max-width: 640px) {
  .nav { padding: 14px 20px; }
  main { padding-top: 58px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand-sub { display: none; }
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px 20px 20px;
    font-size: 12px;
    letter-spacing: 0.22em;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease, opacity 0.2s, visibility 0.2s;
  }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--clay); }

  .nav.open .nav-links {
    max-height: 60vh;
    opacity: 1;
    visibility: visible;
  }
  .nav.open { border-bottom-color: var(--rule); }
  body.nav-open { overflow: hidden; }
}

/* Honor user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
  .feat .ph-wrap .photo,
  .port-card .photo,
  .nav,
  a,
  button {
    transition: none !important;
  }
  .feat:hover .ph-wrap .photo,
  .port-card:hover .photo { transform: none; }
}
