/* ===== Everline Tech — stamp seal + postage bento ===== */
:root {
  --bg:          #07090a;
  --bg-alt:      #0c1214;
  --surface:     #121a1c;
  --surface-2:   #172224;
  --line:        rgba(18, 238, 240, 0.18);
  --cyan:        #12eef0;
  --cyan-2:      #7af6f8;
  --cyan-deep:   #0a9ea4;
  --teal:        #23909f;
  --text:        #f2fbfc;
  --muted:       #c5d6d8;
  --on-dark:     #f2fbfc;
  --radius:      4px;
  --maxw:        1120px;
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --serif:       "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:        "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name, .path-seal, .stamp-kicker, .kicker, .eyebrow, .quote-inner blockquote {
  font-family: var(--serif);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: break-word;
}
p, li, blockquote { overflow-wrap: break-word; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--cyan); color: #07090a; padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--cyan); color: #07090a;
  box-shadow: 0 10px 28px -12px rgba(18, 238, 240, 0.55);
}
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 9, 10, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { border-radius: 50%; border: 1px solid var(--line); flex: 0 0 auto; }
.brand-name { font-size: 20px; font-weight: 600; letter-spacing: 0.01em; }
.brand-name em { font-style: italic; font-weight: 500; color: var(--cyan-2); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s var(--ease); }
.nav .nav-cta {
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-toggle span { width: 22px; height: 2px; background: var(--cyan-2); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.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 */
.hero {
  position: relative;
  padding: 132px 0 72px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-dots {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(18, 238, 240, 0.16) 1.1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 72%);
}
.hero-glow {
  position: absolute; right: -8%; top: 8%; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(18, 238, 240, 0.16), transparent 64%);
  pointer-events: none; z-index: 0;
  animation: glowPulse 6.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 36px;
}
.hero-copy, .section-head, .quote-inner, .stamp, .path-row, .who-copy, .faq-lead, .contact-copy {
  max-width: 100%;
  min-width: 0;
}
.hero-copy { max-width: 560px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-2);
  margin: 0 0 18px;
  font-weight: 600;
  font-family: var(--sans);
}
.hero h1 {
  font-size: clamp(2.15rem, 5.2vw, 3.55rem);
  font-weight: 600;
  color: var(--text);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 22px 0 0;
  max-width: min(48ch, 100%);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* Circular wax-seal */
.hero-seal { display: grid; place-items: center; min-width: 0; }
.seal {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
}
.seal-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 28px rgba(18, 238, 240, 0.18)); }
.seal-scallop { transform-origin: 200px 200px; animation: sealSpin 48s linear infinite; }
.seal-inner-edge { transform-origin: 200px 200px; animation: sealSpin 72s linear infinite reverse; }
.seal-type { transform-origin: 200px 200px; animation: sealSpin 36s linear infinite; }
.seal-dash { transform-origin: 200px 200px; animation: dashSpin 22s linear infinite; }
@keyframes sealSpin { to { transform: rotate(360deg); } }
@keyframes dashSpin { to { transform: rotate(-360deg); } }

.seal-face {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(18, 238, 240, 0.35);
  box-shadow: 0 0 0 8px #0c1214, 0 0 40px rgba(18, 238, 240, 0.18);
  animation: facePulse 5.5s ease-in-out infinite;
}
.seal-face img { width: 100%; height: 100%; object-fit: cover; }
@keyframes facePulse {
  0%, 100% { box-shadow: 0 0 0 8px #0c1214, 0 0 32px rgba(18, 238, 240, 0.14); }
  50% { box-shadow: 0 0 0 8px #0c1214, 0 0 48px rgba(18, 238, 240, 0.32); }
}

@media (prefers-reduced-motion: reduce) {
  .seal-scallop, .seal-inner-edge, .seal-type, .seal-dash, .hero-glow, .seal-face { animation: none; }
}

/* Quote band */
.quote-band {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
  padding: 72px 0;
}
.quote-inner { max-width: 820px; text-align: center; }
.quote-mark {
  display: block;
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--cyan);
  opacity: 0.7;
  margin-bottom: 8px;
}
.quote-inner blockquote {
  font-size: clamp(1.45rem, 3.2vw, 2.25rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text);
}
.quote-attr {
  margin: 22px 0 0;
  color: var(--cyan-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

/* Sections */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin: 0 0 12px;
  font-family: var(--sans);
}
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 600; }
.section-head .lead { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* Postage-stamp bento */
.bento {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 14px;
}
.stamp {
  position: relative;
  background: var(--surface);
  color: var(--text);
  padding: 28px 24px 26px;
  min-width: 0;
  border: 2px dashed rgba(18, 238, 240, 0.32);
  box-shadow: inset 0 0 0 7px var(--surface);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.stamp-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-2);
  margin-bottom: 12px;
  font-weight: 600;
}
.stamp h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 600; margin-bottom: 10px; }
.stamp p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.tile-intern { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; }
.tile-intern::before {
  content: "";
  position: absolute; inset: 14px 14px auto 14px; height: 46%;
  background:
    radial-gradient(circle at 20% 40%, rgba(18, 238, 240, 0.18), transparent 42%),
    repeating-linear-gradient(90deg, rgba(18, 238, 240, 0.12) 0 2px, transparent 2px 18px);
  pointer-events: none;
}
.tile-full { grid-column: 2 / 4; grid-row: 1; }
.tile-coop { grid-column: 2; grid-row: 2; }
.tile-students { grid-column: 3; grid-row: 2; }
.tile-companies { grid-column: 1 / 3; grid-row: 3; }
.tile-chicago { grid-column: 3; grid-row: 3; background: #0a1214; }

/* Path */
.path-list { list-style: none; display: grid; gap: 0; }
.path-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.path-row:last-child { border-bottom: 1px solid var(--line); }
.path-seal {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px dashed var(--cyan);
  color: var(--cyan);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--bg);
  box-shadow: inset 0 0 0 6px var(--bg), 0 0 0 1px rgba(18, 238, 240, 0.15);
}
.path-row h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 8px; }
.path-row p { margin: 0; color: var(--muted); max-width: 62ch; }

