/* ============ Power Punkt — landing styles ============ */

:root {
  /* palette (from references: deep teal on warm white, amber energy accent) */
  --bg-dark: #04202d;
  --bg-dark-2: #062a3a;
  --teal: #093753;
  --teal-mid: #0f4a68;
  --bg-light: #f4f1ea;
  --ink: #0b1c26;
  --ink-soft: #41565f;
  --line-light: rgba(11, 28, 38, .14);
  --line-dark: rgba(244, 241, 234, .16);
  --accent: #ffab2e;
  --accent-deep: #e08c00;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --wrap: 1160px;
  --pad: clamp(20px, 5vw, 48px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--bg-dark); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { scroll-margin-top: 84px; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .25s var(--ease-out), border-color .25s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(4, 32, 45, .82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-dark);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bg-light);
  text-decoration: none;
}

.brand-dot { color: var(--accent); flex: none; }
.brand:hover .dot-core { animation: dot-pulse 1.2s var(--ease-out); }

@keyframes dot-pulse {
  0% { r: 3.4px; }
  40% { r: 5.5px; }
  100% { r: 3.4px; }
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.main-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, .78);
  text-decoration: none;
  padding: 6px 2px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
  transition: color .2s var(--ease-out), background-size .25s var(--ease-out);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--bg-light);
  background-size: 100% 1px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  padding: 0 22px;
  height: 48px;
  transition: background .2s var(--ease-out), color .2s var(--ease-out), transform .15s var(--ease-out);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-primary:hover { background: #ffc25c; }

.btn-small {
  height: 40px;
  padding: 0 18px;
  background: rgba(244, 241, 234, .1);
  color: var(--bg-light);
  border: 1px solid var(--line-dark);
}

.btn-small:hover { background: rgba(244, 241, 234, .2); }

.btn-large {
  height: 60px;
  padding: 0 34px;
  font-size: 16px;
}

/* slide-up text hover (text stack inside fixed-height line box) */
.btn-text {
  display: inline-block;
  overflow: hidden;
  height: 1.35em;
}

.btn-text > span {
  display: block;
  height: 1.35em;
  line-height: 1.35em;
  transition: transform .25s var(--ease-out);
}

.btn:hover .btn-text > span,
.btn:focus-visible .btn-text > span { transform: translateY(-1.35em); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(244, 241, 234, .8);
  text-decoration: none;
  padding: 6px 2px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
  transition: color .2s, background-size .25s var(--ease-out);
}

.link-arrow::after { content: '\2193'; transition: transform .2s var(--ease-out); }
.link-arrow:hover { color: var(--bg-light); background-size: 100% 1px; }
.link-arrow:hover::after { transform: translateY(3px); }

/* ---------- shared section bits ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-dark { background: var(--bg-dark); color: var(--bg-light); }
.section-dark .eyebrow { color: var(--accent); }

.section-light { background: var(--bg-light); color: var(--ink); padding: clamp(80px, 12vh, 140px) 0; }
.section-light .eyebrow { color: var(--teal-mid); }

.section-head { margin-bottom: clamp(44px, 7vh, 72px); max-width: 720px; }

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-top: 14px;
}

.section-sub {
  margin-top: 18px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.section-dark .section-sub { color: rgba(244, 241, 234, .72); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 70% at 70% 30%, var(--bg-dark-2) 0%, var(--bg-dark) 60%);
}

#energy-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-inner { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 80px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(58px, 12.5vw, 156px);
  line-height: .98;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin: 22px 0 26px;
}

.title-dot {
  display: inline-block;
  width: .14em;
  height: .14em;
  border-radius: 50%;
  background: var(--accent);
  margin-left: .08em;
  box-shadow: 0 0 24px 4px rgba(255, 171, 46, .55);
}

.hero-sub {
  max-width: 56ch;
  color: rgba(244, 241, 234, .78);
  font-size: clamp(16px, 1.6vw, 19px);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
  flex-wrap: wrap;
}

/* load reveal */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
  display: block;
  transform: translateY(110%);
  animation: line-up .9s var(--ease-out) forwards;
}
.hero-title .reveal-line:nth-child(2) > span { animation-delay: .12s; }

@keyframes line-up { to { transform: translateY(0); } }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up .8s var(--ease-out) forwards;
}
.hero .eyebrow.reveal { animation-delay: .05s; }
.hero-sub.reveal { animation-delay: .3s; }
.hero-actions.reveal { animation-delay: .45s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: var(--line-dark);
  overflow: hidden;
}

.scroll-hint span {
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: var(--accent);
  animation: hint-drop 1.8s var(--ease-out) infinite;
}

@keyframes hint-drop {
  0% { top: -40%; }
  60%, 100% { top: 110%; }
}

/* ---------- accordion / directions ---------- */

.accordion-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.accordion { border-top: 1px solid var(--line-light); }

.acc-item { border-bottom: 1px solid var(--line-light); }

.acc-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 52px 1fr 10px;
  align-items: center;
  gap: 18px;
  padding: 26px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .015em;
  color: var(--ink);
  transition: color .2s var(--ease-out), padding-left .25s var(--ease-out);
}

