@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;1,400&display=swap');

:root{
  --ink:#000;
  --paper:#fff;
  --line:rgba(0,0,0,.16);
  --mute:rgba(0,0,0,.52);
  --gut:1rem;
  --max:1180px;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'JetBrains Mono','SFMono-Regular',Menlo,Consolas,monospace;
  font-size:16px;
  line-height:1.65;
  overflow-x:hidden;
}

[id]{scroll-margin-top:84px}

a{color:var(--ink)}

img{max-width:100%}

.skip{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:400;
  background:#000;
  color:#fff;
  padding:.7rem 1.1rem;
  font-size:.85rem;
  text-decoration:none;
}
.skip:focus{left:0}

.navtoggle{
  position:fixed;
  top:0;
  left:0;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

/* ---------- top bar ---------- */
.topbar{
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.3rem 1rem;
  border-bottom:1px solid var(--line);
  background:var(--paper);
}
.brand{
  display:flex;
  align-items:center;
  gap:.55rem;
  min-height:44px;
  padding:0 .2rem;
  text-decoration:none;
  color:#000;
  font-size:.8rem;
  letter-spacing:.06em;
}
.brand-dot{
  display:block;
  width:14px;
  height:14px;
  background:#000;
}
.brand-img{
  display:block;
  width:18px;
  height:18px;
  object-fit:contain;
}
.brand-name{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:11ch;
}
.ticker{
  flex:1 1 auto;
  min-width:0;
  margin:0;
  text-align:center;
  font-size:.74rem;
  letter-spacing:.28em;
  color:var(--mute);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.burger{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 .9rem;
  border:1px solid #000;
  font-size:.76rem;
  letter-spacing:.14em;
  cursor:pointer;
  user-select:none;
}
.burger:hover{background:#000;color:#fff}

/* ---------- overlay ---------- */
.overlay{
  display:none;
  position:fixed;
  inset:0;
  z-index:200;
  background:#000;
  color:#fff;
  flex-direction:column;
  padding:1rem 1.1rem 2rem;
}
.navtoggle:checked ~ .overlay{display:flex}
.ov-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  border-bottom:1px solid rgba(255,255,255,.35);
  padding-bottom:.6rem;
}
.ov-brand{
  font-size:.8rem;
  letter-spacing:.16em;
  color:rgba(255,255,255,.72);
}
.ov-close{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 1.1rem;
  border:1px solid #fff;
  font-size:.78rem;
  letter-spacing:.14em;
  cursor:pointer;
}
.ov-close:hover{background:#fff;color:#000}
.ov-nav{
  flex:1 1 auto;
  overflow-y:auto;
  padding-top:1rem;
}
.ov-nav ol{list-style:none;margin:0;padding:0}
.ov-link{
  display:flex;
  align-items:baseline;
  gap:1rem;
  min-height:56px;
  padding:.45rem 0;
  border-bottom:1px solid rgba(255,255,255,.2);
  color:#fff;
  text-decoration:none;
  font-size:1.2rem;
  line-height:1.3;
}
.ov-num{
  font-size:.72rem;
  color:rgba(255,255,255,.5);
  flex:0 0 auto;
}
.ov-link:hover .ov-name{text-decoration:underline;text-underline-offset:4px}

/* ---------- anchors ---------- */
.anchors{
  position:sticky;
  top:0;
  z-index:60;
  background:var(--paper);
  border-bottom:1px solid #000;
  overflow-x:auto;
  scrollbar-width:none;
}
.anchors::-webkit-scrollbar{display:none}
.anchors ol{
  display:flex;
  min-width:max-content;
  list-style:none;
  margin:0;
  padding:0;
}
.anchors a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:0 .95rem;
  font-size:.76rem;
  letter-spacing:.06em;
  text-decoration:none;
  color:#000;
  border-right:1px solid var(--line);
  white-space:nowrap;
}
.anchors a:hover{background:#000;color:#fff}

/* ---------- hero ---------- */
.hero{
  position:relative;
  display:grid;
  align-items:end;
  min-height:70vh;
  padding:7rem 1.25rem 2.75rem;
  background:#000;
  color:#fff;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(0,0,0,.9),rgba(0,0,0,.28));
  pointer-events:none;
}
.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(1) contrast(1.08);
  opacity:.6;
}
.hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:var(--gut);
  width:100%;
  max-width:var(--max);
  margin:0 auto;
}
.hero-txt{
  grid-column:5 / -1;
  text-align:right;
}
.hero-brand{
  margin:0 0 .9rem;
  font-size:.74rem;
  letter-spacing:.3em;
  color:rgba(255,255,255,.75);
}
.hero h1{
  margin:0 0 1.1rem;
  font-size:clamp(1.85rem,5vw,3.3rem);
  line-height:1.1;
  letter-spacing:-.03em;
  font-weight:500;
}
.hero-desc{
  margin:0 0 0 auto;
  max-width:44ch;
  font-size:.98rem;
  line-height:1.7;
  color:rgba(255,255,255,.84);
}

/* ---------- layout ---------- */
main{display:block}

.wrap{
  display:grid;
  grid-template-columns:200px minmax(0,1fr);
  gap:2.5rem;
  max-width:var(--max);
  margin:0 auto;
  padding:3rem 1.25rem 1rem;
}

.side h2{
  margin:0;
  font-size:.78rem;
  letter-spacing:.28em;
  font-weight:500;
}
.side hr{
  border:0;
  border-top:1px solid #000;
  margin:.75rem 0 1rem;
}
.side-list{
  list-style:none;
  margin:0;
  padding:0;
  position:sticky;
  top:80px;
}
.side-list a{
  display:flex;
  align-items:baseline;
  gap:.6rem;
  min-height:40px;
  padding:.35rem 0;
  border-bottom:1px solid var(--line);
  text-decoration:none;
  color:#000;
  font-size:.84rem;
  line-height:1.35;
}
.side-num{
  font-size:.68rem;
  color:var(--mute);
  flex:0 0 auto;
}
.side-list a:hover{text-decoration:underline;text-underline-offset:3px}

.body{min-width:0}

div{
  max-width:70ch;
}
div article + article{
  margin-top:2.75rem;
  padding-top:2.5rem;
  border-top:1px solid var(--line);
}
div h2{
  margin:2.5rem 0 .55rem;
  font-size:clamp(1.3rem,3vw,1.85rem);
  line-height:1.22;
  letter-spacing:-.02em;
  font-weight:600;
}
div article > h2:first-child{margin-top:0}
div h3{
  margin:1.75rem 0 .4rem;
  font-size:1.08rem;
  line-height:1.35;
  letter-spacing:-.01em;
}
div hr{
  width:64px;
  margin:.35rem 0 1.25rem;
  border:0;
  border-top:2px solid #000;
}
div p{margin:0 0 1rem}
div ul,
div ol{margin:0 0 1rem;padding-left:1.25rem}
div li{margin:.35rem 0}
div a{text-decoration:underline;text-underline-offset:3px}
div strong{font-weight:600}
div img{height:auto;border-radius:10px;margin:1rem 0}
div blockquote{
  margin:1.5rem 0;
  padding:.35rem 0 .35rem 1.1rem;
  border-left:3px solid #000;
}
div blockquote p:last-child{margin:0}
div table{
  width:100%;
  border-collapse:collapse;
  font-size:.9rem;
  margin:0 0 1.25rem;
}
div th,
div td{
  padding:.5rem .45rem;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
}

/* ---------- footer ---------- */
.foot{
  margin-top:4rem;
  padding:2.5rem 1.25rem 1.75rem;
  background:#000;
  color:#fff;
}
.foot-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:var(--gut);
  max-width:var(--max);
  margin:0 auto;
}
.foot-brand{grid-column:1 / span 5}
.foot-nav{grid-column:8 / -1}
.foot address{
  font-style:normal;
  font-size:1.2rem;
  line-height:1.3;
  letter-spacing:.02em;
}
.foot-links{
  display:flex;
  flex-wrap:wrap;
  gap:.25rem 1.1rem;
  list-style:none;
  margin:1rem 0 0;
  padding:0;
}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:#fff;
  font-size:.82rem;
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.45);
}
.foot-links a:hover{border-bottom-color:#fff}
.foot-nav dl{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:.15rem 1rem;
  margin:0;
}
.foot-nav dt{
  padding-top:.6rem;
  font-size:.7rem;
  color:rgba(255,255,255,.5);
}
.foot-nav dd{margin:0}
.foot-nav dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  color:#fff;
  font-size:.86rem;
  text-decoration:none;
}
.foot-nav dd a:hover{text-decoration:underline;text-underline-offset:3px}

