:root{
  --red:#D71920;
  --red-deep:#8E0E14;
  --coal:#15171A;
  --graphite:#262A30;
  --ivory:#F4EFE6;
  --gold:#E8B45A;
  --ice:#6FD3E8;
  --teal:#2E6F7A;
  --gray:#9AA0A6;
  --white:#FFFFFF;

  --font-display:"Archivo Black","Source Han Sans SC","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  --font-body:"Source Han Sans SC","Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --font-mono:"IBM Plex Mono","JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,"Courier New",monospace;

  --header-h:76px;
  --gutter:clamp(16px,4vw,48px);
  --maxw:1440px;
  --shadow-hard:6px 6px 0 var(--coal);
  --shadow-red:6px 6px 0 var(--red);
  --ease:cubic-bezier(.2,.7,.3,1);
}

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

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

body{
  margin:0;
  background:var(--ivory);
  color:var(--coal);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.75;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

body.is-nav-open{overflow:hidden;}

h1,h2,h3,h4,h5,h6,p,figure,blockquote,dl,dd{margin:0;}
ul,ol{margin:0;padding:0;list-style:none;}
img,svg,video{max-width:100%;}
img{height:auto;}
a{color:inherit;}
button{font:inherit;color:inherit;}
[hidden]{display:none !important;}

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

#main-content{scroll-margin-top:calc(var(--header-h) + 12px);}

/* ---------- skip link ---------- */
.skip-link{
  position:fixed;
  top:0;
  left:0;
  z-index:300;
  transform:translateY(-130%);
  padding:12px 20px;
  background:var(--gold);
  color:var(--coal);
  border:2px solid var(--coal);
  font-family:var(--font-mono);
  font-size:13px;
  font-weight:700;
  letter-spacing:.06em;
  text-decoration:none;
  transition:transform .18s var(--ease);
}
.skip-link:focus{transform:translateY(0);}

/* ---------- header ---------- */
.site-header{
  position:fixed;
  inset:0 0 auto 0;
  z-index:120;
  color:var(--white);
  background:transparent;
  transition:background-color .2s var(--ease),box-shadow .2s var(--ease);
}
.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(21,23,26,.92) 0%,rgba(21,23,26,.48) 58%,rgba(21,23,26,0) 100%);
  transition:opacity .25s var(--ease);
}
.site-header[data-scrolled]{
  background:var(--coal);
  box-shadow:0 2px 0 var(--red),0 10px 28px rgba(0,0,0,.38);
}
.site-header[data-scrolled]::before{opacity:0;}
.site-header[data-open]{background:var(--coal);}
.site-header[data-open]::before{opacity:0;}

.header-inner{
  position:relative;
  display:flex;
  align-items:center;
  gap:clamp(12px,2.4vw,32px);
  width:100%;
  max-width:var(--maxw);
  height:var(--header-h);
  margin:0 auto;
  padding:0 var(--gutter);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
  color:inherit;
  text-decoration:none;
}
.brand-mark{
  display:inline-flex;
  flex-direction:column;
  gap:3px;
  width:22px;
  flex:0 0 auto;
}
.brand-mark-line{
  display:block;
  height:4px;
  background:var(--red);
}
.brand-mark-line:nth-child(1){width:100%;}
.brand-mark-line:nth-child(2){width:70%;}
.brand-mark-line:nth-child(3){width:42%;}
.brand-text{display:flex;flex-direction:column;gap:2px;line-height:1.1;}
.brand-name{
  font-family:var(--font-display);
  font-size:19px;
  font-weight:800;
  letter-spacing:.05em;
  color:var(--white);
}
.brand-coord{
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:.16em;
  color:var(--gold);
}

.site-nav{
  flex:1 1 auto;
  display:flex;
  justify-content:center;
  min-width:0;
}
.nav-list{
  display:flex;
  align-items:center;
  gap:clamp(2px,1.3vw,20px);
}
.nav-item{display:block;}
.nav-link{
  position:relative;
  display:inline-block;
  padding:9px 5px;
  font-family:var(--font-body);
  font-size:14px;
  font-weight:500;
  line-height:1;
  letter-spacing:.07em;
  color:rgba(255,255,255,.8);
  text-decoration:none;
  white-space:nowrap;
  transition:color .15s var(--ease);
}
.nav-link::after{
  content:"";
  position:absolute;
  left:5px;
  right:5px;
  bottom:1px;
  height:3px;
  background:var(--red);
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .18s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible{color:var(--white);}
.nav-link:hover::after,
.nav-link:focus-visible::after{transform:scaleX(1);}
.nav-link[aria-current="page"]{color:var(--white);}
.nav-link[aria-current="page"]::after{transform:scaleX(1);}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 20px;
  border:2px solid transparent;
  background:transparent;
  color:inherit;
  font-family:var(--font-mono);
  font-size:13px;
  font-weight:600;
  letter-spacing:.1em;
  line-height:1.2;
  text-decoration:none;
  cursor:pointer;
  transition:transform .15s var(--ease),box-shadow .15s var(--ease),background-color .15s var(--ease),color .15s var(--ease),border-color .15s var(--ease);
}
.btn:active{transform:translate(3px,3px);box-shadow:none;}

