:root {
  --chalk: #ECEBE6;
  --plaster: #E2DFD8;
  --graphite: #262825;
  --stone: #66645D;
  --moss: #4A5640;
  --oak: #A98457;
  --brass: #B39B5E;
  --linen: #D6CFC2;
  --line: #CDC8BE;

  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--graphite);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--graphite);
  color: var(--chalk);
  padding: .5rem .9rem;
  z-index: 10;
}
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.01em; }

/* ---------- top bar ---------- */
.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark { display: block; flex: none; }
.wordmark img { display: block; height: 84px; width: auto; }
.topbar nav { display: flex; gap: clamp(.9rem, 2.4vw, 2rem); }
.topbar nav a {
  text-decoration: none;
  font-size: .95rem;
  color: var(--stone);
}
.topbar nav a:hover { color: var(--graphite); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .wordmark img { height: 62px; }
  .topbar nav { gap: 1.1rem; flex-wrap: wrap; }
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(56px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}

.name {
  font-size: clamp(4.25rem, 10vw, 8.75rem);
  line-height: .86;
  letter-spacing: -0.035em;
}
.name span { display: block; }
.name span + span { padding-left: .55em; }

.role {
  margin: 1.6rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--moss);
}
.lede {
  margin: .5rem 0 0;
  max-width: 30ch;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.5;
}

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-block;
  padding: .85rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--graphite);
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}
.btn-solid { background: var(--graphite); color: var(--chalk); }
.btn-solid:hover { background: var(--moss); border-color: var(--moss); }
.btn-quiet:hover { background: var(--graphite); color: var(--chalk); }

/* hero photo */
.hero-photo { margin: 0; }
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  background: var(--plaster);
}
.hero-photo figcaption {
  margin-top: .6rem;
  font-size: .88rem;
  color: var(--stone);
}
.hero-photo figcaption a { text-decoration: none; }
.hero-photo figcaption a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: develop 1.1s cubic-bezier(.2,.7,.2,1) .15s both; }
  @keyframes develop {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head p { margin: 0; color: var(--stone); max-width: 42ch; }

/* ---------- projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
}
@media (max-width: 700px) { .projects { grid-template-columns: 1fr; } }

.project {
  display: block;
  text-decoration: none;
  color: inherit;
}
.project-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--plaster);
  overflow: hidden;
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s ease;
}
a.project:hover .project-cover img { transform: scale(1.025); }
.project-cover.is-page img { object-fit: contain; object-position: center; }

.project-cover.is-loading::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .project-cover.is-loading::after { animation: none; } }

.project-cover.placeholder {
  display: flex;
  align-items: flex-end;
  padding: 16px 18px;
}
.project-cover.placeholder span { font-size: .9rem; }
.ph-0 { background: #DCD8CF; color: var(--stone); }
.ph-1 { background: linear-gradient(180deg, #8A6A47, #6E5236); color: #F2E9DC; }
.ph-2 { background: var(--moss); color: #E6E8DF; }
.ph-3 { background: var(--linen); color: var(--stone); }

.project-body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 14px;
}
.project-title {
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.2;
}
.project-meta { margin: .2rem 0 0; color: var(--stone); font-size: .95rem; }
.project-action {
  flex: none;
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.project-action.muted { text-decoration: none; color: var(--stone); font-weight: 400; }
a.project:hover .project-action { color: var(--moss); }

.empty {
  margin: 0;
  padding: 40px 0;
  color: var(--stone);
  max-width: 46ch;
}

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem clamp(32px, 6vw, 88px);
}
.about-body { max-width: 62ch; }
.about-body p { margin: 0 0 1.1rem; }
.about-lead {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.4;
}
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.services {
  margin: clamp(28px, 4vw, 48px) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 5vw, 72px);
}
.services > div {
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
}
.services dt {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.25;
}
.services dd { margin: .4rem 0 0; color: var(--stone); max-width: 46ch; }
@media (max-width: 700px) { .services { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact > p { margin: 1rem 0 0; color: var(--stone); max-width: 52ch; }
.contact-email {
  display: inline-block;
  margin-top: clamp(28px, 4vw, 44px);
  font-family: var(--display);
  font-size: clamp(1.9rem, 6vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
  overflow-wrap: anywhere;
}
a.contact-email:hover { color: var(--moss); }
span.contact-email { text-decoration: none; }
.contact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
}
.contact-list span { display: block; color: var(--stone); font-size: .9rem; }
.contact-list a { text-decoration: none; font-size: 1.15rem; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-list .contact-value { color: var(--graphite); font-size: 1.15rem; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--stone);
  font-size: .92rem;
}
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
