/* UMA Technologies – Kuitu
   Layout: one fibre line leaves the logo, frames the hero, then runs down the left
   edge through every section and ends at the contact form. */

:root {
  --night: #0E1514;      /* page */
  --deep: #131D1B;       /* alternate section surface */
  --rule: #26332F;       /* hairlines, unlit fibre */
  --paper: #F2F5F3;      /* text */
  --mute: #A3B3AE;       /* secondary text */
  --fibre: #9FE3D2;      /* the line, one button, small labels */

  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --rail: clamp(28px, 6vw, 88px);
  --fibre-w: 2px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--fibre); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--fibre); color: var(--night); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1232px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: 40px; padding-right: 40px; } }

/* ---------- The fibre ---------- */
#fibre {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; overflow: visible;
}
#fibre path { fill: none; stroke-width: var(--fibre-w); stroke-linecap: round; stroke-linejoin: round; }
#fibre-base { stroke: var(--rule); }
#fibre-lit { stroke: var(--fibre); transition: stroke-dashoffset .35s linear; }
#fibre.intro #fibre-lit { transition: stroke-dashoffset 1.6s cubic-bezier(.2, .7, .2, 1); }
#fibre .node { fill: var(--night); stroke: var(--rule); stroke-width: var(--fibre-w); transition: fill .3s, stroke .3s; }
#fibre .node.on { fill: var(--fibre); stroke: var(--fibre); }
#fibre .node.end { fill: var(--night); }
#fibre .node.end.on { fill: var(--fibre); }
#fibre-tip {
  fill: var(--paper); opacity: 0; filter: drop-shadow(0 0 6px var(--fibre)) drop-shadow(0 0 2px var(--fibre));
  transition: transform .35s linear, opacity .3s;
}
.no-js #fibre { display: none; }
.no-js .site-header { border-bottom: var(--fibre-w) solid var(--fibre); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; padding-top: 24px; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.logo { display: block; color: var(--paper); line-height: 0; }
#logo { height: 54px; width: 112px; display: block; overflow: visible; }
@media (min-width: 720px) { #logo { height: 62px; width: 128px; } }

.nav {
  display: flex; align-items: flex-start; gap: 28px;
  font-size: 14px; font-weight: 500; line-height: 20px; color: var(--mute);
}
.nav-link { display: none; padding-block: 0; }
.nav-link:hover, .foot-col a:hover { color: var(--paper); }
.nav-cta { color: var(--fibre); white-space: nowrap; display: none; }
@media (min-width: 520px) { .nav-cta { display: inline; } }

.menu-btn, .menu-close {
  position: relative; width: 44px; height: 44px; margin: -12px -10px 0 -8px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--paper);
}
.menu-btn span, .menu-close span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 26px; }
.menu-close { margin: 0 -10px 0 0; align-self: flex-end; }
.menu-close span { top: 21px; }
.menu-close span:first-child { transform: rotate(45deg); }
.menu-close span:last-child { transform: rotate(-45deg); }
@media (min-width: 900px) { .menu-btn { display: none; } }

.menu { position: fixed; inset: 0; z-index: 30; background: var(--night); overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-inner { min-height: 100%; display: flex; flex-direction: column; gap: 32px; padding-top: 16px; padding-bottom: 32px; }
.menu-nav { display: flex; flex-direction: column; margin-top: auto; }
.menu-nav a {
  font-weight: 300; font-size: clamp(34px, 9vw, 52px); line-height: 1.1; letter-spacing: -.02em;
  padding: 14px 0; border-top: 1px solid var(--rule);
}
.menu-nav a:last-child { border-bottom: 1px solid var(--rule); }
.menu-nav .menu-cta { color: var(--fibre); }
.menu-open { overflow: hidden; }
.nav-cta::after { content: " →"; }
.nav-cta:hover { color: var(--paper); }
@media (min-width: 900px) { .nav-link { display: inline; } }

.lang { display: inline-flex; gap: 2px; font-family: var(--mono); font-size: 13px; }
.lang-btn {
  font: inherit; color: var(--mute); background: none; border: 0; cursor: pointer;
  padding: 0 6px; line-height: 20px; min-width: 32px;
}
.lang-btn[aria-pressed="true"] { color: var(--paper); box-shadow: inset 0 -1px 0 var(--paper); }
.lang-btn:hover { color: var(--paper); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--fibre);
}
h1 {
  font-weight: 300; font-size: clamp(30px, 4.3vw, 62px); line-height: 1.08; letter-spacing: -.026em;
  max-width: 15.5em; text-wrap: balance; overflow-wrap: break-word; hyphens: manual;
}
h2 {
  font-weight: 300; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.1; letter-spacing: -.015em;
  max-width: 20ch; text-wrap: balance; overflow-wrap: break-word; hyphens: manual;
}
p { text-wrap: pretty; }
::selection { background: var(--fibre); color: var(--night); }
[id] { scroll-margin-top: 24px; }
h3 { font-weight: 600; font-size: 19px; line-height: 1.3; }
.lead { color: var(--mute); max-width: 60ch; font-size: clamp(17px, 1.5vw, 19px); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 24px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; border-radius: 0; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--fibre); color: var(--night); }
.btn-primary:hover { background: var(--paper); }
.btn-ghost { border-color: #4A5D57; color: var(--paper); }
.btn-ghost:hover { border-color: var(--fibre); color: var(--fibre); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 2; padding-block: clamp(72px, 13vh, 150px) clamp(64px, 11vh, 120px); }
.hero-grid { position: relative; display: grid; gap: 56px; }
.hero-text { display: flex; flex-direction: column; gap: 28px; min-width: 0; padding-right: 12px; }

.ticks { display: none; }   /* phone: the next section lists these */
.tick { font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); transition: color .3s; }
.tick.on { color: var(--paper); }
.rail-r { position: absolute; top: 0; bottom: 0; right: 8px; width: 0; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 250px; align-items: end; }
  .hero-text { padding-right: 0; }
  .ticks { display: flex; flex-direction: column; gap: 34px; padding-bottom: 10px; }
  .tick { position: relative; text-align: right; padding-right: 60px; }
  .tick::after {
    content: ""; position: absolute; right: 40px; top: 50%; width: 12px; height: 1px; background: var(--rule);
    transition: background .3s;
  }
  .tick.on::after { background: var(--fibre); }
  .rail-r { right: 40px; }
}

