/* Alchemy Fiber LLC — site styles */
:root {
  --navy: #031A42;
  --navy-2: #0E1E3F;
  --navy-3: #13285a;
  --gold: #D9AA4E;
  --gold-light: #F2C46B;
  --cyan: #62C9F2;
  --white: #FFFFFF;
  --ink: #0E1E3F;
  --muted: #4A5675;
  --muted-dark: #B8C4DC;
  --bg-alt: #F4F6FA;
  --line: #DCE2EE;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(3, 26, 66, .10);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.gold { color: var(--gold); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  padding: 14px 26px; border-radius: 10px; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 20px rgba(217, 170, 78, .28); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border-color: rgba(98, 201, 242, .7); color: var(--white); background: rgba(98, 201, 242, .06); }
.btn-outline:hover { background: rgba(98, 201, 242, .16); border-color: var(--cyan); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }

.eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: #9A6E22; margin-bottom: .8em;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--gold); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(3, 26, 66, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(98, 201, 242, .15);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img { width: 44px; height: 44px; }
.brand-text { font-family: var(--font-head); font-weight: 800; letter-spacing: .08em; font-size: 1.1rem; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  color: #DDE6F5; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  position: relative; padding: 6px 0;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.site-nav a:not(.btn):hover { color: var(--white); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(ellipse 60% 70% at 75% 45%, rgba(47, 140, 242, .22), transparent 70%),
    radial-gradient(ellipse 50% 60% at 10% 100%, rgba(217, 170, 78, .10), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 120px);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6;
}
.hero-fx { position: absolute; inset: 0; pointer-events: none; }
.fiber-lines { width: 100%; height: 100%; }
.fl { stroke-width: 1.4; }
.fl.base { opacity: .08; }
.fl.pulse { opacity: .55; }
.fl.pulse { stroke-width: 2.4; stroke-dasharray: 260 1500; stroke-dashoffset: 1760; animation: travel 7s linear infinite; }
.fl.p2 { animation-duration: 9s; animation-delay: -3s; }
.fl.p3 { animation-duration: 11s; animation-delay: -6s; }
.fl.p4 { animation-duration: 8s; animation-delay: -1.5s; }
@keyframes travel { to { stroke-dashoffset: 0; } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.4fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; margin-bottom: .45em; }
.hero h1 .accent {
  display: block;
  background: linear-gradient(90deg, var(--cyan), #B5ECFF 55%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted-dark); max-width: 38em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 32px; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.hero-tags li {
  font-size: .82rem; font-weight: 600; color: #DDE6F5; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(98, 201, 242, .3); background: rgba(14, 30, 63, .6);
}
/* Hero splice visual (inline SVG) */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.splice { width: 145%; max-width: none; height: auto; overflow: visible; margin-right: -35%; margin-left: -10%; }
.sp-fan { stroke: #62C9F2; stroke-width: 1; }
.sp-dot { fill: #CFF4FF; opacity: .8; }
.sp-pulse { fill: none; stroke-dasharray: 14 120; stroke-dashoffset: 14; opacity: 0; animation: sp-travel 3.6s cubic-bezier(.5, 0, .9, .6) infinite; }
.sp-pulse-r { animation-delay: -1.8s; }
.sp-pulse-fan { animation-duration: 4.8s; stroke-dasharray: 10 120; }
.sp-pulse-fan.sp-pulse-r { animation-delay: -2.4s; }
@keyframes sp-travel {
  0% { stroke-dashoffset: 14; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
.sp-spark { transform-box: fill-box; transform-origin: center; animation: sp-glow 3.6s ease-in-out infinite; }
.sp-halo { transform-box: fill-box; transform-origin: center; animation: sp-halo 3.6s ease-in-out infinite; }
@keyframes sp-glow { 0%, 100% { transform: scale(.94); opacity: .88; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes sp-halo { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

/* Sections */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Services */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-card { padding: 0; overflow: hidden; }
.service-card .card-top { padding: 32px 32px 24px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: var(--white); position: relative; }
.service-card .card-top::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}
.service-card .card-top p { color: var(--muted-dark); margin: 0; }
.service-card h3 { font-size: 1.5rem; margin: 12px 0 8px; }
.service-card .checklist { padding: 28px 32px 32px; margin: 0; }
.tag { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: .78rem; letter-spacing: .14em; padding: 4px 12px; border-radius: 6px; }
.tag-cyan { background: rgba(98, 201, 242, .18); color: var(--cyan); border: 1px solid rgba(98, 201, 242, .45); }
.tag-gold { background: rgba(217, 170, 78, .18); color: var(--gold); border: 1px solid rgba(217, 170, 78, .45); }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(98, 201, 242, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%232B86BE' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

.service-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.mini-card { display: flex; gap: 20px; padding: 28px 32px; align-items: flex-start; border-left: 4px solid var(--gold); }
.mini-card h3 { margin-bottom: .35em; }
.mini-card p { margin: 0; color: var(--muted); }

.icon {
  width: 44px; height: 44px; flex: none; padding: 10px; border-radius: 12px;
  background: rgba(98, 201, 242, .12); fill: none; stroke: #2B86BE; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.section-dark .icon { stroke: var(--cyan); background: rgba(98, 201, 242, .1); }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item {
  padding: 28px 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(98, 201, 242, .16);
  transition: border-color .2s, transform .2s;
}
.why-item:hover { border-color: rgba(217, 170, 78, .55); transform: translateY(-3px); }
.why-item h3 { margin-top: 18px; font-size: 1.1rem; }
.why-item p { color: var(--muted-dark); margin: 0; font-size: .97rem; }

/* Government */
.gov-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.gov-copy > p { color: var(--muted); font-size: 1.05rem; }
.gov-card { padding: 32px; border-top: 4px solid var(--gold); }
.gov-card h3 { font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.data-list { margin: 0; display: grid; gap: 0; }
.data-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.data-list > div:last-child { border-bottom: 0; }
.data-list dt { font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.data-list dd { margin: 0; font-size: .97rem; }
.data-list dd strong { font-family: var(--font-head); color: var(--navy); margin-right: 4px; }

/* About */
.about-layout { display: grid; grid-template-columns: minmax(340px, 420px) 1fr; gap: 64px; align-items: center; }
.facts-panel {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-3) 100%);
  border-radius: var(--radius); border-top: 4px solid var(--gold);
  padding: 30px 30px 22px; box-shadow: 0 18px 40px rgba(3, 26, 66, .22);
}
.facts-panel::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 201, 242, .18), transparent 70%); pointer-events: none;
}
.facts-title {
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 10px;
}
.facts-list { list-style: none; margin: 0; padding: 0; }
.facts-list li {
  display: flex; align-items: center; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid rgba(98, 201, 242, .14);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.35;
}
.facts-list li:last-child { border-bottom: 0; }
.facts-list small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .82rem; color: var(--muted-dark); margin-top: 2px; }
.facts-list svg {
  width: 38px; height: 38px; flex: none; padding: 8px; border-radius: 10px;
  background: rgba(217, 170, 78, .12); border: 1px solid rgba(217, 170, 78, .35);
  fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.facts-list .fact-muted { font-size: .88rem; color: var(--muted-dark); }
.facts-list .fact-muted svg { background: rgba(98, 201, 242, .08); border-color: rgba(98, 201, 242, .3); stroke: var(--cyan); }
.about-copy p { color: var(--muted); font-size: 1.08rem; max-width: 40em; }
.about-copy strong { color: var(--navy); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info > p { color: var(--muted-dark); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; font-size: 1.05rem; }
.contact-list a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(98, 201, 242, .4); }
.contact-list a:hover { border-color: var(--cyan); }
.contact-list address { font-style: normal; }
.note { font-size: .82rem; color: var(--gold); margin-left: 4px; }

.contact-form { padding: 32px; color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--navy); }
.field label span { color: #B5462F; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 12px 14px;
  border: 1px solid #C5CEDE; border-radius: 10px; background: #FBFCFE; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #2B86BE; box-shadow: 0 0 0 3px rgba(98, 201, 242, .3);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 12px 0 0; font-size: .92rem; color: var(--muted); min-height: 1.2em; }

/* Footer */
.site-footer { background: #020F28; color: #AEBAD3; padding: 56px 0 24px; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-brand img { width: 240px; height: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0 0 .4em; }
.small { font-size: .85rem; color: #8E9BB8; }
.footer-nav { display: grid; gap: 8px; align-content: start; }
.footer-nav a, .footer-contact a { color: #DDE6F5; text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact { display: grid; gap: 8px; align-content: start; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; font-size: .85rem; color: #8E9BB8; }
.footer-bottom p { margin: 0; }

/* Reveal on scroll (only when JS is active) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .site-nav ul { gap: 20px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--navy); border-bottom: 1px solid rgba(98, 201, 242, .2);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.open { max-height: 480px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-nav li a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 16px; width: 100%; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-visual { order: -1; margin: -24px -18px -8px; }
  .splice { width: 100%; max-width: 560px; margin: 0; }
  .hero h1 .accent { display: inline; }
  .lead { margin-inline: auto; }
  .hero-ctas, .hero-tags { justify-content: center; }
  .service-grid, .service-extra, .gov-layout, .contact-layout { grid-template-columns: 1fr; }
  .gov-layout, .contact-layout { gap: 40px; }
  .about-layout { grid-template-columns: 1fr; gap: 36px; }
  .about-copy { order: -1; }
  .facts-panel { max-width: 560px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 36px); }
  .why-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .service-card .card-top, .service-card .checklist { padding-left: 22px; padding-right: 22px; }
  .facts-panel { padding: 24px 20px 16px; }
  .facts-list li { font-size: .95rem; }
  .mini-card { padding: 22px; flex-direction: column; gap: 14px; }
  .gov-card, .contact-form { padding: 22px; }
  .data-list > div { grid-template-columns: 1fr; gap: 2px; }
  .hero-ctas .btn { width: 100%; }
  .brand-text { font-size: 1rem; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fl.pulse { stroke-dasharray: none; opacity: .12; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero-fx, .contact-form, .nav-toggle { display: none !important; }
}
