/* ============================================
   ALVEX STUDIO — Homepage Styles
   ============================================ */

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 64px;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-lines::before {
  content: '';
  position: absolute;
  left: 48px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(42,94,232,.3), transparent);
}
.hero-lines::after {
  content: '';
  position: absolute;
  right: 48px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(42,94,232,.15), transparent);
}
.hero-num {
  position: absolute;
  top: 120px;
  right: 52px;
  font-family: var(--display);
  font-size: 200px;
  font-weight: 700;
  color: rgba(42,94,232,.05);
  line-height: 1;
  letter-spacing: -.05em;
  pointer-events: none;
  user-select: none;
}
.hero-eyebrow {
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero.has-loader .hero-eyebrow {
  opacity: 0;
  transform: translateY(20px);
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--amber);
}

/* Hero animations — triggered after loader completes */
.hero.loaded .hero-eyebrow {
  animation: heroUp .8s .6s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-headline {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-size: clamp(72px, 13vw, 148px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: var(--warm-white);
  overflow: visible;
}
.hero-headline .line {
  display: block;
  overflow: visible;
}
.hero-headline .line span {
  display: block;
}
.hero.has-loader .hero-headline .line span {
  opacity: 0;
  transform: translateY(100%);
}
.hero.loaded .hero-headline .line span {
  animation: heroLineIn .9s cubic-bezier(.16,1,.3,1) forwards;
}
.hero.loaded .hero-headline .line:nth-child(1) span { animation-delay: .2s; }
.hero.loaded .hero-headline .line:nth-child(2) span { animation-delay: .35s; }
.hero.loaded .hero-headline .line:nth-child(3) span { animation-delay: .5s; }

@keyframes heroLineIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroUp {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Logo Line Drawing --- */
.hero-logo-bg {
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 85vh;
  height: 85vh;
  z-index: 0;
  pointer-events: none;
  opacity: .12;
}
.hero-logo-bg svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Outer frame outline — path ~4561 units */
.logo-tri {
  stroke: var(--blue);
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 4561;
  stroke-dashoffset: 4561;
  animation: drawTri 8s ease-in-out infinite;
}

/* Base trapezoid outline — path ~1004 units */
.logo-base {
  stroke: var(--warm-white);
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 1004;
  stroke-dashoffset: 1004;
  animation: drawBase 8s ease-in-out infinite;
}

/* Inner triangle outline — path ~896 units */
.logo-dot-tri {
  stroke: var(--blue);
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 896;
  stroke-dashoffset: 896;
  animation: drawInner 8s ease-in-out infinite;
}

/* Outer triangle draws on, holds, fades out */
@keyframes drawTri {
  0%        { stroke-dashoffset: 4561; opacity: 0; }
  3%        { opacity: 1; }
  25%       { stroke-dashoffset: 0; opacity: 1; }
  65%       { stroke-dashoffset: 0; opacity: 1; }
  85%       { stroke-dashoffset: 0; opacity: 0; }
  100%      { stroke-dashoffset: 4561; opacity: 0; }
}

/* Base sweeps in after triangle, fades out */
@keyframes drawBase {
  0%, 20%   { stroke-dashoffset: 1004; opacity: 0; }
  23%       { opacity: 1; }
  35%       { stroke-dashoffset: 0; }
  65%       { stroke-dashoffset: 0; opacity: 1; }
  85%       { stroke-dashoffset: 0; opacity: 0; }
  100%      { stroke-dashoffset: 1004; opacity: 0; }
}

/* Inner triangle draws in after base, fades out */
@keyframes drawInner {
  0%, 30%   { stroke-dashoffset: 896; opacity: 0; }
  33%       { opacity: 1; }
  45%       { stroke-dashoffset: 0; }
  65%       { stroke-dashoffset: 0; opacity: 1; }
  85%       { stroke-dashoffset: 0; opacity: 0; }
  100%      { stroke-dashoffset: 896; opacity: 0; }
}

@media (max-width: 768px) {
  .hero-logo-bg {
    width: 90vh;
    height: 90vh;
    left: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-tri { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .logo-base { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .logo-dot-tri { animation: none; stroke-dashoffset: 0; opacity: 1; }
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 40px;
  gap: 24px;
  flex-wrap: wrap;
}
.hero.has-loader .hero-bottom {
  opacity: 0;
  transform: translateY(20px);
}
.hero.loaded .hero-bottom {
  animation: heroUp .8s .7s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: rgba(240,237,230,.55);
  max-width: 440px;
  line-height: 1.7;
}
.hero-cta-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}
.hero-scroll {
  position: absolute;
  top: 100px;
  left: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero.has-loader .hero-scroll {
  opacity: 0;
  transform: translateY(10px);
}
.hero.loaded .hero-scroll {
  animation: heroUp .8s 1s forwards;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(240,237,230,.3), transparent);
}
.hero-scroll-txt {
  font-size: 9px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(240,237,230,.3);
  writing-mode: vertical-rl;
}

/* --- About Strip --- */
.about-strip {
  padding: 120px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  background: var(--navy);
}
.about-left h2 {
  font-size: clamp(36px, 5.5vw, 62px);
  line-height: .98;
  margin-bottom: 32px;
}
.about-left p {
  font-size: 15px;
  font-weight: 300;
  color: rgba(240,237,230,.5);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 420px;
}

/* Definition Card */
.definition-card {
  background: var(--mid);
  border: 1px solid rgba(42,94,232,.2);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.definition-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.def-word-big {
  font-family: var(--display);
  font-size: 52px;
  font-weight: 700;
  color: var(--warm-white);
  letter-spacing: -.04em;
  font-style: italic;
  margin-bottom: 4px;
}
.def-phonetic {
  font-size: 13px;
  color: var(--steel);
  margin-bottom: 20px;
}
.def-sep {
  width: 40px;
  height: 1px;
  background: var(--amber);
  margin-bottom: 20px;
}
.def-text {
  font-size: 13px;
  font-weight: 300;
  color: rgba(240,237,230,.55);
  line-height: 1.75;
  margin-bottom: 24px;
}
.def-quote {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--warm-white);
  letter-spacing: -.02em;
}
.def-quote em {
  font-style: normal;
  color: var(--amber);
}
.def-bg-text {
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-family: var(--display);
  font-size: 80px;
  font-weight: 700;
  color: rgba(42,94,232,.06);
  letter-spacing: -.04em;
  pointer-events: none;
  font-style: italic;
}

/* --- Services List --- */
.services {
  padding: 0 48px 140px;
  background: var(--navy);
}
.services-header,
.services-list {
  max-width: 1100px;
  margin: 0 auto;
}
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
}
.services-header h2 {
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1;
}
.services-header p {
  font-size: 14px;
  color: rgba(240,237,230,.4);
  max-width: 240px;
  text-align: right;
  line-height: 1.65;
}
.services-list {
  display: flex;
  flex-direction: column;
}
.svc {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding: 28px 24px;
  border-top: 1px solid rgba(240,237,230,.06);
  transition: all .25s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.svc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  z-index: 0;
}
.svc:hover::before { transform: scaleX(1); }
.svc:last-child { border-bottom: 1px solid rgba(240,237,230,.06); }
.svc * { position: relative; z-index: 1; }
.svc-num {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  color: rgba(240,237,230,.2);
  letter-spacing: .06em;
}
.svc-name {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--warm-white);
  letter-spacing: -.03em;
  transition: color .2s;
}
.svc:hover .svc-name { color: var(--blue); }
.svc-desc {
  font-size: 13px;
  color: rgba(240,237,230,.35);
  max-width: 300px;
  line-height: 1.6;
  transition: color .2s;
}
.svc:hover .svc-desc { color: rgba(240,237,230,.65); }
.svc-price {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -.02em;
  text-align: right;
  white-space: nowrap;
}
.svc-arrow {
  font-size: 20px;
  color: rgba(240,237,230,.2);
  transition: transform .25s, color .25s;
}
.svc:hover .svc-arrow {
  transform: translateX(6px);
  color: var(--blue);
}

/* --- Process --- */
.process {
  padding: 120px 48px;
  background: var(--mid);
  position: relative;
  overflow: hidden;
}
.process::before {
  content: 'HOW';
  position: absolute;
  right: -20px;
  top: -30px;
  font-family: var(--display);
  font-size: 240px;
  font-weight: 700;
  color: rgba(240,237,230,.02);
  letter-spacing: -.05em;
  pointer-events: none;
  line-height: 1;
}
.process-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
}
.process-top h2 {
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: .98;
}
.process-intro {
  font-size: 13px;
  font-weight: 300;
  color: rgba(240,237,230,.4);
  max-width: 240px;
  line-height: 1.7;
  padding-top: 8px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(240,237,230,.06);
}
.step {
  background: var(--mid);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--dark);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  z-index: 0;
}
.step:hover::before { transform: scaleY(1); }
.step * { position: relative; z-index: 1; }
.step-num {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  color: rgba(42,94,232,.35);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 24px;
  transition: color .3s;
}
.step:hover .step-num { color: rgba(42,94,232,.7); }
.step-title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.step-desc {
  font-size: 12px;
  font-weight: 300;
  color: rgba(240,237,230,.4);
  line-height: 1.65;
}
.step-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background .3s;
}
.step:hover .step-line { background: var(--blue); }

