/* Tycon Solutions - tycon-solutions.com. DESIGN.md v0.3: monochrome black / steel / white, no accent,
   Saira Semi Condensed headlines + buttons, system UI body, mono labels, square corners except the
   cut-corner primary button, no shadows, grid behind heroes only, dark pages only. */
:root {
  --forge: #0E1013; --steel: #1A1E23; --plate: #2A313A; --edge: #8A96A3; --edge-low: #545B64;
  --text: #F2F4F6; --soft: #C3CAD2; --white: #FFFFFF; --bad: #FF8A8A;
  --head: "Saira Semi Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { background: var(--forge); color-scheme: dark; scroll-padding-top: 92px; }
body { margin: 0; background: var(--forge); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--edge); }
a:hover { text-decoration-color: var(--white); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: 0; }
h1 { font-size: clamp(2.3rem, 7vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 600; line-height: 1.15; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
.label { font: 12px/1.6 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--edge); margin: 0 0 .8em; }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--soft); max-width: 40em; }
.soft { color: var(--soft); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); color: var(--forge); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.grid-bg { background-color: var(--forge);
  background-image: linear-gradient(var(--steel) 1px, transparent 1px), linear-gradient(90deg, var(--steel) 1px, transparent 1px);
  background-size: 24px 24px; }

/* buttons: the cut corner is the brand's one shape device */
.btn { display: inline-block; font: 600 .95rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  background: var(--white); color: var(--forge); padding: 15px 26px; border: 0; cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn:hover { background: var(--text); color: var(--forge); }
.btn:focus-visible { outline: 2px solid var(--forge); outline-offset: -5px; }
.btn-sm { padding: 11px 16px; font-size: .82rem; }
.btn-line { display: inline-block; font: 600 .95rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--text); padding: 14px 22px; border: 1px solid var(--edge); }
.btn-line:hover { background: var(--steel); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 1.6em; }

/* masthead */
.masthead { position: sticky; top: 0; z-index: 20; background: var(--forge); border-bottom: 1px solid var(--plate); }
.bar { display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { flex: none; }
.lock-wide { width: 230px; } .lock-compact { display: none; width: 150px; }
.nav { display: flex; gap: 16px; flex-wrap: nowrap; margin-left: auto; white-space: nowrap; }
.nav a { font: 600 .8rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--white); border-bottom-color: var(--white); }

/* heroes */
.hero { padding: 84px 0 70px; border-bottom: 1px solid var(--plate); }
.sec { padding: 72px 0; border-bottom: 1px solid var(--plate); }
.sec.alt { background: var(--steel); }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { padding: 12px 0 12px 26px; border-top: 1px solid var(--plate); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 2px; background: var(--white); }
.plain { list-style: none; margin: 0 0 1em; padding: 0; }
.plain li { margin: 4px 0; }
.plain a { color: var(--soft); text-decoration: none; }
.plain a:hover { color: var(--white); }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--plate); border: 1px solid var(--plate); margin-top: 28px; }
.card { background: var(--forge); padding: 26px 24px 22px; text-decoration: none; display: flex; flex-direction: column; min-height: 190px; }
.card:hover { background: var(--steel); }
.card p { color: var(--soft); flex: 1; }
.more { font: 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--edge); }

.facts { display: grid; gap: 1px; background: var(--plate); border: 1px solid var(--plate); }
.facts div { background: var(--forge); padding: 22px 24px; }
.big { display: block; font: 700 2.4rem/1 var(--head); margin-bottom: 6px; }
.sign { font: 600 1.1rem var(--head); margin-top: 1.4em; }

