/* The single source of shared materials, type and spacing for content sections. */
:root {
  --site-ink: #eef0e4;
  --site-muted: #bcc5af;
  --site-label: #aeb99f;
  --site-gold: #d7c18f;
  --site-line: #9aa7834d;
  --site-recess: #10190f;
  --site-panel-lit: #30372e;
  --site-radius: 15px 5px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  display: block;
  padding: 0;
  background: #0c100c;
}

[hidden] {
  display: none !important;
}

main {
  width: 100%;
}

/* Preserve the approved home dimensions; its component styles remain untouched. */
.portfolio-machine {
  width: min(100%, 1800px);
  margin-inline: auto;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.site-content, .site-footer {
  width: min(100%, 1800px);
  margin-inline: auto;
}

.site-content {
  background: #121511;
}

.section {
  position: relative;
  isolation: isolate;
  border: 45px solid transparent;
  border-image: url('../../img/home/interior-metal-v2.webp') 95 80 65 80 / 70px 45px 45px 45px / 0 stretch;
  padding: 30px clamp(20px, 2.5vw, 45px) 42px;
  background: #121511 url('../../img/home/section-surface.svg') center top / cover no-repeat;
  background-clip: padding-box;
}

.section .shell {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin-inline: auto;
}

.section-console {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid var(--site-line);
  color: var(--site-label);
  font: 11px Consolas, monospace;
  letter-spacing: .14em;
}

.section-console__index {
  display: grid;
  place-items: center;
  width: 29px;
  height: 28px;
  border: 1px solid #b5af826b;
  border-radius: 5px;
  background: linear-gradient(135deg,#565a47,#262c23);
  color: var(--site-gold);
  box-shadow: inset 0 1px #eee6c12b;
}

.section-console i {
  flex: 1;
  height: 1px;
  margin-left: 10px;
  background: linear-gradient(90deg,#979d8350,transparent);
}

.section-header {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 32px;
  min-height: 310px;
  margin-bottom: 30px;
}

.section-head {
  min-width: 0;
  padding-block: 28px;
}

.eyebrow {
  color: var(--site-gold);
  font: 11px/1.5 Consolas,monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-title {
  margin: 13px 0 20px;
  color: var(--site-ink);
  font: 750 clamp(30px,3.4vw,47px)/1.12 Arial,sans-serif;
  letter-spacing: -.04em;
  text-wrap: balance;
  text-shadow: 0 3px 2px #0008;
}

.title-accent {
  color: var(--site-gold);
}

.section-lead {
  max-width: 52ch;
  color: var(--site-muted);
  font-size: 15px;
  line-height: 1.75;
}

.section-number {
  display: none;
}

.section-head--row > .chip {
  margin-top: 10px;
}

.panel {
  position: relative;
  min-width: 0;
  color: var(--site-ink);
  border: 1px solid #8f9c7d;
  border-top-color: #c4cdb3;
  border-bottom-color: #505f43;
  border-radius: var(--site-radius);
  background: linear-gradient(125deg,#d2d4c90c,transparent 35%),repeating-linear-gradient(0deg,transparent 0 3px,#e7e9d302 4px),linear-gradient(145deg,var(--site-panel-lit),#1f271f 55%,#151a16);
  box-shadow: inset 0 1px #f1f0d730,inset 0 -3px #080f09,0 0 0 3px #111b11,0 0 0 4px #68745765,0 12px 25px #0006;
}

.panel::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid #bdc79f20;
  border-bottom-color: #070d0880;
  border-radius: 11px 2px;
  pointer-events: none;
  background: radial-gradient(220px circle at var(--shine-x,15%) var(--shine-y,0%),#f9ecc512,transparent 80%);
}

.panel::after {
  content: '';
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background: radial-gradient(circle,#cccec1 0 1px,#505845 1.5px 2.5px,#0a0d0a 3px 4px,transparent 4.5px) left top/9px 9px no-repeat,radial-gradient(circle,#cccec1 0 1px,#505845 1.5px 2.5px,#0a0d0a 3px 4px,transparent 4.5px) right bottom/9px 9px no-repeat;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #a4ad7d40;
  border-radius: 4px;
  background: #14191459;
  color: #c7d0b9;
  font: 11px/1.5 Arial,sans-serif;
}

.chip--gold {
  color: #e1d0a5;
  border-color: #c2a97566;
  background: #bca06d10;
}

.pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b4b8a4;
  box-shadow: 0 0 7px #bfc89440;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 20px;
  font: 600 13px/1.5 Arial,sans-serif;
  border: 1px solid #9aa67b;
  border-radius: 24px;
  cursor: pointer;
  transition: filter .2s,translate .2s;
}

.btn--gold {
  color: #25301e;
  border: 3px double #e8d59c;
  background: linear-gradient(135deg,#ead6a3,#ad985e);
  box-shadow: inset 0 1px #fff2c8,0 4px 10px #0006;
}

.btn--draw {
  color: #e0d4b5;
  background: linear-gradient(#4b5341,#262d24);
}

.btn:hover {
  filter: brightness(1.08);
  translate: 0 -1px;
}

.btn:disabled {
  opacity: .65;
  cursor: wait;
  translate: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--site-gold);
  font-size: 13px;
}

.link-arrow:hover {
  color: #fff0c6;
}

.mono {
  font-family: Consolas,monospace;
}

.site-content :is(a,button,input,select,textarea):focus-visible,.site-navigation :is(a,button):focus-visible,.site-footer a:focus-visible,.document-dialog :is(a,button):focus-visible {
  outline: 2px solid #f0d39b;
  outline-offset: 5px;
}

.reveal-pending {
  opacity: 0;
  translate: 0 12px;
  transition: opacity .55s,translate .55s var(--ease);
}

.reveal-pending.is-revealed {
  opacity: 1;
  translate: none;
}

@media(max-width:900px) {
  .section-header {
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
  }

  .section-title {
    font-size: 34px;
  }

}

@media(max-width:600px) {
  html {
    scroll-padding-top: 76px;
  }

  .section {
    border-width: 20px;
    border-image-width: 40px 20px 25px 20px;
    padding: 24px 15px 30px;
  }

  .section-console {
    min-height: 36px;
    font-size: 10px;
    gap: 9px;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    margin-bottom: 25px;
  }

  .section-head {
    padding: 28px 0 0;
  }

  .section-title {
    font-size: clamp(29px,8.5vw,38px);
    margin-bottom: 15px;
  }

  .section-lead {
    font-size: 14px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .panel {
    box-shadow: inset 0 1px #f1f0d730,inset 0 -3px #080f09,0 0 0 3px #111b11,0 0 0 4px #68745765,0 9px 16px #0005;
  }

}

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

  .reveal-pending {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .btn:hover {
    translate: none;
  }

}
