/* OLTMATE website. Palette = the fiber colour code every splicer knows (blue, orange, green, brown, slate …). */
:root {
  --paper: #f1f4f1; --card: #ffffff; --ink: #0f1b2d; --soft: #4d5a6b; --line: #d4dad6; --night: #0b1626;
  --f-blue: #1e6be0; --f-orange: #ee8a22; --f-green: #1f9d57; --f-brown: #8a5a3b; --f-slate: #6e7b8b;
  --f-white: #ffffff; --f-red: #d5372f; --f-black: #10151c; --f-yellow: #efc02a; --f-violet: #7447d1;
  --f-rose: #e67fa0; --f-aqua: #1fb9bd;
  --rail: 46px; --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 420 17px/1.6 "Archivo", system-ui, sans-serif;
  font-stretch: 100%; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--f-blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--f-orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-stretch: 118%; font-weight: 780; letter-spacing: -0.015em; line-height: 1.06; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.7rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); }
h3 { font-size: 1.22rem; line-height: 1.2; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: var(--soft); max-width: 56ch; }

/* the cable: twelve strands down the left edge */
.cable { position: fixed; inset: 0 auto 0 0; width: var(--rail); display: flex; justify-content: center; gap: 1px; z-index: 5;
  background: var(--night); padding: 0 8px; }
