:root {
  --paper: #f5f5f3;
  --ink: #171716;
  --muted: #666663;
  --line: #d8d8d4;
  --slot: #e3e3df;
  --face: 'Instrument Sans';
  --radius: 12px;
  --gutter: 24px;
  --margin: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--face), Arial, sans-serif; font-weight: 400; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }

.navigation {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 88px;
  padding: 0 var(--margin);
  background: transparent;
}
.identity {
  position: fixed;
  top: 31px;
  left: var(--margin);
  z-index: 20;
  width: max-content;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  mix-blend-mode: difference;
}
.menu-capsule {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 4px;
  border-radius: 999px;
  background: rgba(230, 230, 227, .72);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  font-size: 16px;
  line-height: 24px;
}
.menu-capsule a {
  position: relative;
  z-index: 1;
  display: block;
  padding: 8px 15px;
  border-radius: 999px;
  white-space: nowrap;
}
.menu-indicator {
  position: absolute;
  z-index: 0;
  top: 4px;
  left: 0;
  width: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: #fff;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 220ms ease, transform 400ms cubic-bezier(.22, 1, .36, 1), width 400ms cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.menu-capsule.indicator-visible .menu-indicator { opacity: 1; }
[aria-disabled='true'] { cursor: default; }

main { padding: 0 var(--margin); }
.opening {
  min-height: calc(100svh - 214px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  align-items: end;
  padding: clamp(88px, 12vh, 140px) 0 clamp(88px, 11vh, 120px);
}
.opening-small { grid-column: 1 / span 3; max-width: 320px; margin: 0 0 .35em; font-size: 17px; line-height: 1.5; }
h1 { grid-column: 7 / -1; max-width: 760px; margin: 0; font-size: clamp(58px, 5vw, 76px); font-weight: 400; line-height: .99; letter-spacing: -.05em; text-wrap: balance; }

.has-js .opening h1 { visibility: hidden; }
.has-js .opening h1.hero-ready { visibility: visible; }
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.hero-line-inner {
  display: block;
  transform: translateY(calc(100% + .14em));
  transition: transform 740ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--line-index) * 90ms);
}
.opening.hero-animated .hero-line-inner { transform: translateY(0); }
.has-js .opening-small {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--hero-small-delay, 980ms);
}
.has-js .opening.hero-animated .opening-small { opacity: 1; transform: translateY(0); }

.has-js .about-copy .about-intro,
.has-js .about-copy .about-text p,
.has-js .contact-copy .contact-title,
.has-js .contact-copy .contact-steps p,
.has-js .contact-copy .contact-email { visibility: hidden; }
.has-js .about-copy .line-reveal-ready,
.has-js .about-copy .about-text .line-reveal-ready,
.has-js .contact-copy .line-reveal-ready,
.has-js .contact-copy .contact-steps .line-reveal-ready { visibility: visible; }
.line-reveal-mask {
  display: block;
  overflow: hidden;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.line-reveal-inner {
  display: block;
  transform: translateY(calc(100% + .14em));
  transition: transform 740ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--reveal-index) * 90ms);
}
.line-reveal-visible .line-reveal-inner { transform: translateY(0); }
.contact-email .line-reveal-mask { min-width: 0; max-width: 100%; }
.contact-email .line-reveal-inner { overflow-wrap: anywhere; }

.section-head { display: flex; align-items: center; min-height: 54px; border-top: 1px solid var(--line); }
h2 { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: .01em; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-slot { display: block; width: 100%; aspect-ratio: 3 / 2; background: var(--slot); border-radius: var(--radius); }
.project-slot > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.has-js .project-slot {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease, transform 680ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--project-delay, 0ms);
}
.has-js .project-slot.project-visible { opacity: 1; transform: translateY(0); }

