:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --stone: #eeebe3;
  --ink: #202322;
  --muted: #55534d;
  --border: #d9d1c3;
  --clay: #9d4428;
  --copper: #ef9c73;
  --white: #fffaf2;
  --width: 76rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

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

.hero :focus-visible, .contact :focus-visible, .site-footer :focus-visible {
  outline-color: var(--copper);
}

.skip-link {
  position: absolute;
  inset: 0 auto auto var(--gutter);
  z-index: 2;
  padding: .7rem 1rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus { transform: translateY(.5rem); }

.container {
  width: min(var(--width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  min-height: 5rem;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.65rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  justify-self: start;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
  border-radius: .18rem;
  background: var(--ink);
}

.brand-mark::before, .brand-mark::after {
  position: absolute;
  content: "";
  width: 1.12rem;
  height: .38rem;
  transform: skewX(-28deg);
  background: var(--copper);
}

.brand-mark::before { inset: .69rem auto auto .76rem; }
.brand-mark::after { inset: 1.28rem auto auto .51rem; }

.brand-name {
  display: grid;
  gap: .2rem;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.045em;
}

.brand-name span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(.75rem, 2.5vw, 2.5rem); }
nav a, .site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover { color: var(--clay); }

.language-switch { position: relative; z-index: 1; justify-self: end; }
.language-switch summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.5rem;
  padding-inline: .5rem;
  border-radius: .2rem;
  font-size: .9rem;
  font-weight: 700;
  list-style: none;
  white-space: nowrap;
  cursor: pointer;
}

.language-switch summary::-webkit-details-marker { display: none; }
.language-switch summary::after {
  width: .4rem;
  height: .4rem;
  margin-block: -.18rem 0;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  content: "";
}

.language-switch[open] summary, .language-switch summary:hover { background: var(--stone); }
.language-switch[open] summary::after { transform: rotate(225deg); margin-block: .18rem 0; }

.language-nav {
  position: absolute;
  inset: calc(100% + .3rem) 0 auto auto;
  display: grid;
  min-width: 9.5rem;
  padding: .3rem;
  border: 1px solid var(--border);
  border-radius: .2rem;
  background: var(--paper);
  box-shadow: 0 .45rem 1.35rem #20232224;
}

.language-switch:not([open]) .language-nav { display: none; }

.language-nav a {
  padding-inline: .65rem;
  border-radius: .15rem;
  white-space: nowrap;
}

.language-nav a[aria-current="page"], .language-nav a:hover { background: var(--stone); color: var(--clay); }

.button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: .75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .2rem;
  font-size: .96rem;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.button-outline {
  justify-self: end;
  min-height: 2.75rem;
  border-color: #a39a8b;
}

.button-outline:hover { background: var(--stone); }
.button-primary { background: var(--copper); color: #211b16; }
.button-primary:hover { background: #ffb38c; }
.button-light-outline { border-color: #fffaf29c; background: #14171755; }
.button-light-outline:hover { background: #fffaf223; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #1a2123;
  color: var(--white);
}

.hero-media, .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.hero::after {
  content: "";
  background:
    linear-gradient(0deg, #101514ee 0%, #10151418 25%, transparent 75%),
    linear-gradient(90deg, #101514ec 0%, #101514d6 24%, #1015148a 52%, #1015140b 84%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}

.hero-media img[hidden] { display: none; }
.hero-media .photo-casthouse { object-position: 50% 58%; }
.hero-media .photo-lining { filter: saturate(.45); }
.hero-media .photo-casting { object-position: 56% 43%; }

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(29rem, 38vw, 37rem);
  padding-block: clamp(3.8rem, 7.1vw, 7rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.85rem; }

.banner-controls:not([hidden]) {
  display: grid;
  width: min(100%, 53rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 1.15rem;
  gap: .65rem;
}

.banner-controls button {
  padding: .7rem .2rem .3rem;
  border: 0;
  border-top: 2px solid #fffaf266;
  background: none;
  color: #e8dfd5;
  font-family: inherit;
  font-size: .89rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
  min-height: 2.75rem;
}

.banner-controls button[aria-pressed="true"] { border-color: var(--copper); color: var(--white); }
.banner-controls button:hover { border-color: var(--white); color: var(--white); }

.label {
  margin-bottom: .95rem;
  color: var(--clay);
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.35rem;
  color: var(--copper);
}

.hero-label::before { content: ""; width: 1.7rem; height: 2px; background: currentColor; }

h1 {
  max-width: 51rem;
  font-size: clamp(3.05rem, 5.45vw, 5.05rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.section { padding-block: clamp(3.75rem, 7.1vw, 6.7rem); }

h2 {
  font-size: clamp(2.25rem, 4.05vw, 3.65rem);
  line-height: 1.03;
  letter-spacing: -.057em;
  text-wrap: balance;
}

.section-intro, .products-heading p, .markets-grid > p {
  color: var(--muted);
  font-size: 1.075rem;
  line-height: 1.65;
}

.section-intro { max-width: 29rem; margin-top: 1rem; }

.products-heading {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: 2.05rem;
}

.products-heading p { max-width: 24rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.3rem, 3vw, 2.5rem);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .22rem;
  background: #fdfcf8;
}

.product-photo {
  position: relative;
  aspect-ratio: 2.45;
  margin: 0;
  overflow: hidden;
  background: #343b37;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-photo-tapping img { object-position: 50% 52%; }
.product-photo-lining img { filter: saturate(.45); }
.product-photo-casting img { object-position: 50% 57%; }
.product-photo-steelworks img { object-position: 50% 51%; }

.product-photo figcaption {
  position: absolute;
  inset: auto auto .65rem .7rem;
  padding: .32rem .55rem;
  border-radius: .15rem;
  background: #141717e6;
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.15rem, 2.6vw, 1.9rem);
}

.product-body h3 { font-size: clamp(1.5rem, 2.5vw, 2.15rem); line-height: 1.08; letter-spacing: -.038em; }
.product-body h3 span { font-size: .63em; white-space: nowrap; }
.product-body p { margin-block: .65rem 1.2rem; color: var(--muted); line-height: 1.55; }
.product-link { margin-top: auto; color: #8c3921; font-size: .94rem; font-weight: 700; text-underline-offset: .23em; }
.product-link:hover { color: var(--ink); }

.markets {
  border-block: 1px solid var(--border);
  background: var(--stone);
  padding-block: clamp(2.9rem, 5.3vw, 4.5rem);
}

.markets-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.3rem, 6.4vw, 6rem);
}

.markets-grid > p { max-width: 29rem; }

.contact, .site-footer { background: var(--ink); color: var(--white); }
.contact .label { color: var(--copper); }
.contact .section-intro { color: #ded5c6; }

.contact-methods {
  display: grid;
  width: fit-content;
  max-width: 100%;
  margin-top: 1.5rem;
  gap: .55rem;
}

.contact-method {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  align-items: baseline;
  gap: .45rem;
  padding: .7rem .8rem;
  border: 1px solid #60594d;
  border-radius: .2rem;
  color: var(--white);
  font-size: .94rem;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-method span:first-child { color: var(--copper); font-weight: 700; }
.contact-method:hover { border-color: var(--copper); }

.quote-details {
  max-width: 29rem;
  padding: 1.5rem clamp(1.3rem, 3vw, 2.4rem);
  border: 1px solid #60594d;
  border-radius: .2rem;
}

.quote-details h3 { font-size: 1.13rem; }
.quote-details ul { margin-block: .75rem 0; padding-inline-start: 1.2rem; color: #ded5c6; line-height: 1.8; }
.quote-details li::marker { color: var(--copper); }

.site-footer { border-top: 1px solid #4d473e; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: .45rem;
  color: #ded5c6;
  font-size: .9rem;
}

.site-footer a:hover { text-decoration: underline; text-underline-offset: .24em; }

.photo-credits { padding-bottom: 1.2rem; color: #ded5c6; font-size: .86rem; line-height: 1.55; }
.photo-credits summary { width: fit-content; cursor: pointer; }
.photo-credits ul { padding-inline-start: 1.25rem; }
.photo-credits a { min-height: auto; display: inline; text-decoration: underline; text-underline-offset: .18em; font-size: inherit; }

.error-main { min-height: 70vh; }
.error-main .button { margin-top: 1.5rem; }

html:lang(zh-Hant) { font-family: "Helvetica Neue", Arial, "PingFang TC", "Noto Sans TC", sans-serif; }
html:lang(zh-Hant) :is(h1, h2, .product-body h3) { line-height: 1.15; letter-spacing: -.02em; }

@media (max-width: 760px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .45rem .55rem; padding-top: .8rem; }
  .header-inner .brand, .header-inner .button { grid-column: 1 / -1; grid-row: 1; }
  .header-inner .button { max-width: 50%; font-size: .88rem; padding-inline: .75rem; }
  .site-nav { grid-column: 1; grid-row: 2; gap: 0 .7rem; }
  .site-nav a { min-height: 2.75rem; font-size: .88rem; }
  .language-switch { grid-column: 2; grid-row: 2; }
}

@media (max-width: 640px) {
  .hero-inner { min-height: 26rem; padding-block: 3.1rem; }
  .hero-media img { object-position: 56% 52%; }
  .hero::after { background: linear-gradient(0deg, #101514f7 0%, #101514a8 38%, #10151470 66%, #101514aa 100%); }
  .hero-actions .button { padding-inline: .9rem; }
  .banner-controls:not([hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .55rem; padding-bottom: .85rem; }
  .banner-controls button { font-size: .83rem; }
  h1 { max-width: 36rem; font-size: clamp(2.15rem, 8.9vw, 3.65rem); text-wrap: balance; }
  .products-heading, .product-grid, .markets-grid, .contact-grid { grid-template-columns: 1fr; }
  .product-photo { aspect-ratio: 2.1; }
  .quote-details { margin-top: .65rem; }
}

@media (max-width: 370px) {
  .header-inner { column-gap: .3rem; }
  .site-nav { column-gap: .35rem; }
  .site-nav a { font-size: .85rem; }
  .language-switch summary { gap: .4rem; padding-inline: .3rem; font-size: .85rem; }
  html:lang(vi) .site-nav { grid-column: 1 / -1; }
  html:lang(vi) .language-switch { grid-row: 3; margin-block: -.2rem .35rem; }
}

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