:root {
  color-scheme: dark;
  --background: #141518;
  --surface: #1b1d21;
  --line: #33353a;
  --text: #dedede;
  --muted: #adaeb3;
  --accent: #e87013;
  --accent-hover: #f88b3b;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font: 1rem/1.55 var(--font);
  overflow-wrap: anywhere;
}

a { color: inherit; }
a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 4px;
}

h1, h2, p, dl, dd { margin: 0; }
[hidden] { display: none !important; }

.shell { width: min(100% - clamp(2rem, 8vw, 8rem), 73rem); margin-inline: auto; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 5;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  color: var(--background);
  background: var(--accent);
  border-radius: .6rem;
}

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
}
.header-inner { min-height: 4.7rem; }

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 830;
  letter-spacing: -.055em;
  text-decoration: none;
}
.wordmark span { color: var(--accent); }
.wordmark { transition: text-shadow .2s ease; }
@media (hover: hover) {
  .wordmark:hover { text-shadow: 0 0 5px #e87013cc, 0 0 14px #e8701399; }
}
.wordmark:focus-visible { text-shadow: 0 0 5px #e87013cc, 0 0 14px #e8701399; }


nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.85rem, 3.5vw, 2.5rem); }
nav a, .back-top {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .95rem;
  text-decoration: none;
  transition: color .2s ease;
}
nav a:hover, .back-top:hover { color: var(--accent-hover); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(1.65rem, 4.5vw, 4.75rem);
  padding-block: clamp(2.8rem, 6vw, 5.1rem) clamp(2rem, 4.3vw, 3.75rem);
}

.hero-content { align-self: center; padding-block: .35rem .65rem; }
.location {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  color: var(--accent-hover);
  font-size: .93rem;
  font-weight: 650;
  line-height: 1.4;
}
.location::before {
  content: "";
  flex: 0 0 .44rem;
  height: .44rem;
  border-radius: 50%;
  background: var(--accent);
  align-self: center;
}
.hero h1 {
  margin-top: .9rem;
  font-size: clamp(2.65rem, 6.45vw, 6.3rem);
  font-weight: 815;
  line-height: .99;
  letter-spacing: -.078em;
}
.hero h1 span { display: block; }
.hero-summary {
  max-width: 26rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.65vw, 1.2rem);
  line-height: 1.53;
}
.hero .button { margin-top: 1.65rem; }

