:root {
  --paper: #f3eee4;
  --ink: #171411;
  --ink-soft: #4a433c;
  --navy: #102a43;
  --copper: #b85c38;
  --line: rgba(23, 20, 17, 0.12);
  --max: 1180px;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Outfit", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 12px;
  padding: 8px 0;
  padding-top: max(8px, env(safe-area-inset-top));
}
.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 60;
}
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 60;
}
.nav-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease, top .2s ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 26px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
#site-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
#site-nav a { padding: 8px 0; }
#site-nav a:hover { color: var(--ink); }
.hero {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px;
  align-items: end; padding: 72px 0 56px;
}
.kicker {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--copper); font-weight: 600; margin: 0 0 16px;
}
h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 20px;
  text-wrap: balance;
}
.lede { font-size: 20px; color: var(--ink-soft); max-width: 38ch; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
}
.btn.primary { background: var(--navy); color: #f6f1e8; }
.btn.ghost { border-color: var(--line); background: transparent; }
.portrait {
  aspect-ratio: 4/5;
  border-radius: 4px 48px 4px 4px;
  object-fit: cover;
  width: 100%;
  box-shadow: 24px 24px 0 var(--navy);
}
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 36px); font-weight: 500; margin: 0; letter-spacing: -0.03em;
}
.section-head p { margin: 0; color: var(--ink-soft); max-width: 42ch; }
.featured {
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 32px;
  background: var(--navy); color: #f6f1e8; padding: 28px; border-radius: 8px;
}
.featured img {
  width: 100%; height: 420px; object-fit: cover; object-position: top; border-radius: 4px; background: #0b1c2c;
}
.tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c9a227; font-weight: 700; }
.featured h3 { font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); margin: 10px 0 12px; font-weight: 500; letter-spacing: -0.03em; }
.featured p { color: #d9e2ec; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.meta span {
  border: 1px solid rgba(255,255,255,.18); padding: 4px 10px; border-radius: 999px; font-size: 12px;
}
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 100%;
}
.card img { height: 220px; width: 100%; object-fit: cover; background: #ddd; }
.card .pad { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-family: var(--serif); font-size: 24px; margin: 0; font-weight: 500; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--copper); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  padding: 22px; border-top: 2px solid var(--navy); background: #fff; border-radius: 0 0 8px 8px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line);
}
.service h3 { font-family: var(--serif); margin: 0 0 8px; font-size: 22px; font-weight: 500; }
.service p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.contact {
  background: var(--ink); color: var(--paper); padding: 56px; border-radius: 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.contact h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 36px); margin: 0 0 8px; font-weight: 500; }
.contact p { margin: 0; color: #d6cbb8; }
.contact a.btn { background: var(--copper); color: #fff; word-break: break-all; }
footer {
  padding: 28px 0 48px; font-size: 13px; color: var(--ink-soft);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.case-hero { padding: 48px 0 8px; }
.case-hero h1 { font-size: clamp(32px, 5vw, 60px); }
.case-hero .lede { max-width: 52ch; }
.shots { display: grid; gap: 18px; }
.shots img { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.shots.pair { grid-template-columns: 1.4fr .7fr; }
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--serif); font-size: 28px; font-weight: 500; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); }
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 20px auto 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.fact {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: 0; }
.fact b {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.fact span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.browser {
  background: #1b1b1b; border-radius: 10px; overflow: hidden; border: 1px solid #111;
}
.browser-bar { height: 28px; background: #2a2a2a; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #555; }
.dot:nth-child(1) { background: #ff5f57; }
.dot:nth-child(2) { background: #febc2e; }
.dot:nth-child(3) { background: #28c840; }
.browser img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .site-header { backdrop-filter: none; background: var(--paper); }
  .nav-toggle { display: block; }
  #site-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 40;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 28px;
    font-family: var(--serif);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open #site-nav { opacity: 1; pointer-events: auto; }
  #site-nav a { min-height: 52px; display: flex; align-items: center; }
  .hero, .featured, .grid, .services, .about, .shots.pair { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { border-bottom: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-last-child(-n+2) { border-bottom: 0; }
  .hero { padding: 28px 0 40px; gap: 28px; }
  .portrait {
    max-width: 220px;
    box-shadow: 10px 10px 0 var(--navy);
  }
  .lede { font-size: 17px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  section { padding: 48px 0; }
  .featured { padding: 18px; gap: 18px; }
  .featured img { height: 200px; }
  .card img { height: 180px; }
  .contact { flex-direction: column; align-items: flex-start; padding: 28px; }
  .contact a.btn { width: 100%; }
}

@media (max-width: 560px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:nth-child(2n) { border-right: 0; }
  .fact:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .hero-actions .btn { flex: 1; }
  .portrait { max-width: 180px; }
  .case-hero { padding: 28px 0 8px; }
}
