/* ==========================================================================
   SS LINKZ — Stainless Steel Chains
   Design tokens
   ========================================================================== */
:root {
  --bg:        #0b0b0b;
  --bg-2:      #131313;
  --bg-3:      #1a1a1a;
  --ink:       #ebebeb;
  --ink-2:     #b9b9b9;
  --muted:     #8a8a8a;
  --line:      rgba(255, 255, 255, 0.28);
  --line-soft: rgba(255, 255, 255, 0.14);

  --font-logo: "Michroma", "Orbitron", sans-serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --track-wide:  0.32em;
  --track-mid:   0.22em;
  --track-tight: 0.16em;

  --gutter: clamp(20px, 4.5vw, 64px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
.label {
  font-size: 11px;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 400;
}
.label--stack { line-height: 2.1; }

.display {
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  line-height: 1.22;
  margin: 0;
  color: var(--ink);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  font-family: var(--font-logo);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.logo__ss {
  font-size: 1.28em;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 0.6px currentColor;
}
.logo__word {
  font-size: 1em;
  letter-spacing: 0.34em;
  font-weight: 400;
  opacity: 0.92;
}

/* Outlined CTA */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 1.6em;
  padding: 0.95em 1.85em 0.95em 2.1em;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink);
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.btn:hover { border-color: var(--ink); background: rgba(255,255,255,0.04); }
.btn .arrow { width: 22px; height: 10px; flex: none; }
.arrow { fill: none; stroke: currentColor; stroke-width: 1.1; }
.btn:hover .arrow { transform: translateX(3px); }
.arrow { transition: transform .35s var(--ease); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 26px var(--gutter);
  font-size: 17px;
}
.site-header .nav--left { justify-self: start; }
.site-header .logo--center { justify-self: center; }
.site-header .nav--right { justify-self: end; }
.nav__mobile-only { display: none; }

/* Shop dropdown */
.dropdown { position: relative; }
.dropdown__toggle { display: inline-flex; align-items: center; gap: 8px; }
.dropdown__toggle .chev { width: 9px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .3s var(--ease); }
.dropdown.is-open .dropdown__toggle .chev { transform: rotate(180deg); }
.dropdown__toggle::after { display: none; }
.dropdown__menu {
  position: absolute; top: calc(100% + 14px); left: -18px;
  min-width: 190px;
  background: rgba(11,11,11,0.96);
  border: 1px solid var(--line-soft);
  padding: 10px 0;
  display: grid;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.dropdown__menu::before {
  /* hover bridge so the menu doesn't close crossing the gap */
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.dropdown.is-open .dropdown__menu,
.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
}
.dropdown__item {
  display: block;
  padding: 11px 22px;
  font-size: 10.5px; font-weight: 400;
  letter-spacing: var(--track-mid); text-transform: uppercase;
  color: var(--ink-2);
  transition: color .25s, background-color .25s;
}
.dropdown__item:hover, .dropdown__item:focus-visible { color: var(--ink); background: rgba(255,255,255,0.05); outline: none; }
.site-header--solid {
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 30px);
}
.nav__link {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__divider {
  width: 1px; height: 22px; background: var(--line);
  margin: 0 4px;
}
.cart {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 400; letter-spacing: 0.08em;
  color: var(--ink);
}
.cart svg { width: 20px; height: 18px; }
.cart svg { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }

.menu-toggle {
  display: none;
  width: 34px; height: 34px;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 1px; background: var(--ink); position: relative;
  transition: transform .3s var(--ease), opacity .3s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 47vw, 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% 58%;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,8,8,0.92) 0%, rgba(8,8,8,0.70) 28%, rgba(8,8,8,0.15) 55%, rgba(8,8,8,0) 75%),
    linear-gradient(180deg, rgba(8,8,8,0.55) 0%, rgba(8,8,8,0) 30%, rgba(8,8,8,0) 80%, rgba(8,8,8,0.35) 100%);
}
.hero__inner {
  padding: 120px var(--gutter) 60px;
  display: grid;
  gap: 42px;
  max-width: 640px;
}
.hero__title { font-size: clamp(30px, 3.6vw, 46px); }
.hero__tag {
  position: absolute;
  left: var(--gutter);
  bottom: 44px;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { position: relative; }
.section--textured {
  background: var(--bg-2) url("../assets/img/texture-dark.jpg") center / cover no-repeat;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section--textured::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(10,10,10,0.55);
}
.section > .inner { position: relative; }

.section-head {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 28px;
}
.section-head .rule { flex: 1; height: 1px; background: var(--line); }
.section-head .label--right { font-size: 10px; color: var(--muted); }

/* Chains */
.chains .inner { padding: 44px var(--gutter) 48px; }
.chain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.chain-card { display: block; }
.chain-card__media {
  position: relative;
  aspect-ratio: 1 / 1.03;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-3);
}
.chain-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom, 1.9));
  transform-origin: var(--origin, 50% 50%);
  transition: transform .8s var(--ease), filter .8s var(--ease);
  filter: saturate(0.85) contrast(1.05);
}
.chain-card:hover .chain-card__media img { transform: scale(calc(var(--zoom, 1.9) * 1.05)); }
.chain-card__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px 0 6px;
  font-size: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--ink);
}
.chain-card__row .arrow { width: 24px; height: 10px; }

