:root {
  --bg: #0b0b0c;
  --bg-elevated: #121315;
  --graphite: #1a1c1f;
  --line: rgba(232, 226, 216, 0.1);
  --line-strong: rgba(232, 226, 216, 0.18);
  --cream: #ebe6dc;
  --cream-soft: #cfc9bd;
  /* --steel brightened one step (was #a39d93) for readability on office screens. */
  --steel: #b9b3a8;
  --copper: #c4784a;
  --copper-hot: #d4895c;
  --amber: #d3b184;
  --focus: #e8c39a;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 72rem;
  --header: 4.25rem;
  /* Small uppercase mono label size. ~13px — deliberately not below this. */
  --label: 0.8rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--copper-hot);
}

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

::selection {
  background: rgba(196, 120, 74, 0.35);
  color: var(--cream);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--cream);
  color: var(--bg);
  font-size: 0.875rem;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__glow {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 55% 40% at 78% 8%, rgba(196, 120, 74, 0.11), transparent 55%),
    radial-gradient(ellipse 40% 35% at 8% 92%, rgba(201, 164, 106, 0.05), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 255, 255, 0.035), transparent 60%);
}

.atmosphere__dust {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background:
    radial-gradient(circle at 18% 22%, rgba(232, 226, 216, 0.05) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 38%, rgba(196, 120, 74, 0.07) 0 1px, transparent 1.5px),
    radial-gradient(circle at 40% 78%, rgba(232, 226, 216, 0.04) 0 1px, transparent 1.5px);
  background-size: 140px 140px, 190px 190px, 110px 110px;
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.atmosphere__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image:
    linear-gradient(rgba(232, 226, 216, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 226, 216, 0.5) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 55% at 70% 20%, #000 0%, transparent 70%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 12, 0.78);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--measure);
  margin: 0 auto;
  min-height: var(--header);
  padding: 0 var(--space);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--cream);
}

.wordmark:hover {
  color: var(--cream);
}

.wordmark__mark {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--copper);
  align-self: center;
}

.wordmark__name {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.wordmark__place {
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Menu control is a real <button>: focusable, space/enter operable. */
.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.2rem;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--cream-soft);
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.nav-button[aria-expanded="true"] .nav-button__text {
  color: var(--cream);
}

.nav-button__lines {
  width: 1.1rem;
  height: 0.7rem;
  background:
    linear-gradient(var(--cream), var(--cream)) top / 100% 1px no-repeat,
    linear-gradient(var(--cream), var(--cream)) bottom / 100% 1px no-repeat;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
}

.nav a {
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-soft);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--cream);
}

.nav__cta {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line-strong);
  color: var(--cream) !important;
}

.nav__cta:hover {
  border-color: var(--copper);
  color: var(--copper-hot) !important;
}

.nav-button[aria-expanded="true"] ~ .nav {
  display: flex;
  position: absolute;
  top: calc(var(--header) + 1px);
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 0.4rem var(--space) 1.1rem;
  background: rgba(11, 11, 12, 0.96);
  border-bottom: 1px solid var(--line);
}

.nav-button[aria-expanded="true"] ~ .nav a {
  width: 100%;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.nav-button[aria-expanded="true"] ~ .nav .nav__cta {
  width: auto;
  margin-top: 0.85rem;
  border-bottom: 1px solid var(--line-strong);
}

@media (min-width: 840px) {
  .nav-button {
    display: none;
  }

  .nav {
    display: flex;
  }
}

/* ----------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.25rem;
  max-width: var(--measure);
  margin: 0 auto;
  /* Capped: a tall desktop window should not turn the first screen into
     a field of black. 100svh keeps iOS Safari's toolbar out of the maths. */
  min-height: min(calc(100svh - var(--header)), 37rem);
  padding: clamp(2.25rem, 5vw, 3.25rem) var(--space) clamp(2.25rem, 4.5vw, 3rem);
}

.hero__copy {
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  line-height: 0.98;
  color: var(--cream);
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.95rem, 4vw, 2.9rem);
  line-height: 1.08;
}