/* --- Testimonials --- */
.testimonials {
  padding: 120px 48px;
  background: var(--navy);
}
.testi-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 64px;
}
.testi-aggregate {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}
.testi-stars {
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--amber);
}
.testi-rating {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 700;
  color: var(--warm-white);
  letter-spacing: -.04em;
  line-height: 1;
}
.testi-count {
  font-size: 12px;
  color: rgba(240,237,230,.35);
  margin-top: 4px;
}
.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.tcard {
  background: var(--mid);
  padding: 36px 32px;
  border: 1px solid rgba(240,237,230,.04);
  position: relative;
  overflow: hidden;
  transition: border-color .3s;
}
.tcard:hover { border-color: rgba(42,94,232,.3); }
.tcard-accent {
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 0;
  background: var(--blue);
  transition: height .4s cubic-bezier(.16,1,.3,1);
}
.tcard:hover .tcard-accent { height: 100%; }
.tcard-quote {
  font-size: 15px;
  font-weight: 300;
  color: rgba(240,237,230,.7);
  line-height: 1.75;
  margin-bottom: 28px;
  font-style: italic;
}
.tcard-quote::before {
  content: '\201C';
  font-family: var(--display);
  font-size: 48px;
  color: rgba(42,94,232,.2);
  line-height: 0;
  vertical-align: -18px;
  margin-right: 4px;
}
.tcard-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tcard-av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--steel));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.tcard-name {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--warm-white);
  letter-spacing: -.01em;
}
.tcard-biz {
  font-size: 12px;
  color: rgba(240,237,230,.35);
  margin-top: 2px;
}
.tcard-wide { grid-column: span 2; }
.tcard-wide .tcard-quote {
  font-size: 20px;
  letter-spacing: -.01em;
  color: rgba(240,237,230,.8);
}