.btn-query{
  padding:10px 18px;
  background:var(--red);
  border-color:var(--red);
  color:var(--white);
  font-family:var(--font-body);
  font-size:14px;
  font-weight:700;
  letter-spacing:.14em;
  box-shadow:4px 4px 0 rgba(0,0,0,.55);
}
.btn-query:hover{background:var(--red-deep);border-color:var(--red-deep);}

.btn--primary{
  background:var(--red);
  border-color:var(--red);
  color:var(--white);
  box-shadow:var(--shadow-hard);
}
.btn--primary:hover{background:var(--red-deep);border-color:var(--red-deep);}
.btn--ink{
  background:var(--coal);
  border-color:var(--coal);
  color:var(--white);
  box-shadow:var(--shadow-red);
}
.btn--ink:hover{background:var(--graphite);border-color:var(--graphite);}
.btn--ghost{
  background:transparent;
  border-color:currentColor;
  color:inherit;
}
.btn--ghost:hover{background:var(--coal);border-color:var(--coal);color:var(--white);}

/* ---------- nav toggle ---------- */
.nav-toggle{
  display:none;
  align-items:center;
  gap:8px;
  padding:8px 11px;
  background:transparent;
  border:2px solid rgba(255,255,255,.42);
  color:var(--white);
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.12em;
  cursor:pointer;
  transition:border-color .15s var(--ease),background-color .15s var(--ease);
}
.nav-toggle:hover{border-color:var(--gold);}
.nav-toggle-bars{
  display:inline-flex;
  flex-direction:column;
  gap:4px;
  width:16px;
}
.nav-toggle-bars span{
  display:block;
  width:100%;
  height:2px;
  background:currentColor;
  transition:transform .2s var(--ease),opacity .2s var(--ease);
}
.site-header[data-open] .nav-toggle-bars span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.site-header[data-open] .nav-toggle-bars span:nth-child(2){opacity:0;}
.site-header[data-open] .nav-toggle-bars span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}
.nav-toggle-label{display:inline-block;line-height:1;}

/* ---------- scroll progress ---------- */
.scroll-progress{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:3px;
  background:rgba(255,255,255,.1);
  pointer-events:none;
}
.scroll-progress-bar{
  display:block;
  width:0;
  height:100%;
  background:linear-gradient(90deg,var(--red) 0%,var(--gold) 100%);
}

/* ---------- footer ---------- */
.site-footer{
  position:relative;
  background:var(--coal);
  color:rgba(255,255,255,.72);
  border-top:4px solid var(--red);
  font-size:14px;
  line-height:1.7;
}
.footer-inner{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:clamp(40px,6vw,76px) var(--gutter) 0;
}
.footer-grid{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));
  gap:clamp(24px,4vw,56px);
}
.footer-col{min-width:0;}

.footer-brand{
  display:inline-flex;
  flex-direction:column;
  gap:8px;
  color:var(--white);
  text-decoration:none;
}
.footer-brand-name{
  font-family:var(--font-display);
  font-size:clamp(24px,3vw,34px);
  font-weight:800;
  letter-spacing:.03em;
  line-height:1.1;
}
.footer-brand-coord{
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.16em;
  color:var(--gold);
}
.footer-address{
  margin-top:18px;
  font-style:normal;
  color:rgba(255,255,255,.7);
}
.footer-contact{
  display:grid;
  gap:8px;
  margin-top:14px;
}
.footer-contact-item{
  display:flex;
  align-items:baseline;
  gap:10px;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.04em;
}
.footer-contact-label{
  flex:0 0 auto;
  min-width:34px;
  color:var(--gray);
}
.footer-contact-value{
  color:var(--white);
  word-break:break-word;
}