h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.hero__lede,
.section__lede {
  max-width: 38rem;
  margin: 1.2rem 0 0;
  color: var(--cream-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.18rem);
  font-weight: 300;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__hint {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--steel);
  font-size: 0.95rem;
  font-weight: 300;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.button--primary {
  background: var(--copper);
  color: #17100b;
}

.button--primary:hover {
  background: var(--copper-hot);
  color: #17100b;
}

.button--ghost {
  border-color: var(--line-strong);
  color: var(--cream);
}

.button--ghost:hover {
  border-color: var(--cream-soft);
  color: var(--cream);
}

.hero__figure {
  display: flex;
  justify-content: center;
}

/* Photo slots. Dropping an <img> into a slot needs no other edit: it is sized
   here, and in the hero the decorative SVG steps aside on its own. */
.hero__figure img,
.section__photo {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #f3f1ec;
}

.hero__figure img {
  width: min(100%, 25rem);
  object-fit: cover;
}

.hero__figure:has(img) .hex-field {
  display: none;
}

.section__photo {
  margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
}

.contact__aside .section__photo {
  margin: 1.25rem 0 0;
}

.hex-field {
  opacity: 0.72;
}

.hex-field {
  width: min(100%, 20rem);
  color: var(--cream);
}

.hex-field__rings polygon,
.hex-field__rings circle {
  stroke-width: 0.8;
}

.hex-field__rings {
  opacity: 0.38;
}

.hex-field__rings polygon:first-child {
  opacity: 1;
  stroke: var(--copper);
  stroke-width: 1.1;
}

.hex-field__thread {
  stroke-width: 1.15;
  opacity: 0.55;
}

.hex-field__profile {
  color: rgba(201, 164, 106, 0.28);
  stroke-width: 1.1;
}

/* ------------------------------------------------------------- sections */

.section {
  max-width: var(--measure);
  margin: 0 auto;
  /* Tightened from clamp(4.5rem, 11vw, 8.5rem) — the old value put ~270px
     of empty black between every section. */
  padding: clamp(2.35rem, 4.6vw, 3.6rem) var(--space);
  border-top: 1px solid var(--line);
}

/* On wide screens the intro runs as two columns so the right half of the
   page is not left empty. Below 1000px it stacks. */
.section__intro {
  margin-bottom: clamp(1.4rem, 2.4vw, 2rem);
}

.section__lede {
  margin-top: 1rem;
}

@media (min-width: 1000px) {
  .section__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    column-gap: 3.5rem;
    align-items: start;
  }

  .section__intro .eyebrow {
    grid-column: 1 / -1;
  }

  .section__intro h2 {
    grid-column: 1;
    max-width: 22ch;
  }

  .section__intro .section__lede {
    grid-column: 2;
    margin-top: 0.35rem;
  }

  /* No lede in this section — let the heading use the full measure. */
  .section--taiwan .section__intro h2 {
    max-width: 28ch;
  }
}

.materials {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.materials__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.materials__item h3 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.materials__item p:last-child {
  max-width: 34rem;
  margin: 0.45rem 0 0;
  color: var(--steel);
}

/* ---------------------------------------------------------- spec table */

.spec-table {
  margin: 0;
  border-top: 1px solid var(--line);
}

.spec-table__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.spec-table dt {
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

.spec-table dd {
  margin: 0;
  color: var(--cream-soft);
  font-weight: 300;
}

@media (min-width: 840px) {
  .spec-table__row {
    grid-template-columns: minmax(12rem, 0.42fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.1rem 0;
  }
}

/* -------------------------------------------------------------- process */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps__item {
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
}

.steps__num {
  display: block;
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--copper);
}

.steps__item h3 {
  margin-bottom: 0.55rem;
}

.steps__item p {
  margin: 0;
  max-width: 26rem;
  color: var(--steel);
}

/* --------------------------------------------------------------- taiwan */

.split {
  display: grid;
  gap: 2.25rem;
}

.split__col h3 {
  margin-bottom: 0.85rem;
  color: var(--cream);
}

.split__col p {
  margin: 0;
  color: var(--cream-soft);
  font-weight: 300;
}

/* -------------------------------------------------------------- contact */

.contact__grid {
  display: grid;
  gap: 2.5rem;
}

.contact-mail {
  display: inline-block;
  margin-top: 1.8rem;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.7rem, 4.6vw, 3rem);
  line-height: 1.1;
  text-decoration: none;
  color: var(--cream);
  border-bottom: 1px solid rgba(196, 120, 74, 0.55);
}

.contact-mail:hover {
  color: var(--copper-hot);
  border-bottom-color: var(--copper-hot);
}

.contact-meta {
  margin: 1.1rem 0 0;
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.contact__aside {
  padding: 1.5rem 1.6rem 1.6rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 28, 31, 0.85), rgba(18, 19, 21, 0.6));
}