.cable i { flex: 1; max-width: 2px; }
.cable i:nth-child(1) { background: var(--f-blue); } .cable i:nth-child(2) { background: var(--f-orange); }
.cable i:nth-child(3) { background: var(--f-green); } .cable i:nth-child(4) { background: var(--f-brown); }
.cable i:nth-child(5) { background: var(--f-slate); } .cable i:nth-child(6) { background: var(--f-white); }
.cable i:nth-child(7) { background: var(--f-red); } .cable i:nth-child(8) { background: #3b4656; }
.cable i:nth-child(9) { background: var(--f-yellow); } .cable i:nth-child(10) { background: var(--f-violet); }
.cable i:nth-child(11) { background: var(--f-rose); } .cable i:nth-child(12) { background: var(--f-aqua); }
.page { margin-left: var(--rail); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }

/* header */
.top { position: sticky; top: 0; z-index: 4; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-stretch: 125%; font-weight: 820;
  font-size: 1.18rem; letter-spacing: 0.01em; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 560; font-size: 0.97rem; }
.nav a:hover { background: #e3e8e4; }
.nav a[aria-current] { background: var(--ink); color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--f-blue); color: #fff; text-decoration: none; font-weight: 640;
  padding: 13px 22px; border-radius: 10px; border: 0; font: inherit; font-weight: 640; cursor: pointer; }
.btn:hover { background: #1558bf; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.nav .btn { padding: 9px 16px; color: #fff; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 0; overflow: hidden; }
.hero h1 { max-width: 17ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 56px); align-items: end; margin-top: clamp(20px, 3vw, 36px); }
.hero .lead { margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.works { margin-top: 26px; font-size: 0.95rem; color: var(--soft); }
.works b { color: var(--ink); font-weight: 640; }
.tree { background: var(--night); border-radius: 18px; padding: 14px; }
.tree svg { width: 100%; height: auto; display: block; }
.tree text { font: 600 13px "Archivo", sans-serif; fill: #b9c4d2; }
.tree .cap { fill: #7f8ca0; font-weight: 500; }
.blink { animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.hero-shot { margin-top: clamp(28px, 5vw, 64px); position: relative; }
.shot { display: block; border-radius: 14px; overflow: hidden; background: var(--night); border: 1px solid #1d2b40;
  box-shadow: 0 30px 60px -28px rgba(11, 22, 38, 0.55), 0 2px 0 #24344c inset; cursor: zoom-in; padding: 0; width: 100%; }
.shot img { width: 100%; }
.hero-shot .shot { border-radius: 16px 16px 0 0; border-bottom: 0; }

/* facts strip */
.facts { background: var(--night); color: #e8eef6; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 30px 22px 28px 0; }
.facts div + div { padding-left: 22px; border-left: 1px solid #22324a; }
.facts b { display: block; font-stretch: 120%; font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -0.02em; }
.facts span { color: #9fb0c5; font-size: 0.95rem; }

/* sections: each one is spliced off one strand of the cable */
.sec { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.sec::before { content: ""; position: absolute; left: 0; top: clamp(72px, 9.4vw, 132px); width: clamp(14px, 3vw, 44px); height: 3px; background: var(--strand, var(--f-blue)); }
.sec > .wrap > h2::before, .sec .head h2::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; border-radius: 50%;
  background: var(--strand, var(--f-blue)); margin-right: 0.32em; transform: translateY(-0.08em); }
.s-blue { --strand: var(--f-blue); } .s-orange { --strand: var(--f-orange); } .s-green { --strand: var(--f-green); }
.s-brown { --strand: var(--f-brown); } .s-slate { --strand: var(--f-slate); } .s-red { --strand: var(--f-red); }
.s-yellow { --strand: var(--f-yellow); } .s-violet { --strand: var(--f-violet); } .s-rose { --strand: var(--f-rose); }
.s-aqua { --strand: var(--f-aqua); }
.sec.alt { background: #e7ece8; }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 { margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { padding: 9px 0 9px 30px; border-top: 1px solid var(--line); position: relative; max-width: 58ch; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 6px; border-left: 3px solid var(--strand, var(--f-blue));
  border-bottom: 3px solid var(--strand, var(--f-blue)); transform: rotate(-45deg); }
.ticks b { font-weight: 660; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.phones { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.phone { width: min(46%, 270px); border-radius: 30px; border: 9px solid var(--night); background: var(--night); overflow: hidden;
  box-shadow: 0 30px 50px -26px rgba(11, 22, 38, 0.6); cursor: zoom-in; padding: 0; }
.phone:nth-child(2) { margin-top: 46px; }
.more { display: inline-block; margin-top: 20px; font-weight: 640; }

/* OLT table */
.tablewrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 640px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.86rem; color: var(--soft); font-weight: 620; background: #f7f9f7; }
tr:last-child td { border-bottom: 0; }
td b { font-weight: 680; }
.yes { color: var(--f-green); font-weight: 700; } .part { color: #b06a10; font-weight: 700; }

/* languages */
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; padding: 0; list-style: none; }
.langs li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 560; font-size: 0.95rem; }
.langshots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* steps (a real sequence) */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 34px; border-top: 3px solid var(--ink); }
.steps li { list-style: none; counter-increment: s; padding: 20px 20px 0 0; }
.steps li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s); display: block; font-stretch: 125%; font-weight: 820; font-size: 2.2rem; line-height: 1; margin-bottom: 12px; color: var(--strand); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--soft); font-size: 0.98rem; }
ol.steps { padding: 0; }

/* feature catalogue */
.cat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 26px; }
.cat > div { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); }
.cat > div:not(:nth-child(3n+1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.cat h3 { margin-bottom: 8px; }
.cat p { color: var(--soft); font-size: 0.98rem; margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 0.92rem; color: var(--soft); padding: 8px 2px 0; }

/* guide */
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding: clamp(36px, 5vw, 64px) 0 90px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 0.97rem; }
.toc b { display: block; font-stretch: 115%; font-weight: 760; margin: 0 0 10px; }
.toc a { display: block; color: var(--soft); text-decoration: none; padding: 7px 0 7px 14px; border-left: 3px solid var(--line); }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--f-blue); font-weight: 600; }
.doc h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 54px 0 14px; scroll-margin-top: 92px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 28px 0 8px; }
.doc ol, .doc ul { padding-left: 1.3em; max-width: 66ch; }
.doc li { margin: 6px 0; }
.doc code, .doc kbd { font: 500 0.92em ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: #e3e8e4; padding: 2px 6px; border-radius: 5px; }
.note { border-left: 4px solid var(--f-yellow); background: #fbf6df; padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0; max-width: 66ch; }
.note.red { border-left-color: var(--f-red); background: #fbe9e7; }
details { border-top: 1px solid var(--line); max-width: 70ch; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 0; font-weight: 640; list-style-position: outside; }
details p { color: var(--soft); }

/* support */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.contact a.big { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; text-decoration: none; color: var(--ink); }
.contact a.big:hover { border-color: var(--ink); }
.contact a.big small { color: var(--soft); display: block; margin-bottom: 8px; font-size: 0.95rem; }
.contact a.big b { font-stretch: 112%; font-weight: 760; font-size: clamp(1.25rem, 2.4vw, 1.8rem); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pagehead { padding: clamp(40px, 6vw, 80px) 0 clamp(10px, 2vw, 24px); }
.pagehead h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.pagehead .lead { margin-top: 18px; }

/* closing band + footer */
.band { background: var(--f-blue); color: #fff; padding: clamp(48px, 7vw, 90px) 0; }
.band h2 { max-width: 18ch; }
.band p { color: #dbe7fb; margin: 16px 0 26px; }
.band .btn { background: #fff; color: var(--ink); }
.band .btn:hover { background: var(--ink); color: #fff; }
.band .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.foot { background: var(--night); color: #9fb0c5; padding: 44px 0 36px; font-size: 0.95rem; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot a { color: #dfe7f1; text-decoration: none; display: block; padding: 3px 0; }
.foot a:hover { text-decoration: underline; }
.foot b { color: #fff; display: block; margin-bottom: 8px; font-weight: 640; }
.foot .brand { color: #fff; margin-bottom: 10px; }
.foot p { max-width: 36ch; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(6, 12, 22, 0.92); display: none; align-items: center; justify-content: center; z-index: 20; padding: 3vmin; cursor: zoom-out; }
.lb.on { display: flex; }
.lb img { max-height: 94vh; max-width: 96vw; border-radius: 10px; }

@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid #22324a; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 16px; }
  .cat { grid-template-columns: 1fr 1fr; }
  .cat > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .cat > div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .guide { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 14px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .toc b { width: 100%; } .toc a { border-left: 0; padding: 4px 0; }
}
@media (max-width: 720px) {
  :root { --rail: 14px; }
  .cable { padding: 0 2px; gap: 0; } .cable i { max-width: 1px; }
  body { font-size: 16px; }
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column;
    align-items: stretch; padding: 10px 18px 18px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .facts .wrap, .steps, .cat, .gallery, .langshots, .contact, .pair, .foot .wrap { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 20px 0; border-left: 0; }
  .facts div + div { border-top: 1px solid #22324a; }
  .steps li, .steps li + li { padding: 18px 0 0; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); margin-top: 14px; }
  .cat > div, .cat > div:nth-child(even), .cat > div:not(:nth-child(3n+1)) { padding: 18px 0; border-left: 0; }
  .sec::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } .blink { animation: none; }
}