.card{
  border-radius:10px;
  box-shadow:0 12px 30px rgba(0,0,0,.16);
}

.foot-form{
  max-width:var(--max);
  margin:2rem auto 0;
  padding:1.25rem;
  background:#fff;
  color:#000;
}
.foot-form h2{
  margin:0;
  font-size:.9rem;
  letter-spacing:.14em;
  font-weight:500;
}
.foot-form hr{
  border:0;
  border-top:1px solid #000;
  margin:.65rem 0 1rem;
}
.sub{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:.75rem;
}
.sub label{
  display:flex;
  flex-direction:column;
  gap:.35rem;
  flex:1 1 200px;
  font-size:.78rem;
  letter-spacing:.08em;
}
.sub input{
  min-height:44px;
  padding:0 .75rem;
  border:1px solid #000;
  border-radius:0;
  background:#fff;
  color:#000;
  font:inherit;
  font-size:1rem;
}
.sub input:focus{outline:2px solid #000;outline-offset:2px}
.sub button{
  min-height:44px;
  padding:0 1.5rem;
  border:1px solid #000;
  border-radius:0;
  background:#000;
  color:#fff;
  font:inherit;
  font-size:.86rem;
  letter-spacing:.1em;
  cursor:pointer;
}
.sub button:hover{background:#fff;color:#000}

.copy{
  max-width:var(--max);
  margin:1.75rem auto 0;
  padding-top:1rem;
  border-top:1px solid rgba(255,255,255,.22);
  font-size:.74rem;
  letter-spacing:.06em;
  color:rgba(255,255,255,.62);
}

/* ---------- motion ---------- */
.reveal{
  opacity:0;
  transform:translateY(10px);
  transition:opacity .55s ease,transform .55s ease;
}
.reveal.in{opacity:1;transform:none}
.hero-img{animation:heroFade 1.1s ease both}
@keyframes heroFade{from{opacity:0}to{opacity:.6}}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .brand-name{max-width:8ch}
  .wrap{
    grid-template-columns:minmax(0,1fr);
    gap:1.75rem;
    padding:2rem 1rem .5rem;
  }
  .side-list{
    position:static;
    display:flex;
    flex-wrap:wrap;
    gap:.4rem;
  }
  .side-list li{flex:0 0 auto}
  .side-list a{
    min-height:40px;
    padding:.3rem .65rem;
    border:1px solid var(--line);
    border-radius:10px;
  }
  .hero{min-height:62vh;padding:5.5rem 1rem 2rem}
  .hero-txt{grid-column:1 / -1}
  .hero-desc{max-width:none}
  .foot-brand,
  .foot-nav{grid-column:1 / -1}
  .foot-nav{margin-top:1.75rem}
}

@media (max-width:520px){
  .brand-name{display:none}
  .ticker{letter-spacing:.16em}
  .foot address{font-size:1.05rem}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .hero-img{animation:none}
}

button[aria-expanded]{min-width:44px;min-height:44px}