.contact__aside-label {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.contact__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact__list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream-soft);
  font-weight: 300;
}

.contact__list li:last-child {
  border-bottom: 0;
}

.contact__aside-note {
  margin: 1.1rem 0 0;
  color: var(--steel);
  font-size: 0.95rem;
  font-weight: 300;
}

/* --------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem var(--space) 2.5rem;
}

.site-footer__brand {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
}

.site-footer__note {
  margin: 0.45rem 0 0;
  color: var(--steel);
  font-size: 0.92rem;
}

/* Verifiable identity block. Rows are <dt>/<dd> pairs — add city, founding
   year and registration number by copying one row, nothing else changes. */
.site-footer__identity {
  display: grid;
  gap: 0.35rem 2rem;
  margin: 1.4rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.site-footer__identity-row {
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: 0.75rem;
}

.site-footer__identity dt {
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.site-footer__identity dd {
  margin: 0;
  color: var(--cream-soft);
  font-size: 0.95rem;
}

.site-footer__legal {
  margin: 1.1rem 0 0;
  font-family: var(--mono);
  font-size: var(--label);
  letter-spacing: 0.08em;
  color: var(--steel);
}

.site-footer__legal a {
  text-decoration: none;
}

/* ---------------------------------------------------------- breakpoints */

@media (min-width: 840px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .hero__figure {
    justify-content: flex-end;
  }

  .hex-field {
    width: min(100%, 23rem);
  }

  .materials__item {
    grid-template-columns: minmax(14rem, 0.65fr) minmax(16rem, 1fr);
    align-items: baseline;
    padding: 1.35rem 0;
  }

  .materials__item h3 {
    grid-column: 1;
  }

  .materials__item p:last-child {
    grid-column: 2;
    margin: 0;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .split__col + .split__col {
    padding-left: 3.5rem;
    border-left: 1px solid var(--line);
  }

  .contact__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    gap: 3.5rem;
    align-items: start;
  }

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

@media (min-width: 1100px) {
  .hex-field {
    width: 25rem;
  }
}

/* ---------------------------------------------------- narrow screens

   Most buyers open this link on a phone first, so the same tightening the
   desktop got has to land here too. Everything below removes whitespace or
   shrinks decoration — no copy is hidden at any width. */

@media (max-width: 839px) {
  /* 17px at 1.5 is still comfortable on a phone and takes ~1.7px off every
     line of body copy — the single biggest saving available without cutting
     a word. */
  body {
    line-height: 1.5;
  }

  .hero__lede,
  .section__lede {
    line-height: 1.5;
  }

  .section {
    padding: 1.8rem var(--space);
  }

  .hero {
    gap: 1.5rem;
    padding: 1.6rem var(--space) 1.5rem;
  }

  .hero__lede {
    margin-top: 0.9rem;
  }

  .hero__actions {
    margin-top: 1.2rem;
    gap: 0.6rem;
  }

  .hero__hint {
    margin-top: 0.8rem;
  }

  /* Decoration, not content: it can afford to be small on a phone. */
  .hex-field {
    width: min(100%, 8rem);
  }

  .section__intro {
    margin-bottom: 1rem;
  }

  .section__lede {
    margin-top: 0.75rem;
  }

  .materials__item {
    padding: 0.8rem 0;
  }

  .materials__item p:last-child {
    margin-top: 0.3rem;
  }

  .spec-table__row {
    padding: 0.6rem 0;
  }

  .steps {
    gap: 0.9rem;
  }

  .steps__item {
    padding-top: 0.9rem;
  }

  .steps__num {
    margin-bottom: 0.5rem;
  }

  .split {
    gap: 1.6rem;
  }

  .contact__grid {
    gap: 1.6rem;
  }

  .contact-mail {
    margin-top: 1.2rem;
  }

  .contact__aside {
    padding: 1.1rem 1.15rem 1.2rem;
  }

  .contact__aside-label {
    margin-bottom: 0.7rem;
  }

  .contact__list li {
    padding: 0.45rem 0;
  }

  .site-footer__inner {
    padding: 1.6rem var(--space) 1.9rem;
  }

  .site-footer__identity {
    gap: 0.2rem 1.5rem;
    margin-top: 1.1rem;
    padding-top: 0.9rem;
  }

  .site-footer__legal {
    margin-top: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
