:root{
  --paper:#efe9dd;
  --paper-2:#e7e0d1;
  --ink:#1a1714;
  --dim:#5c554b;
  --faint:#938a7c;
  --seal:#b83a2e;
  --line:rgba(26,23,20,.14);
  --max:1200px;
  --ease:cubic-bezier(.22,1,.36,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{background:var(--paper);color:var(--ink);font-family:"Jost",system-ui,sans-serif;font-weight:300;
  line-height:1.6;overflow-x:hidden;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
em{font-style:normal;color:var(--seal)}
::selection{background:var(--ink);color:var(--paper)}

#ink{position:fixed;inset:0;width:100%;height:100%;z-index:0;display:block}
#ink.fallback{background:
  radial-gradient(40% 50% at 62% 40%,rgba(26,23,20,.5),transparent 60%),
  radial-gradient(30% 40% at 55% 60%,rgba(26,23,20,.35),transparent 60%),var(--paper)}
body>*:not(#ink){position:relative;z-index:2}

/* nav */
.nav{position:fixed;top:0;left:0;right:0;z-index:50;display:flex;justify-content:space-between;align-items:center;
  padding:24px clamp(18px,4vw,52px)}
.brand{font-family:"Shippori Mincho",serif;font-weight:600;font-size:1.3rem;letter-spacing:.14em;display:flex;align-items:baseline;gap:8px}
.brand span{color:var(--seal);font-size:1.1rem}
.nav-links{display:flex;gap:clamp(16px,2.4vw,34px);font-size:.86rem;letter-spacing:.04em;font-family:"Shippori Mincho",serif}
.nav-links a{color:var(--dim);transition:color .3s}.nav-links a:hover{color:var(--ink)}
@media(max-width:640px){.nav-links a:nth-child(1){display:none}}

/* hero */
.hero{min-height:100svh;display:flex;flex-direction:column;justify-content:center;position:relative;background:transparent; /* show the ink shader behind */
  padding:120px clamp(18px,4vw,52px) 60px;max-width:var(--max);margin:0 auto}
.hero-kanji{position:absolute;right:clamp(10px,6vw,90px);top:50%;transform:translateY(-50%);
  font-family:"Shippori Mincho",serif;font-weight:700;font-size:clamp(12rem,34vw,34rem);line-height:.8;
  color:var(--ink);opacity:.07;pointer-events:none;z-index:-1}
.eyebrow{font-family:"Shippori Mincho",serif;font-size:.92rem;letter-spacing:.14em;color:var(--seal);margin-bottom:1.8rem}
.hero-title{font-family:"Shippori Mincho",serif;font-weight:600;line-height:.9;letter-spacing:.06em;
  font-size:clamp(4rem,17vw,15rem)}
.hero-title .line{display:block;overflow:hidden}
.hero-title .line>span{display:inline-block}
.hero-sub{max-width:40ch;margin:2rem 0 0;color:var(--dim);font-size:clamp(1.02rem,1.4vw,1.2rem)}
.seal{position:absolute;bottom:clamp(40px,8vh,90px);right:clamp(20px,6vw,80px);
  width:74px;height:74px;border:2px solid var(--seal);border-radius:8px;display:grid;place-items:center;
  color:var(--seal);font-family:"Shippori Mincho",serif;font-weight:700;font-size:1.4rem;line-height:.9;text-align:center;
  transform:rotate(-4deg);box-shadow:inset 0 0 0 1px rgba(184,58,46,.3)}
@media(max-width:640px){.seal{width:56px;height:56px;font-size:1.05rem}}

/* sections */
section{padding:clamp(90px,12vh,160px) clamp(18px,4vw,52px);background:var(--paper);position:relative}
.works{border-top:1px solid var(--line)}
.section-head{max-width:var(--max);margin:0 auto 3rem}
.kicker{font-family:"Shippori Mincho",serif;font-size:.86rem;letter-spacing:.08em;color:var(--seal);margin-bottom:1rem}
h2{font-family:"Shippori Mincho",serif;font-weight:500;font-size:clamp(2.6rem,7vw,5rem);line-height:1;letter-spacing:.03em}

/* works */
.work-grid{max-width:var(--max);margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:2px;
  background:var(--line);border:1px solid var(--line)}
@media(max-width:760px){.work-grid{grid-template-columns:1fr}}
.work{background:var(--paper);padding:40px 34px 34px;min-height:340px;display:flex;flex-direction:column;
  transition:background .5s var(--ease)}
.work:hover,.work:focus-visible{background:var(--paper-2);outline:none}
.w-jp{font-family:"Shippori Mincho",serif;font-weight:700;font-size:5rem;line-height:1;color:var(--ink);opacity:.9}
.work:hover .w-jp,.work:focus-visible .w-jp{color:var(--seal)}
.work h3{font-family:"Shippori Mincho",serif;font-weight:500;font-size:1.8rem;margin:auto 0 .6rem}
.work p{color:var(--dim);font-size:.98rem;max-width:34ch}

/* ma */
.ma{border-top:1px solid var(--line);text-align:center}
.ma-inner{max-width:820px;margin:0 auto;position:relative}
.ma-jp{font-family:"Shippori Mincho",serif;font-weight:700;font-size:clamp(6rem,16vw,13rem);line-height:.8;color:var(--ink);opacity:.08;margin-bottom:-.15em}
.ma-text{font-family:"Shippori Mincho",serif;font-weight:400;font-size:clamp(1.5rem,3.6vw,2.6rem);line-height:1.35;margin-bottom:1.4rem}
.ma-sign{color:var(--faint);font-family:"Shippori Mincho",serif;letter-spacing:.08em}

/* footer */
.footer{border-top:1px solid var(--line);padding:clamp(56px,8vh,90px) clamp(18px,4vw,52px) 40px;text-align:center}
.foot-brand{font-family:"Shippori Mincho",serif;font-weight:600;font-size:clamp(2.2rem,8vw,4.5rem);letter-spacing:.1em;margin-bottom:2rem}
.foot-bottom{max-width:var(--max);margin:0 auto;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
  font-family:"Jost",sans-serif;font-size:.8rem;color:var(--faint)}
.foot-bottom a{color:var(--dim)}.foot-bottom a:hover{color:var(--seal)}

/* reveals + hero intro */
.js .reveal{opacity:0;transform:translateY(24px)}
.js .reveal.is-in{opacity:1;transform:none;transition:opacity 1.1s var(--ease),transform 1.1s var(--ease)}
.js .hero-title .line>span{transform:translateY(110%);transition:transform 1.3s var(--ease)}
.hero.loaded .hero-title .line>span{transform:translateY(0)}
.hero.loaded .reveal{opacity:1;transform:none;transition:opacity 1.1s var(--ease),transform 1.1s var(--ease)}
.hero .eyebrow{transition-delay:.1s}.hero .line>span{transition-delay:.2s}
.hero .hero-kanji{transition-delay:.3s}.hero .hero-sub{transition-delay:.46s}.hero .seal{transition-delay:.7s}
a:focus-visible,.work:focus-visible{outline:2px solid var(--seal);outline-offset:4px}

@media (prefers-reduced-motion:reduce){
  .reveal,.js .reveal,.js .reveal.is-in{opacity:1!important;transform:none!important}
  .hero-title .line>span{transform:none!important}
}