/* Steel fits in */
.fits {
  position: relative;
  min-height: clamp(420px, 38vw, 560px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.fits__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 40% 45%;
}
.fits::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(8,8,8,0) 45%, rgba(8,8,8,0.55) 62%, rgba(10,10,10,0.94) 78%);
}
.fits__inner {
  margin-left: auto;
  padding: 60px var(--gutter);
  width: min(100%, 38%);
  display: grid; gap: 32px;
}
.fits__title { font-size: clamp(28px, 3vw, 40px); letter-spacing: 0.34em; }

/* Material matters */
.material {
  display: grid;
  grid-template-columns: 1.24fr 1fr;
  min-height: clamp(360px, 32vw, 460px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.material__media { position: relative; overflow: hidden; }
.material__media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.material__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,8,8,0) 70%, rgba(12,12,12,0.65) 100%);
}
.material__panel {
  position: relative;
  background: var(--bg-2) url("../assets/img/texture-dark.jpg") center / cover no-repeat;
  padding: 48px var(--gutter) 48px clamp(28px, 4vw, 60px);
  display: grid; align-content: center; gap: 30px;
  isolation: isolate;
}
.material__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,10,10,0.6);
}
.material__panel::after {
  content: ""; position: absolute; left: clamp(6px, 1.4vw, 22px); top: 26px; bottom: 26px;
  width: 1px; background: var(--line);
}
.material__title { font-size: clamp(22px, 2.1vw, 28px); letter-spacing: 0.34em; }
.specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.spec { display: grid; grid-template-columns: 36px 1fr; gap: 18px; align-items: center; }
.spec__icon { width: 36px; height: 36px; }
.spec__icon path, .spec__icon polygon { fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; }
.spec__name { font-size: 12px; letter-spacing: var(--track-wide); text-transform: uppercase; font-weight: 400; margin: 0 0 4px; color: var(--ink); }
.spec__sub { font-size: 10px; letter-spacing: var(--track-mid); text-transform: uppercase; margin: 0; color: var(--muted); font-weight: 400; }

/* Ethos band */
.ethos {
  position: relative;
  min-height: clamp(180px, 17vw, 240px);
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
}
.ethos__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
}
.ethos::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(8,8,8,0.42);
}
.ethos__inner {
  width: 100%;
  display: flex; align-items: center; gap: clamp(24px, 4vw, 60px);
  padding: 30px var(--gutter);
}
.ethos__inner .rule { flex: 1; height: 1px; background: var(--line); }
.ethos .logo { font-size: 17px; }

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 30px var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}
.site-footer .logo { font-size: 13px; }
.site-footer .nav { justify-content: center; }
.social { display: flex; justify-content: flex-end; gap: 18px; }
.social a { display: inline-flex; width: 22px; height: 22px; opacity: 0.9; transition: opacity .3s; }
.social a:hover { opacity: 1; }
.social svg { width: 100%; height: 100%; }
.social path, .social rect, .social circle { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }
.social .fill { fill: currentColor; stroke: none; }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.page {
  padding: 40px var(--gutter) 96px;
  max-width: 1120px;
  margin: 0 auto;
}
.page__title { font-size: clamp(26px, 3vw, 40px); margin-bottom: 36px; }
.prose { max-width: 62ch; }
.prose p { font-size: 16px; line-height: 1.85; color: var(--ink-2); margin: 0 0 1.4em; }
.prose h2 { font-size: 11px; letter-spacing: var(--track-wide); text-transform: uppercase; font-weight: 400; color: var(--ink); margin: 48px 0 16px; }
.prose h2:first-of-type { margin-top: 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 56px 0 0; padding: 40px 0 0; border-top: 1px solid var(--line-soft); }
.pillar h3 { font-size: 12px; letter-spacing: var(--track-wide); text-transform: uppercase; font-weight: 400; margin: 0 0 10px; }
.pillar p { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0; }

.faq { max-width: 62ch; margin: 56px 0 0; padding: 40px 0 0; border-top: 1px solid var(--line-soft); }
.faq > h2 { font-size: 11px; letter-spacing: var(--track-wide); text-transform: uppercase; font-weight: 400; color: var(--ink); margin: 0 0 8px; }
.faq dt { font-size: 15px; color: var(--ink); margin: 32px 0 8px; }
.faq dd { font-size: 15px; line-height: 1.85; color: var(--ink-2); margin: 0; }