/* Who */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.who-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.who-copy p { color: var(--muted); margin: 0; }
.who-list { list-style: none; display: grid; gap: 12px; }
.who-item {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 22px;
  color: var(--muted);
  font-size: 0.98rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.who-item span {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 6px;
  font-weight: 600;
}

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.faq-lead p:last-child { color: var(--muted); margin: 12px 0 0; }
.faq-lead h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.faq-item.open { border-color: var(--cyan-deep); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--text);
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600; padding: 20px 22px;
}
.faq-ico { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--cyan); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-ico::after { transform: scaleY(0); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 280px; }
.faq-a p { color: var(--muted); margin: 0; padding: 0 22px 20px; font-size: 0.98rem; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 14px; }
.contact-copy p { color: var(--muted); margin: 0 0 20px; }
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--cyan-2);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.contact-form {
  background: var(--surface);
  border: 1px dashed rgba(18, 238, 240, 0.32);
  padding: 28px 24px;
  display: grid;
  gap: 16px;
  box-shadow: inset 0 0 0 7px var(--surface);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  width: 100%;
  resize: vertical;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); }
.contact-form .btn { justify-self: start; margin-top: 4px; }

/* Footer */
.site-footer {
  background: #050708;
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  color: var(--text);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.footer-tag { color: var(--muted); margin: 12px 0 0; font-size: 0.95rem; max-width: 36ch; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 14px; font-weight: 600; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px; padding-top: 20px;
}

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Hover AFTER reveal.in so lift is not overwritten */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--text); }
  .nav .nav-cta:hover {
    border-color: var(--cyan);
    color: var(--cyan-2);
    transform: translateY(-2px);
  }
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -10px rgba(18, 238, 240, 0.7);
  }
  .btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    color: var(--cyan-2);
  }
  .stamp:hover {
    transform: translateY(-6px);
    border-color: var(--cyan);
    background: var(--surface-2);
    box-shadow: inset 0 0 0 7px var(--surface-2), 0 18px 36px -22px rgba(18, 238, 240, 0.45);
  }
  .path-row:hover { transform: translateX(6px); }
  .path-row:hover .path-seal { background: rgba(18, 238, 240, 0.08); }
  .who-item:hover {
    transform: translateY(-4px);
    border-color: var(--cyan);
    background: var(--surface-2);
  }
  .faq-q:hover { color: var(--cyan-2); }
  .contact-email:hover { border-bottom-color: var(--cyan); color: var(--cyan); }
  .footer-nav a:hover { color: var(--cyan-2); }
  .contact-form:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 7px var(--surface), 0 18px 40px -24px rgba(18, 238, 240, 0.35);
  }
}

/* Tablet */
@media (max-width: 960px) {
  .hero { min-height: 0; padding: 120px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-seal { order: -1; }
  .seal { width: min(320px, 78vw); margin: 0 auto; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .tile-intern { grid-column: 1 / 3; grid-row: auto; min-height: 0; }
  .tile-full { grid-column: 1 / 3; grid-row: auto; }
  .tile-coop, .tile-students, .tile-companies, .tile-chicago { grid-column: auto; grid-row: auto; }
  .tile-companies { grid-column: 1 / 3; }
  .who-grid, .faq-wrap, .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .path-row { grid-template-columns: 72px 1fr; gap: 18px; }
}

/* Mobile */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(7, 9, 10, 0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav .nav-cta { text-align: center; margin-top: 12px; border: 1px solid var(--cyan-deep); }

  .hero { padding: 100px 0 48px; }
  .hero-actions { gap: 10px; }
  .seal { width: min(240px, 70vw); }
  .section { padding: 64px 0; }
  .quote-band { padding: 56px 0; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .tile-intern, .tile-full, .tile-coop, .tile-students, .tile-companies, .tile-chicago {
    grid-column: 1; grid-row: auto;
  }
  .stamp { padding: 22px 18px 20px; }
  .path-row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .path-seal { width: 56px; height: 56px; font-size: 1rem; }
  .contact-form { padding: 22px 18px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .header-inner { height: 64px; }
  .brand-name { font-size: 17px; }
  .hero { padding: 88px 0 40px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-sub { font-size: 1rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .seal { width: min(210px, 68vw); }
  .section { padding: 56px 0; }
  .quote-mark { font-size: 3.4rem; }
  .nav { inset: 64px 0 auto 0; padding: 12px 18px 20px; }
}