.footer-title{
  margin-bottom:16px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.16);
  font-family:var(--font-mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.2em;
  color:var(--gold);
}
.footer-list{display:grid;gap:10px;}
.footer-link{
  position:relative;
  display:inline-block;
  padding-left:15px;
  color:rgba(255,255,255,.78);
  text-decoration:none;
  transition:color .15s var(--ease),transform .15s var(--ease);
}
.footer-link::before{
  content:"";
  position:absolute;
  left:0;
  top:.72em;
  width:6px;
  height:2px;
  background:var(--red);
  transition:width .15s var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible{color:var(--white);transform:translateX(3px);}
.footer-link:hover::before,
.footer-link:focus-visible::before{width:11px;}

.footer-bottom{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 28px;
  margin-top:clamp(32px,5vw,56px);
  padding:20px 0 30px;
  border-top:1px solid rgba(255,255,255,.16);
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.08em;
  color:var(--gray);
}
.footer-legal{margin:0;}
.footer-note{margin:0;color:rgba(255,255,255,.55);}

/* ---------- shared layout ---------- */
.container{
  width:100%;
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 var(--gutter);
}
.container--narrow{max-width:920px;}

.main-pad{padding-top:var(--header-h);}

.section{
  position:relative;
  padding:clamp(56px,8vw,112px) 0;
}
.section--ivory{background:var(--ivory);color:var(--coal);}
.section--coal{background:var(--coal);color:rgba(255,255,255,.8);}
.section--graphite{background:var(--graphite);color:rgba(255,255,255,.8);}
.section--red{background:var(--red);color:var(--white);}

.section-head{
  display:grid;
  gap:14px;
  margin-bottom:clamp(28px,4vw,48px);
}
.section-index{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.2em;
  color:var(--red);
}
.section-index::before{
  content:"";
  width:28px;
  height:2px;
  background:currentColor;
}
.section--coal .section-index,
.section--graphite .section-index,
.section--red .section-index{color:var(--gold);}
.section-title{
  font-family:var(--font-display);
  font-size:clamp(28px,4.4vw,52px);
  font-weight:800;
  line-height:1.08;
  letter-spacing:.01em;
  color:inherit;
}
.section--ivory .section-title{color:var(--coal);}
.section--coal .section-title,
.section--graphite .section-title,
.section--red .section-title{color:var(--white);}
.section-lead{
  max-width:64ch;
  font-size:clamp(15px,1.4vw,17px);
  line-height:1.8;
  opacity:.86;
}

.grid{display:grid;gap:var(--gap,24px);}
.grid--12{grid-template-columns:repeat(12,minmax(0,1fr));}
.grid--split{grid-template-columns:repeat(2,minmax(0,1fr));}

.coord{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.14em;
  color:var(--gray);
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border:1px solid currentColor;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.14em;
  line-height:1.6;
  white-space:nowrap;
}
.tag--red{color:var(--red);border-color:var(--red);}
.tag--gold{color:var(--gold);border-color:var(--gold);}
.tag--ice{color:var(--teal);border-color:var(--ice);background:rgba(111,211,232,.16);}
.section--coal .tag--ice,
.section--graphite .tag--ice{color:var(--ice);}

.breadcrumb{
  display:block;
  padding:18px 0;
}
.breadcrumb-list{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.08em;
  color:var(--gray);
}
.breadcrumb-item{display:inline-flex;align-items:center;gap:8px;}
.breadcrumb-link{color:inherit;text-decoration:none;}
.breadcrumb-link:hover{color:var(--red);}
.breadcrumb-sep{color:var(--gray);}
.breadcrumb-current{color:var(--coal);}

/* ---------- media containers ---------- */
.media{
  position:relative;
  display:block;
  overflow:hidden;
  background:var(--graphite);
  border:2px solid var(--coal);
}
.media > img,
.media > picture,
.media > svg,
.media > video{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.media--16x9{aspect-ratio:16/9;}
.media--4x3{aspect-ratio:4/3;}
.media--1x1{aspect-ratio:1/1;}
.media--3x4{aspect-ratio:3/4;}
.media-caption{
  margin-top:8px;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.06em;
  color:var(--gray);
}

/* ---------- responsive ---------- */
@media (max-width:1024px){
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .footer-col--brand{grid-column:1 / -1;}
}

@media (max-width:899px){
  :root{--header-h:64px;}

  .nav-toggle{display:inline-flex;}
  .brand-coord{font-size:9px;letter-spacing:.12em;}

  .site-nav{
    position:fixed;
    left:0;
    right:0;
    top:var(--header-h);
    bottom:0;
    display:block;
    padding:20px var(--gutter) 48px;
    background:var(--coal);
    border-top:2px solid var(--red);
    overflow-y:auto;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-12px);
    transition:opacity .22s var(--ease),transform .22s var(--ease),visibility .22s var(--ease);
  }
  .site-header[data-open] .site-nav{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
  }
  .nav-list{
    flex-direction:column;
    align-items:stretch;
    gap:0;
  }
  .nav-item{border-bottom:1px solid rgba(255,255,255,.12);}
  .nav-link{
    display:block;
    padding:16px 0 18px;
    font-family:var(--font-display);
    font-size:20px;
    font-weight:800;
    letter-spacing:.05em;
    color:rgba(255,255,255,.86);
  }
  .nav-link::after{
    left:0;
    right:auto;
    bottom:10px;
    width:28px;
    height:4px;
  }
}

@media (max-width:640px){
  body{font-size:16px;}
  .brand-name{font-size:16px;letter-spacing:.03em;}
  .brand-mark{width:18px;gap:2px;}
  .brand-mark-line{height:3px;}
  .brand-coord{display:none;}
  .btn-query{padding:8px 12px;font-size:13px;letter-spacing:.1em;box-shadow:3px 3px 0 rgba(0,0,0,.55);}
  .btn{padding:10px 16px;font-size:12px;}
  .grid--split{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:minmax(0,1fr);gap:32px;}
  .footer-col--brand{grid-column:auto;}
  .footer-bottom{flex-direction:column;align-items:flex-start;}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    transition-delay:0ms !important;
  }
  .footer-link:hover{transform:none;}
}