.acc-trigger:hover { color: var(--teal); padding-left: 12px; }

.acc-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  transition: color .2s;
}

.acc-item.is-active .acc-num { color: var(--accent-deep); }

.acc-progress {
  width: 2px;
  height: 12px;
  background: var(--line-light);
  position: relative;
  justify-self: end;
  transition: height .3s var(--ease-out);
}

.acc-progress i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s var(--ease-out);
}

.acc-item.is-active .acc-progress { height: 48px; }
.acc-item.is-active .acc-progress i { transform: scaleY(1); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-out);
}

.acc-item.is-active .acc-panel { grid-template-rows: 1fr; }

.acc-body {
  overflow: hidden;
  padding-left: 70px;
}

.acc-body p {
  color: var(--ink-soft);
  max-width: 58ch;
  padding-bottom: 8px;
}

.acc-item.is-active .acc-body { padding-bottom: 28px; }

.tag-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 26px;
}

.tag-row li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  padding: 5px 12px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: var(--ink-soft);
}

.acc-preview {
  position: sticky;
  top: 110px;
}

.preview-stage {
  position: relative;
  aspect-ratio: 1;
  background: var(--teal);
  border-radius: 8px;
  overflow: hidden;
}

.preview-svg {
  position: absolute;
  inset: 12%;
  width: 76%;
  height: 76%;
  opacity: 0;
  transform: scale(.96);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}

.preview-svg.is-visible { opacity: 1; transform: scale(1); }

.preview-caption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ink-soft);
}

/* ---------- technology flow ---------- */

.section-tech { padding: clamp(80px, 12vh, 140px) 0; }

.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(9, auto);
  gap: 12px;
  align-items: stretch;
}

.flow-step {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 22px 18px 24px;
  max-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(244, 241, 234, .03);
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out), transform .25s var(--ease-out);
}

.flow-step:hover {
  border-color: rgba(255, 171, 46, .5);
  background: rgba(255, 171, 46, .05);
  transform: translateY(-4px);
}

.flow-step svg { width: 44px; height: 44px; color: var(--bg-light); }

.flow-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .12em;
}

.flow-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.flow-step p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(244, 241, 234, .68);
}

.flow-connector {
  align-self: center;
  width: clamp(20px, 3vw, 52px);
  color: rgba(244, 241, 234, .35);
}

.flow-connector svg { display: block; width: 100%; height: auto; }

.tech-note {
  margin-top: clamp(40px, 6vh, 64px);
  color: rgba(244, 241, 234, .5);
  text-align: center;
}

/* ---------- projects ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.card {
  border: 1px solid var(--line-light);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px -18px rgba(9, 55, 83, .35);
}

.card-media { overflow: hidden; }
.card-media svg { display: block; width: 100%; height: auto; transition: transform .5s var(--ease-out); }
.card:hover .card-media svg { transform: scale(1.04); }

.card-body { padding: 22px 22px 26px; }

.card-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 10px;
}

.card-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .015em;
  margin-bottom: 10px;
}

.card-body p { font-size: 15px; color: var(--ink-soft); }

/* ---------- CTA ---------- */

.section-cta {
  padding: clamp(100px, 16vh, 180px) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(255, 171, 46, .12) 0%, transparent 60%),
    var(--bg-dark);
}

.cta-inner { display: flex; flex-direction: column; align-items: center; }

.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1;
  text-transform: uppercase;
  margin: 20px 0 24px;
}

.cta-sub {
  max-width: 52ch;
  color: rgba(244, 241, 234, .75);
  margin-bottom: 40px;
}

.section-cta .reveal { animation-delay: .15s; }
.section-cta .cta-sub.reveal { animation-delay: .3s; }
.section-cta .reveal:last-child { animation-delay: .45s; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--line-dark);
  color: rgba(244, 241, 234, .65);
  padding: 44px 0 36px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 40px;
  align-items: center;
}

.footer-note { font-size: 14px; }

.footer-links {
  display: flex;
  gap: 22px;
  grid-column: 3;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(244, 241, 234, .7);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat;
  transition: color .2s, background-size .25s var(--ease-out);
}

.footer-links a:hover { color: var(--bg-light); background-size: 100% 1px; }

.footer-copy {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(244, 241, 234, .4);
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}

/* ---------- focus ---------- */

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

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-connector { width: 100%; padding: 6px 0; }
  .flow-connector svg { max-width: 80px; }
  .flow-step { max-width: none; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .accordion-layout { grid-template-columns: 1fr; }
  .acc-preview { position: static; max-width: 420px; }
  .cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-column: 1; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .acc-body { padding-left: 0; }
  .acc-trigger { grid-template-columns: 40px 1fr 10px; gap: 12px; }
  .hero-actions { gap: 18px; }
  .btn-large { width: 100%; justify-content: center; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-line > span { animation: none !important; opacity: 1; transform: none; }
  .scroll-hint span { animation: none; }
  .card, .flow-step, .preview-svg, .acc-panel, .btn-text > span { transition: none; }
}

