@import url("https://fonts.googleapis.com/css2?family=Kaisei+Tokumin:wght@500;700&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --ink: #24251F;
  --ink-soft: #56564C;
  --ink-faint: #86847A;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F1F1EC;
  --sage: #5C6B54;
  --sage-strong: #46523F;
  --wood: #8B6A46;
  --line: rgba(36,37,31,.15);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EDECE4; --ink-soft: #B7B5A8; --ink-faint: #85836F;
    --bg: #1B1C17; --surface: #222319; --surface-2: #2A2B20;
    --sage: #8CA37E; --sage-strong: #A3B896; --wood: #C69A6C;
    --line: rgba(237,236,228,.14);
  }
}
:root[data-theme="dark"] {
  --ink: #EDECE4; --ink-soft: #B7B5A8; --ink-faint: #85836F;
  --bg: #1B1C17; --surface: #222319; --surface-2: #2A2B20;
  --sage: #8CA37E; --sage-strong: #A3B896; --wood: #C69A6C;
  --line: rgba(237,236,228,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
h1, h2, h3 { font-family: "Kaisei Tokumin", serif; margin: 0; text-wrap: balance; font-weight: 700; }
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { max-width: 1100px; margin: 0 auto; padding-inline: clamp(20px, 5vw, 56px); }
.prose { max-width: 34em; }
.eyebrow {
  font-size: .78rem; letter-spacing: .2em; color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--sage); display: inline-block; }

/* nav */
.site-nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 16px; }
.brand { font-family: "Kaisei Tokumin", serif; font-weight: 700; font-size: 1.05rem; text-decoration: none; letter-spacing: .02em; }
.nav-links { display: flex; gap: clamp(16px, 3vw, 32px); list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.nav-links a { text-decoration: none; color: var(--ink-soft); padding-block: 4px; border-bottom: 1px solid transparent; transition: color .25s ease, border-color .25s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--sage); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); width: 38px; height: 38px; cursor: pointer; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 3px auto; }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px clamp(20px, 5vw, 56px) 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding-block: 12px; border-bottom: 1px solid var(--line); }
}

/* hero band (photo) */
.photo-hero { position: relative; overflow: hidden; min-height: clamp(320px, 46vw, 520px); display: flex; align-items: flex-end; }
.photo-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.photo-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,21,17,.1) 0%, rgba(20,21,17,.72) 100%);
}
.photo-hero .blueprint-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(242,240,231,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,240,231,.14) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 55%, black 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 55%, black 100%);
}
.photo-hero .tick { position: absolute; z-index: 1; width: 20px; height: 20px; border-color: rgba(242,240,231,.5); border-style: solid; border-width: 0; }
.photo-hero .tick.tl { top: 18px; left: 18px; border-top-width: 1px; border-left-width: 1px; }
.photo-hero .tick.tr { top: 18px; right: 18px; border-top-width: 1px; border-right-width: 1px; }
.photo-hero .sheet-tag {
  position: absolute; z-index: 1; left: 18px; bottom: 18px;
  font-family: "JetBrains Mono", monospace; font-size: .74rem; letter-spacing: .04em;
  color: #F2F0E7; border: 1px solid rgba(242,240,231,.45);
  padding: 5px 10px; display: flex; align-items: center; gap: 8px;
  background: rgba(20,21,17,.35);
}
.photo-hero .sheet-tag b { color: #B7C4AA; font-weight: 500; }
.photo-hero .wrap { position: relative; z-index: 2; padding-block: clamp(32px, 6vw, 56px); color: #F2F0E7; }
.photo-hero .eyebrow { color: #CBD1C3; }
.photo-hero .eyebrow::before { background: #9FB08F; }
.photo-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); color: #FAF8F0; margin-top: 12px; }
.photo-hero .sub { margin-top: 14px; font-size: 1.05rem; color: #DAD7C9; max-width: 32em; }

/* split hero (home) */
.split-hero { position: relative; display: flex; min-height: clamp(400px, 54vw, 660px); overflow: hidden; }
.split-pane { position: relative; flex: 1 1 50%; overflow: hidden; }
.split-pane img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease; filter: saturate(.9);
}
.split-pane img.is-active { opacity: 1; }
.split-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(18,19,15,.62) 0%, rgba(18,19,15,.08) 42%, rgba(18,19,15,.28) 100%);
}
.split-hero .wrap {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding-block: clamp(28px, 6vw, 60px); color: #FAF9F3;
}
.split-hero .eyebrow { color: #D9D5C4; }
.split-hero .eyebrow::before { display: none; }
.split-hero h1 {
  font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.3; margin-top: 14px;
  color: #FFFFFF; text-shadow: 0 2px 18px rgba(0,0,0,.28);
  text-wrap: normal; max-width: 16em;
}
.split-hero .sub { margin-top: 18px; font-size: .98rem; line-height: 2; color: #EDEAE0; max-width: 30em; text-shadow: 0 1px 10px rgba(0,0,0,.3); }

/* sections */
section { padding-block: clamp(48px, 8vw, 92px); border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(28px, 5vw, 48px); }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.section-head .kicker { color: var(--ink-soft); font-size: 1rem; max-width: 30em; margin-top: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .92rem;
  text-decoration: none;
  color: var(--ink); background: transparent; cursor: pointer;
  border: none; border-bottom: 1px solid var(--ink); padding: 0 0 7px;
  font-family: "Zen Kaku Gothic New", sans-serif;
  transition: color .25s ease, border-color .25s ease;
}
.btn:hover { color: var(--sage-strong); border-color: var(--sage-strong); }
.btn-arrow { display: inline-block; transition: transform .25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-fill {
  border: 1px solid var(--sage); padding: .85em 1.5em;
  background: var(--sage); color: #F5F3EA; text-decoration: none;
}
.btn-fill:hover { background: var(--sage-strong); border-color: var(--sage-strong); color: #F5F3EA; }

/* cards grid (works, services) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.work-card { background: var(--surface); display: flex; flex-direction: column; }
.work-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-body { padding: 20px 22px 24px; display: grid; gap: 8px; flex-grow: 1; }
.work-body h3 { font-size: 1.15rem; }
.work-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: var(--ink-faint); }
.work-desc { color: var(--ink-soft); font-size: .92rem; margin-top: 4px; }

/* full-bleed works grid (hover reveal) */
.works-full-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.works-full-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .works-full-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .works-full-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .works-full-grid { grid-template-columns: 1fr; } }

.work-tile { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.work-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.work-tile:hover img { transform: scale(1.05); }
.work-tile-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.86);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 18px;
  opacity: 0; transition: opacity .35s ease;
}
.work-tile:hover .work-tile-overlay { opacity: 1; }
.work-tile-overlay h3 { font-size: 1.25rem; color: var(--ink); }
.work-tile-overlay p { margin: 0; font-size: .84rem; color: var(--ink-soft); }
.tile-tags { display: flex; gap: 8px; margin-top: 8px; }
.tile-tags span { font-size: .72rem; border: 1px solid var(--ink-faint); padding: .35em .9em; color: var(--ink-soft); }
@media (hover: none) {
  .work-tile-overlay { opacity: 1; background: rgba(255,255,255,.72); }
}

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(24px, 5vw, 48px); }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
footer h3 { font-size: .82rem; letter-spacing: .1em; color: var(--ink-faint); font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; margin-bottom: 12px; }
footer .brand { display: block; margin-bottom: 10px; }
footer p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer ul a { text-decoration: none; font-size: .88rem; color: var(--ink-soft); }
footer ul a:hover { color: var(--sage-strong); }
.copyright { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-faint); }