/* --------------------------------------------------------------------------
   Coming soon dialog
   -------------------------------------------------------------------------- */
.dialog {
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  padding: 0;
  width: min(92vw, 520px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.dialog::backdrop { background: rgba(0,0,0,0.72); backdrop-filter: blur(3px); }
.dialog__inner { padding: 44px 40px 40px; display: grid; gap: 22px; text-align: center; }
.dialog__inner .logo { justify-self: center; font-size: 15px; }
.dialog__title { font-size: 20px; letter-spacing: 0.34em; }
.dialog__copy { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.dialog__close { position: absolute; top: 12px; right: 14px; font-size: 20px; line-height: 1; opacity: .7; padding: 6px; }
.dialog__close:hover { opacity: 1; }
.notify { display: grid; grid-template-columns: 1fr auto; gap: 0; margin-top: 6px; }
.notify input {
  background: transparent; border: 1px solid var(--line); border-right: 0;
  color: var(--ink); padding: 0.95em 1.2em; font: inherit; font-size: 13px; letter-spacing: 0.06em;
  outline: none; min-width: 0;
}
.notify input::placeholder { color: var(--muted); }
.notify input:focus { border-color: var(--ink); }
.notify .btn { border-radius: 0; }
.notify__done { font-size: 11px; letter-spacing: var(--track-mid); text-transform: uppercase; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .chain-grid { grid-template-columns: repeat(2, 1fr); }
  .fits__inner { width: min(100%, 52%); }
  .material { grid-template-columns: 1fr; }
  .material__media { min-height: 320px; }
  .material__media::after { background: linear-gradient(180deg, rgba(8,8,8,0) 70%, rgba(12,12,12,0.8) 100%); }
  .material__panel::after { display: none; }
  .pillars { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { padding: 20px 16px; grid-template-columns: 34px 1fr 34px; }
  .site-header .nav--right { display: none; }
  .site-header .nav--left { justify-self: stretch; align-self: stretch; }
  .menu-toggle { display: inline-flex; justify-self: start; }
  .nav__mobile-only { display: flex; flex-direction: column; align-items: center; gap: 34px; }
  .dropdown { display: grid; justify-items: center; gap: 18px; }
  .dropdown__toggle { font-size: 14px; }
  .dropdown__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; border: 0; padding: 0; min-width: 0; text-align: center; gap: 6px;
  }
  .dropdown__menu::before { display: none; }
  .dropdown__item { font-size: 12px; padding: 6px 12px; }
  .nav {
    position: fixed; inset: 0; z-index: 30;
    background: rgba(8,8,8,0.96);
    flex-direction: column; justify-content: center; gap: 34px;
    transform: translateY(-100%);
    transition: transform .45s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav__link { font-size: 14px; }
  .nav__divider { width: 40px; height: 1px; }
  .site-header .nav .cart { font-size: 13px; }
  .site-header .nav { transform: translateY(-100%); }
  .site-header .nav.is-open { transform: none; }
  .menu-toggle { position: relative; z-index: 31; }
  .hero__inner { padding: 110px 16px 110px; gap: 30px; }
  .hero__title { font-size: 26px; letter-spacing: 0.26em; }
  .hero__tag { left: 16px; bottom: 30px; }
  .chains .inner { padding: 36px 16px 40px; }
  .section-head { gap: 14px; }
  .section-head .label--right { display: none; }
  .chain-grid { gap: 14px; }
  .chain-card__row { font-size: 13px; }
  .fits { min-height: 520px; align-items: end; }
  .fits::before { background: linear-gradient(180deg, rgba(8,8,8,0) 35%, rgba(10,10,10,0.94) 65%); }
  .fits__inner { width: 100%; padding: 40px 16px; }
  .material__panel { padding: 40px 16px; }
  .ethos__inner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 36px 16px; }
  .ethos__inner .rule { width: 100%; flex: none; }
  .site-footer { grid-template-columns: 1fr; text-align: center; gap: 20px; padding: 30px 16px; }
  .site-footer .logo { justify-self: center; }
  .site-footer .nav { position: static; transform: none; background: none; flex-direction: row; flex-wrap: wrap; gap: 18px; }
  .site-footer .nav__link { font-size: 10.5px; }
  .social { justify-content: center; }
  .page { padding: 32px 16px 72px; }
  .dialog__inner { padding: 36px 22px 30px; }
  .notify { grid-template-columns: 1fr; }
  .notify input { border-right: 1px solid var(--line); border-bottom: 0; }
}

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