/* AluProject — original theme styles */

:root {
  --graphite: #16181b;
  --graphite-soft: #1c2024;
  --charcoal: #22262b;
  --slate: #3a4048;
  --aluminum: #c8cdd3;
  --aluminum-bright: #e8eaed;
  --aluminum-mid: #a8adb4;
  --stone: #f3eee6;
  --stone-warm: #e8e1d5;
  --stone-deep: #d4cbbb;
  --bronze: #a67c52;
  --bronze-light: #c4a574;
  --bronze-dark: #7a5a38;
  --ink: #1c1a17;
  --muted: #6b6560;
  --paper: #f7f4ee;
  --white: #fbf8f3;
  --line: rgba(200, 205, 211, 0.22);
  --line-dark: rgba(28, 26, 23, 0.12);
  --danger: #8f2d2d;
  --success: #245c3a;
  --header-h: 4.5rem;
  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --font-sans: "Outfit", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", serif;
  --font-latin: "Outfit", "Noto Sans SC", sans-serif;
  --shadow: 0 18px 40px rgba(22, 24, 27, 0.16);
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--bronze-dark);
}

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

.sr-only,
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--bronze);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.6rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

h1 { font-size: clamp(2.15rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--bronze);
  font-family: var(--font-latin);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 40rem;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.note--center {
  text-align: center;
  margin: 2.5rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: linear-gradient(180deg, #b48a5e 0%, var(--bronze) 55%, var(--bronze-dark) 100%);
  color: var(--white);
  border-color: var(--bronze-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--primary:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--bronze-dark);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  font-family: var(--font-latin);
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.75rem 0 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(22, 24, 27, 0.92);
  color: var(--aluminum-bright);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, var(--max));
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

.site-brand:hover { color: inherit; }

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 4px;
  width: 28px;
  height: 28px;
}

.brand-mark__fin {
  display: block;
  background: linear-gradient(180deg, var(--aluminum-bright), var(--aluminum-mid));
  border-radius: 1px;
}

.brand-mark__fin:nth-child(2) {
  background: linear-gradient(180deg, var(--bronze-light), var(--bronze-dark));
  transform: translateY(4px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name,
.footer-brand .brand-name {
  font-family: var(--font-latin);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-tag {
  margin-top: 0.18rem;
  color: var(--aluminum-mid);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--aluminum-bright);
  font-size: 0.92rem;
  text-decoration: none;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.menu a:hover,
.current-menu-item > a,
.current_page_item > a,
.current-menu-ancestor > a {
  color: var(--white);
}

.menu a:hover::after,
.current-menu-item > a::after,
.current_page_item > a::after {
  transform: scaleX(1);
}

.header-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--bronze);
  color: var(--bronze-light);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.header-cta:hover {
  background: var(--bronze);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.05rem;
  height: 1px;
  margin: 0.28rem auto;
  background: var(--aluminum-bright);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  width: min(100%, var(--max));
  min-height: calc(100vh - var(--header-h));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 5rem) var(--gutter);
  color: var(--aluminum-bright);
}

.is-home .site-main {
  margin-top: calc(var(--header-h) * -1);
}

.is-home .hero {
  padding-top: calc(var(--header-h) + 3rem);
  background:
    linear-gradient(180deg, var(--graphite) 0%, var(--graphite-soft) 70%, #1a1714 100%);
  width: 100%;
  max-width: none;
  padding-left: max(var(--gutter), calc((100% - var(--max)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--max)) / 2));
}

.hero-copy h1 {
  color: var(--white);
  max-width: 12em;
}

.hero-copy .lead {
  color: var(--aluminum-mid);
}

.hero-copy .btn--ghost {
  color: var(--aluminum-bright);
  border-color: var(--aluminum-mid);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-chips li {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  color: var(--aluminum);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: relative;
  min-height: 22rem;
  background: var(--charcoal);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
}

.hero-visual__caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  font-family: var(--font-latin);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--aluminum);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 48%, transparent 62%);
  transform: translateX(-40%);
  animation: sheen 8s ease-in-out infinite;
}

@keyframes sheen {
  0%, 100% { transform: translateX(-40%); }
  50% { transform: translateX(40%); }
}

/* Bands and grids */
.band {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
}

.band--dark {
  width: 100%;
  max-width: none;
  background: var(--graphite);
  color: var(--aluminum-bright);
  padding-left: max(var(--gutter), calc((100% - var(--max)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--max)) / 2));
}

.band--dark h2,
.band--dark .section-head p:not(.eyebrow) {
  color: var(--aluminum-bright);
}

.band--dark .section-head p:not(.eyebrow) {
  color: var(--aluminum-mid);
}

.band--stone {
  width: 100%;
  max-width: none;
  background: var(--stone);
  padding-left: max(var(--gutter), calc((100% - var(--max)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--max)) / 2));
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.75rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.section-card,
.item-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line-dark);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-card:hover,
.item-card:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.section-card__visual,
.item-card__visual,
.product-visual,
.about-cta__visual,
.hero-visual {
  position: relative;
  overflow: hidden;
}

.section-card__visual {
  background: var(--charcoal);
}