/* ---------- Sections ---------- */
.sec { position: relative; padding-block: clamp(72px, 11vh, 128px); }
.sec-alt { background: var(--deep); }
.sec .eyebrow { color: var(--mute); transition: color .5s; }
.sec.lit .eyebrow, .no-js .sec .eyebrow { color: var(--fibre); }
.sec-inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 24px; }
.sec-inner > *, .sec-inner .contact-info > * { margin-left: var(--rail); }
.sec-inner .contact-info, .sec-inner.invest > div { margin-left: 0; }
.sec-inner.invest > div > * { margin-left: var(--rail); }
.sec-inner.invest > .btn { margin-left: var(--rail); align-self: flex-start; }

.link p { color: var(--mute); font-size: 16px; }

.chain { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 40px; }
.link {
  position: relative; border-top: var(--fibre-w) solid var(--rule); padding: 28px 28px 8px 0;
  display: flex; flex-direction: column; gap: 10px; transition: border-color .5s;
}
.link::before {
  content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--deep); border: var(--fibre-w) solid var(--rule); box-sizing: border-box; transition: border-color .5s, background .5s;
}
.chain.on .link, .no-js .link { border-top-color: var(--fibre); }
.chain.on .link::before, .no-js .link::before { border-color: var(--fibre); background: var(--fibre); }
.link:nth-child(2), .link:nth-child(2)::before { transition-delay: .18s; }
.link:nth-child(3), .link:nth-child(3)::before { transition-delay: .36s; }
.link:nth-child(4), .link:nth-child(4)::before { transition-delay: .54s; }

.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 40px; margin-top: 32px; }
.place { border-top: 1px solid var(--rule); padding: 20px 0 28px; display: flex; flex-direction: column; gap: 8px; }
.place h3 { font-weight: 300; font-size: 32px; line-height: 1.1; letter-spacing: -.01em; }

@media (min-width: 900px) {
  .sec-inner.invest { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
  .sec-inner.invest > div { display: flex; flex-direction: column; gap: 24px; }
  .sec-inner.invest > .btn { margin-left: 0; align-self: flex-end; flex: 0 0 auto; }
}

/* ---------- Contact ---------- */
.contact { gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
address { font-style: normal; line-height: 1.7; }
.form { display: flex; flex-direction: column; gap: 20px; margin-left: var(--rail); }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  font: inherit; color: var(--paper); background: var(--deep); border: 1px solid #4A5D57; border-radius: 0;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--fibre); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form-status { font-size: 15px; color: var(--fibre); }

@media (min-width: 900px) {
  .contact { flex-direction: row; align-items: flex-start; gap: 72px; }
  .contact-info { flex: 1 1 0; min-width: 0; }
  .form { flex: 1.15 1 0; min-width: 0; margin-left: 0; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--rule); padding-block: 56px 32px; font-size: 14px; color: var(--mute); }
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px 48px; }
.foot-brand svg { width: 198px; height: 62px; color: var(--paper); display: block; }
.foot-brand .tail { stroke: var(--fibre); }
.foot-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
}
.foot-bar a:hover { color: var(--paper); }
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-col strong { color: var(--paper); font-weight: 600; }
.foot-col a { padding-block: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #fibre-lit, #fibre.intro #fibre-lit, #fibre .node, .tick, .tick::after, .btn, .link, .link::before, .sec .eyebrow { transition: none; }
  #fibre-tip { display: none; }
}