/* --- Blog Preview --- */
.blog-section {
  padding: 120px 48px;
  background: var(--mid);
}
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
}
.blog-header h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: .98;
}
.blog-all-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(240,237,230,.35);
  text-decoration: none;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-all-link:hover { color: var(--warm-white); }
.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2px;
}
.bpost {
  background: var(--dark);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: background .25s;
  text-decoration: none;
  display: block;
}
.bpost:hover { background: #111a26; }
.bpost-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 1px;
  margin-bottom: 20px;
}
.tag-seo { background: rgba(42,94,232,.15); color: #7BA3F5; }
.tag-aeo { background: rgba(29,158,117,.15); color: #5DCAA5; }
.tag-geo { background: rgba(200,151,58,.15); color: #E8B860; }
.tag-local { background: rgba(200,151,58,.15); color: #E8B860; }
.bpost h3 {
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.bpost p {
  font-size: 12px;
  font-weight: 300;
  color: rgba(240,237,230,.4);
  line-height: 1.65;
  margin-bottom: 24px;
}
.bpost-read {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s;
}
.bpost:hover .bpost-read { gap: 12px; }
.bpost-num {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-family: var(--display);
  font-size: 64px;
  font-weight: 700;
  color: rgba(240,237,230,.03);
  letter-spacing: -.05em;
  pointer-events: none;
  line-height: 1;
}
.bpost-featured { grid-row: span 2; }
.bpost-featured h3 { font-size: clamp(20px, 2.5vw, 28px); }

/* CTA Section styles moved to main.css */

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero { padding: 0 24px 48px; }
  .about-strip { padding: 80px 24px; gap: 40px; }
  .services { padding: 0 24px 80px; }
  .process { padding: 80px 24px; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials { padding: 80px 24px; }
  .blog-section { padding: 80px 24px; }
  .cta-section { padding: 100px 24px; }
  .svc { grid-template-columns: 60px 1fr auto; }
  .svc-desc { display: none; }
}

@media (max-width: 768px) {
  .hero { padding: 0 20px 40px; }
  .hero-num { font-size: 120px; top: 100px; right: 20px; }
  .hero-lines::before { left: 20px; }
  .hero-lines::after { right: 20px; }
  .hero-scroll { left: 20px; bottom: 40px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }

  .about-strip {
    grid-template-columns: 1fr;
    padding: 60px 20px;
    gap: 40px;
  }
  .services { padding: 0 20px 60px; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .services-header p { text-align: left; }
  .svc { grid-template-columns: 1fr auto; gap: 16px; }
  .svc-num { display: none; }

  .process { padding: 60px 20px; }
  .process-top { flex-direction: column; gap: 16px; }
  .process-intro { max-width: 100%; }
  .steps-grid { grid-template-columns: 1fr; }

  .testimonials { padding: 60px 20px; }
  .testi-top { grid-template-columns: 1fr; gap: 32px; }
  .testi-grid { grid-template-columns: 1fr; }
  .tcard-wide { grid-column: span 1; }
  .tcard-wide .tcard-quote { font-size: 16px; }

  .blog-section { padding: 60px 20px; }
  .blog-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .blog-grid { grid-template-columns: 1fr; }
  .bpost-featured { grid-row: span 1; }

  .hero-logo-bg { width: 70vh; height: 70vh; left: 50%; }
  .process::before { font-size: 120px; }
  .def-bg-text { font-size: 50px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: clamp(42px, 12vw, 72px); }
  .hero-eyebrow { font-size: 10px; letter-spacing: .12em; }
  .hero-sub { font-size: 15px; }
  .hero-num { font-size: 80px; }
  .hero-logo-bg { width: 60vh; height: 60vh; }

  .def-word-big { font-size: 36px; }
  .testi-rating { font-size: 36px; }

  .svc-name { font-size: 20px; }
  .svc-price { font-size: 18px; }

  .step-num { font-size: 36px; }

  .cta-section { padding: 80px 20px; }
}