.section-card__visual svg,
.item-card__visual svg {
  width: 100%;
  height: 13.5rem;
  object-fit: cover;
}

.section-card__index {
  position: absolute;
  left: 1rem;
  bottom: 0.8rem;
  font-family: var(--font-latin);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--bronze-light);
}

.section-card__body,
.item-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.25rem 1.4rem;
  flex: 1;
}

.section-card__body p,
.item-card__body p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.section-card__body .text-link,
.item-card__body .text-link {
  margin-top: auto;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.item-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.item-card__visual svg {
  height: 10.5rem;
}

.item-card::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--bronze), var(--aluminum), transparent);
}

.band-footer {
  margin-top: 2.25rem;
}

.about-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.8fr);
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  max-width: none;
  background:
    linear-gradient(180deg, var(--graphite-soft), #1b1714);
  color: var(--aluminum-bright);
  padding-left: max(var(--gutter), calc((100% - var(--max)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--max)) / 2));
}

.about-cta h2 { color: var(--white); }
.about-cta p { color: var(--aluminum-mid); }
.about-cta .btn--ghost { color: var(--aluminum-bright); border-color: var(--aluminum-mid); }

.about-cta__visual {
  background: var(--charcoal);
  min-height: 16rem;
}

.about-cta__visual svg {
  width: 100%;
  min-height: 16rem;
  object-fit: cover;
}

/* Inner pages */
.page-hero {
  background:
    linear-gradient(180deg, var(--graphite) 0%, var(--charcoal) 100%);
  color: var(--aluminum-bright);
  padding: clamp(4.5rem, 10vw, 7rem) var(--gutter) 4rem;
}

.page-hero__inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.page-hero h1 { color: var(--white); }

.page-hero .lead {
  color: var(--aluminum-mid);
  margin-top: 0.75rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  color: var(--aluminum-mid);
}

.breadcrumb a {
  color: var(--aluminum);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--bronze-light); }

.prose {
  max-width: 40rem;
}

.prose--wide { max-width: 48rem; }

.prose h2 { margin-top: 0.2rem; }

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { margin: 0; max-width: 36rem; }

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.pillar {
  padding: 1.6rem 1.4rem;
  background: var(--white);
  border-top: 3px solid var(--bronze);
}

.product-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: start;
}

.product-visual {
  background: var(--charcoal);
  padding: 0 0 1rem;
}

.product-visual svg {
  width: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.product-visual .note {
  margin: 1rem 1.1rem 0;
}

/* Contact */
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.7fr);
  gap: 2.5rem;
  align-items: start;
}

.contact-panel,
.contact-aside {
  background: var(--white);
  border: 1px solid var(--line-dark);
  padding: 1.75rem;
}

.contact-aside h2 { font-size: 1.35rem; }

.contact-email-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 1.4rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.contact-email-block span {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.contact-email-block a {
  font-family: var(--font-latin);
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
}

.inquiry-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 500;
}

.req { color: var(--bronze-dark); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--stone-deep);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--bronze);
  outline-offset: 1px;
  background: var(--white);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin: 0.5rem 0 0;
}

.form-notice {
  margin-bottom: 1.2rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid currentColor;
}

.form-notice--success {
  color: var(--success);
  background: #e8f3ec;
}

.form-notice--error {
  color: var(--danger);
  background: #f8ecec;
}

/* Footer */
.site-footer {
  background: var(--graphite);
  color: var(--aluminum-mid);
  padding: 3.5rem var(--gutter) 2rem;
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 0.9fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand .brand-name { color: var(--aluminum-bright); margin-bottom: 0.5rem; }
.footer-tag { margin: 0; font-size: 0.92rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  align-content: flex-start;
}

.footer-nav a {
  color: var(--aluminum);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover { color: var(--bronze-light); }

.footer-contact p { margin: 0 0 0.3rem; font-size: 0.8rem; letter-spacing: 0.12em; }
.footer-contact a {
  color: var(--aluminum-bright);
  font-family: var(--font-latin);
  text-decoration: none;
}

.footer-base {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.82rem;
}

.footer-base p { margin: 0; max-width: 42rem; }

.content-stack { display: grid; gap: 1.5rem; }
.content-article h2 { font-size: 1.4rem; }
.content-article a { text-decoration: none; }

/* Responsive */
@media (max-width: 1100px) {
  .item-grid,
  .item-grid--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero,
  .about-cta,
  .product-band,
  .contact-band,
  .footer-inner,
  .section-grid,
  .about-pillars,
  .cta-band,
  .inquiry-form .form-row {
    grid-template-columns: 1fr;
  }

  .cta-band { display: grid; }

  .item-grid,
  .item-grid--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.5rem;
    background: rgba(22, 24, 27, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .site-nav .menu a {
    display: block;
    padding: 0.7rem 0;
    font-size: 1.15rem;
  }

  .header-cta {
    width: fit-content;
    margin-top: 0.8rem;
  }

  body.nav-locked { overflow: hidden; }

  .hero-visual { min-height: 16rem; }
  .hero-visual svg { min-height: 16rem; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  .item-grid,
  .item-grid--five {
    grid-template-columns: 1fr;
  }

  .footer-base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