.about { margin-top: clamp(56px, 6vw, 86px); }
.about-body {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  padding: 50px 0 0;
}
.about-photo-space {
  grid-column: 1 / span 5;
  width: 100%;
  aspect-ratio: 4 / 5;
}
.about-copy {
  grid-column: 7 / -1;
  display: flex;
  flex-direction: column;
  max-width: 660px;
}
.about-intro {
  margin: 0 0 44px;
  font-size: clamp(30px, 2.5vw, 36px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.about-text {
  display: grid;
  gap: 24px;
  max-width: 600px;
  font-size: clamp(30px, 2.5vw, 36px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.about-text p {
  margin: 0;
}

.contact { margin-top: clamp(140px, 15vw, 216px); }
.contact-body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); padding: 50px 0 clamp(120px, 14vw, 196px); }
.contact-body p { grid-column: 1 / span 3; margin: 4px 0 0; font-size: 17px; line-height: 1.45; }
.email-placeholder { grid-column: 7 / -1; display: inline-block; width: max-content; color: var(--muted); font-size: clamp(52px, 5.4vw, 82px); line-height: .95; letter-spacing: -.05em; border-bottom: 1px solid currentColor; }

.home-contact .contact-body { row-gap: 48px; }
.contact-form-column { grid-column: 1 / span 5; }
.home-contact .contact-form-intro { margin: 0 0 36px; font-size: 24px; line-height: 1.25; letter-spacing: -.02em; }
.contact-form { display: grid; gap: 16px; }
.contact-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  line-height: 1.4;
  outline: none;
}
.contact-form input { min-height: 64px; padding: 16px 18px; }
.contact-form textarea { min-height: 220px; padding: 18px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8a8a87; opacity: 1; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact-form button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 15px 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 220ms ease, color 220ms ease;
}
.contact-form button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-form button:hover { background: #fff; color: var(--ink); }
.contact-form button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.contact-form button:disabled { cursor: wait; opacity: .65; }
.contact-form .contact-form-status { grid-column: auto; min-height: 1.45em; margin: 0; font-size: 15px; line-height: 1.45; }
.contact-copy { grid-column: 7 / -1; display: flex; flex-direction: column; min-width: 0; }
.home-contact .contact-title { margin: 0; font-size: clamp(52px, 5vw, 76px); line-height: .98; letter-spacing: -.05em; }
.contact-steps { display: grid; gap: 30px; margin-top: 56px; }
.home-contact .contact-steps p { width: 100%; margin: 0; font-size: clamp(21px, 1.7vw, 27px); line-height: 1.2; letter-spacing: -.025em; }
.contact-divider { width: 100%; margin-top: 54px; border-top: 1px solid var(--line); }
.contact-email { display: inline-flex; align-items: baseline; gap: .18em; width: max-content; max-width: 100%; margin-top: 34px; border-bottom: 1px solid currentColor; font-size: clamp(25px, 2.65vw, 42px); line-height: 1.05; letter-spacing: -.04em; overflow-wrap: anywhere; }
.contact-email span { flex: 0 0 auto; }

footer { margin: 0 var(--margin); padding: 24px 0 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); font-size: 14px; line-height: 20px; }
footer p { margin: 0; }
.footer-links { display: flex; gap: 28px; }
.footer-links a:last-child { margin-left: auto; }
.home-footer { grid-template-columns: 1fr; }

@media (max-width: 900px) {
  :root { --margin: 20px; --gutter: 16px; --radius: 8px; }
  html { scroll-padding-top: 88px; }
  .navigation { height: 88px; gap: 16px; }
  .menu-capsule { font-size: 14px; line-height: 20px; }
  .menu-capsule a { padding: 7px 13px; }
  .opening { min-height: auto; grid-template-columns: 1fr; gap: 52px; padding: 74px 0 72px; }
  .opening-small, h1 { grid-column: 1; }
  .opening-small { order: 2; max-width: 300px; font-size: 16px; }
  h1 { order: 1; max-width: 680px; font-size: clamp(42px, 8.5vw, 66px); line-height: 1.01; }
  .project-grid { grid-template-columns: 1fr; gap: 20px; }
  .about { margin-top: 48px; }
  .about-body { grid-template-columns: 1fr; gap: 48px; padding-top: 36px; }
  .about-photo-space, .about-copy { grid-column: 1; }
  .about-intro { font-size: clamp(24px, 6.8vw, 28px); }
  .about-text { font-size: clamp(24px, 6.8vw, 28px); }
  .contact { margin-top: 112px; }
  .contact-body { grid-template-columns: 1fr; gap: 56px; padding: 36px 0 112px; }
  .contact-body p, .email-placeholder { grid-column: 1; }
  .email-placeholder { font-size: clamp(48px, 12vw, 72px); }
  .contact-form-column, .contact-copy { grid-column: 1; }
  .contact-steps { margin-top: 40px; }
  .contact-divider { margin-top: 42px; }
  .contact-email { margin-top: 28px; }
  footer { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { order: -1; }
}

@media (max-width: 520px) {
  .navigation { gap: 8px; }
  .identity { top: 33.5px; font-size: 21px; }
  .menu-capsule { flex-shrink: 0; font-size: 13px; line-height: 18px; }
  .menu-capsule a { padding: 7px 9px; }
  h1 { font-size: 42px; }
  .section-head { min-height: 48px; }
  .contact-body { gap: 44px; }
  .email-placeholder { font-size: 46px; }
  .contact-form-row { grid-template-columns: 1fr; }
  .home-contact .contact-form-intro { font-size: 20px; }
  .home-contact .contact-title { font-size: 42px; }
  .contact-email { width: 100%; font-size: clamp(23px, 6.5vw, 30px); }
  .footer-links { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 12px; }
  .footer-links a:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-indicator { transition-duration: 0ms; }
  .has-js .opening h1 { visibility: visible; }
  .hero-line-inner,
  .line-reveal-inner,
  .has-js .opening-small,
  .has-js .project-slot {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .has-js .about-copy .about-intro,
  .has-js .about-copy .about-text p,
  .has-js .contact-copy .contact-title,
  .has-js .contact-copy .contact-steps p,
  .has-js .contact-copy .contact-email { visibility: visible; }
}