.band { padding: 56px 0; background: var(--steel); border-bottom: 1px solid var(--plate); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { margin: 0; max-width: 24em; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin: 26px 0; }
.gallery.three { grid-template-columns: repeat(3, 1fr); }
.gallery figure { margin: 0; background: var(--steel); border: 1px solid var(--plate); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-size: .9rem; color: var(--soft); }

/* forms: they hold still (no motion) */
.form { background: var(--steel); border: 1px solid var(--plate); padding: 30px; margin-top: 8px; }
.form .btn { margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field.full, textarea, fieldset.field:has(textarea) { grid-column: 1 / -1; }
.field > span, .field legend { font: 600 .9rem/1.3 var(--head); letter-spacing: .04em; }
.req { font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--edge); margin-left: 6px; }
input, select, textarea { font: 16px/1.4 var(--body); color: var(--text); background: var(--forge); border: 1px solid var(--edge); border-radius: 0; padding: 12px 13px; width: 100%; }
input[type=radio] { width: 20px; height: 20px; accent-color: var(--white); margin-right: 8px; }
input[type=file] { padding: 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--white); outline-offset: 0; border-color: var(--white); }
.field small { color: var(--soft); font-size: .82rem; }
.opt { display: inline-flex; align-items: center; margin-right: 18px; font-size: .95rem; padding: 10px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-left: 3px solid var(--bad); background: var(--steel); padding: 14px 18px; margin-bottom: 20px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.big-link { font: 600 1.35rem var(--head); word-break: break-word; }

/* footer */
.foot { padding: 56px 0 26px; background: var(--forge); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid img { width: 220px; margin-bottom: 18px; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--plate); margin-top: 36px; padding-top: 18px; font-size: .85rem; color: var(--soft); }
.legal a { color: var(--soft); }

/* home hero film. Without the 3D scene (phones, reduced motion, no JS, weak devices) this is a still
   grid hero: the copy, the buttons, no film furniture. */
.scene { position: relative; min-height: 640px; display: flex; align-items: center; border-bottom: 1px solid var(--plate); overflow: hidden; }
.scene-canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.scene-canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.has-3d .scene-canvas { opacity: 1; }
.scene-copy { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 110px; }
.scene-copy h1, .scene-copy .lede { max-width: 15em; }
.scene-copy .lede { max-width: 30em; }
.has-3d .scene-copy { padding-right: 46%; }
.has-3d .scene-copy .btn-line { background: var(--forge); }
.has-3d .scene-copy .label, .has-3d .scene-copy h1, .has-3d .scene-copy .lede { background: rgba(14, 16, 19, .86); width: fit-content; padding: 4px 10px; margin-left: -10px; }
.story, .story-controls { display: none; }
.is-film .story, .is-film .story-controls { display: block; }
.story { position: absolute; right: 22px; bottom: 74px; z-index: 3; width: min(420px, 40%); text-align: right; }
.story-step { position: absolute; right: 0; bottom: 0; margin: 0; font: 600 1.25rem/1.25 var(--head); color: var(--white);
  opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; background: rgba(14,16,19,.78); padding: 8px 12px; }
.story-step.on { opacity: 1; transform: none; }
.story-controls { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 3; }
.story-controls { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; display: none; }
.is-film .story-controls { display: flex; align-items: center; gap: 16px; }
.story-toggle { font: 600 .82rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--text); background: var(--forge);
  border: 1px solid var(--edge); padding: 10px 14px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.story-toggle:hover { background: var(--steel); }
.story-toggle-icon { width: 10px; height: 10px; display: inline-block; border-left: 3px solid var(--text); border-right: 3px solid var(--text); }
.story-toggle[data-state=play] .story-toggle-icon { border: 0; width: 0; height: 0; border-left: 10px solid var(--text); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.story-toggle[data-state=replay] .story-toggle-icon { border: 2px solid var(--text); border-radius: 50%; border-left-color: transparent; }
.story-ticks { display: flex; gap: 6px; }
.story-ticks button { width: 26px; height: 26px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.story-ticks button::after { content: ""; position: absolute; left: 4px; right: 4px; top: 12px; height: 2px; background: var(--edge); }
.story-ticks button[aria-current]::after { background: var(--white); height: 4px; top: 11px; left: 2px; right: 2px; }
.story-ticks button:focus-visible { outline-offset: 0; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rewind .scene-canvas { opacity: .15; transition-duration: .3s; }

/* reveals (JS adds .motion; reduced motion never gets it) */
.motion .reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1); }

.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font: 600 .82rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--edge); padding: 11px 14px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--forge); border: 1px solid var(--plate); min-width: 230px; padding: 8px 0; z-index: 30; }
.menu nav a { display: block; padding: 11px 18px; font: 600 .9rem var(--head); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--soft); }
.menu nav a:hover, .menu nav a[aria-current] { color: var(--white); background: var(--steel); }
@media (max-width: 1240px) { .nav { display: none; } .menu { display: block; margin-left: auto; } }
@media (max-width: 900px) {
  .two, .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery.three { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lock-wide { display: none; } .lock-compact { display: block; }
  .hero { padding: 56px 0 46px; } .sec { padding: 48px 0; }
  .fields { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .btn, .btn-line { width: 100%; text-align: center; }
  .masthead .btn { width: auto; }
  .bar { gap: 10px; }
  .lock-compact { width: 112px; }
  .menu summary { padding: 13px 10px; }
  .masthead .btn-sm { padding: 13px 12px; }
  .scene { min-height: 520px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