.button {
  display: inline-flex;
  min-height: 3.05rem;
  align-items: center;
  justify-content: center;
  padding: .73rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  font-weight: 740;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.primary { color: #171411; background: var(--accent); }
.primary:hover { background: var(--accent-hover); }
.secondary { background: var(--surface); border-color: #515259; }
.secondary:hover { border-color: var(--accent); color: var(--accent-hover); }

.metal-study {
  position: relative;
  isolation: isolate;
  min-height: 21.875rem;
  overflow: hidden;
  border: 1px solid #34363a;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse at 68% 71%, #4f2b1b90, transparent 48%),
    repeating-linear-gradient(90deg, transparent 0 30px, #b0b1b313 30px 31px),
    repeating-linear-gradient(0deg, transparent 0 30px, #b0b1b313 30px 31px),
    #1b1d21;
}
.metal-study::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 55% 45%, transparent 34%, #08090b57 100%);
}
.joint {
  position: absolute;
  inset: 23% 9%;
  display: grid;
  grid-template-rows: 46% 54%;
  filter: drop-shadow(0 18px 17px #08080bbd);
  transform: rotate(-24deg) skewX(-10deg);
}
.metal-face {
  border: 1px solid #77787d;
  background:
    repeating-linear-gradient(0deg, #e2dfdb0d 0 1px, #0b0b0e1c 1px 2px, transparent 2px 6px),
    linear-gradient(105deg, #34363c, #72737a 60%, #52545a 85%, #313338);
}
.metal-upper {
  border-radius: 12px 12px 1px 1px;
  box-shadow: inset 0 -2px #171212, inset 0 2px #a4a4a84f;
}
.metal-lower {
  border-color: #64636a;
  border-radius: 1px 1px 12px 12px;
  background:
    repeating-linear-gradient(0deg, #e2dfdb0d 0 1px, #0b0b0e29 1px 2px, transparent 2px 6px),
    linear-gradient(180deg, #4a3b37, #2f3035 45%, #222429);
  box-shadow: inset 0 -8px #18191d, inset 0 -9px #595a61, inset 0 3px #6a4b3f;
}
.weld {
  position: absolute;
  z-index: 1;
  inset: calc(46% - .25rem) 2.3% auto;
  height: .5rem;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 75% 50%, #ffd3a7 0%, #f78331 16%, #b85429 41%, #807977 67%, #5b5352 97%);
  box-shadow: 0 0 1.2rem #e8701378, 0 .15rem .32rem #271c18;
}
.weld::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(109deg, #1a111287 0 1px, transparent 2px 6px, #ffffff4d 7px 8px);
  opacity: .67;
}

.methods {
  border-block: 1px solid var(--line);
}
.methods-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.methods-grid > div { padding: 1.05rem 1.2rem 1.2rem; }
.methods-grid > div:first-child { padding-left: 0; }
.methods-grid > div + div { border-left: 1px solid var(--line); }
.methods dt { color: var(--accent-hover); font-size: 1.18rem; font-weight: 790; }
.methods dd { color: var(--muted); font-size: .93rem; line-height: 1.4; }

.services { margin-top: clamp(3.5rem, 7vw, 6rem); }
.services { scroll-margin-top: 1.5rem; }
.services h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -.055em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.4rem;
  margin-top: 1.5rem;
}
.service-grid > div { border-top: 1px solid var(--line); padding-top: 1rem; }
.service-grid dt { font-size: 1.2rem; font-weight: 730; line-height: 1.3; }
.service-grid dd { margin-top: .5rem; color: var(--muted); }
.services .button { margin-top: 1.15rem; }

main {
  --contact-gap: clamp(.35rem, 2vw, 1rem);
  --contact-width: min(17rem, calc((100% - 2rem - var(--contact-gap)) / 2));
}
main > .call {
  width: var(--contact-width);
  vertical-align: top;
  margin-top: clamp(1rem, 3vw, 2rem);
}
main > #contact {
  margin-inline-start: calc(50% - var(--contact-width) - var(--contact-gap) / 2);
  margin-inline-end: var(--contact-gap);
  scroll-margin-top: 1rem;
}
.call {
  min-width: 0;
  flex-direction: column;
  gap: .2rem;
  border: 2px solid #383536;
  border-radius: .9rem;
  padding: .7rem clamp(.2rem, 2vw, 1rem);
  box-shadow: 0 2px 5px #0004;
}
.contact-detail {
  max-width: 100%;
  font-size: clamp(.8rem, 2.8vw, 1.1rem);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.site-footer {
  min-height: 5.1rem;
  margin-top: 2.65rem;
  border-top: 1px solid var(--line);
}
.site-footer .wordmark { font-size: 1.25rem; }
.back-top { color: var(--muted); }

@media (max-width: 55rem) {
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.65rem, 7.1vw, 4.25rem); }
  .metal-study { min-height: 18.75rem; }
  .methods-grid > div { padding-inline: .75rem; }
}

@media (max-width: 38.75rem) {
  .header-inner { min-height: 3.9rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.35rem; padding-top: 2.3rem; }
  .hero h1 { font-size: clamp(2.45rem, 11vw, 4.2rem); }
  .hero-summary { margin-top: 1rem; }
  .hero .button { margin-top: 1.25rem; }
  .metal-study { min-height: clamp(10.75rem, 46vw, 16rem); }
  .joint { inset-inline: 16%; }
  .methods-grid { grid-template-columns: 1fr; }
  .methods-grid > div { padding: .85rem 0 .9rem; }
  .methods-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .service-grid { grid-template-columns: 1fr; }
}

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

.hero-logo {
  align-self: center;
  width: 100%;
  height: clamp(13rem, 29vw, 23rem);
  object-fit: contain;
  background: white;
  border-radius: var(--radius);
}

.projects { margin-top: clamp(3.5rem, 7vw, 6rem); scroll-margin-top: 1.5rem; }
.projects h1 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; letter-spacing: -.055em; }
.projects-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.project-strip {
  display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x proximity;
  overscroll-behavior-x: contain; padding-block: .3rem .75rem; scrollbar-width: none;
}
.project-strip::-webkit-scrollbar { display: none; }
.project-strip a { flex: 0 0 clamp(13rem, 78%, 24rem); scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; }
.project-strip a:focus-visible { outline-offset: -3px; }
.project-strip img { display: block; width: 100%; height: auto; }
@media (max-width: 32rem) {
  .header-inner { padding-block: .6rem; gap: .4rem 1rem; }
  nav { flex: 1 1 100%; justify-content: space-between; }
}

.project-strip.is-looping { scroll-snap-type: none; }
dialog {max-width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); background:#141518;color:white;border:0;border-radius:12px;text-align:right;padding:12px} dialog::backdrop{background:#000c} dialog img{display:block;max-width:100%;max-height:75vh;max-height:calc(100dvh - 6rem);object-fit:contain} dialog button{min-height:44px;padding-inline:1rem;margin-bottom:8px;cursor:pointer}
