/* GLADIOZ — Home page */

/* ========== HERO ========== */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 78vh;
}

.hero-meta {
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.hero-meta::before {
  content: ''; display: block; width: 40px; height: 1px;
  background: var(--maroon);
  animation: drawLine 1s 0.2s cubic-bezier(0.22,1,0.36,1) backwards;
}
@keyframes drawLine { from { width: 0; } }

.hero-title {
  font-size: clamp(3rem, 7.5vw, 7.6rem);
  margin-bottom: 36px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .word {
  display: inline-block;
  animation: wordRise 1s cubic-bezier(0.22,1,0.36,1) backwards;
}
.hero-title .line:nth-child(1) .word:nth-child(1) { animation-delay: .05s; }
.hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: .15s; }
.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: .25s; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: .35s; }
.hero-title .line:nth-child(3) .word:nth-child(1) { animation-delay: .45s; }
.hero-title .line:nth-child(3) .word:nth-child(2) { animation-delay: .55s; }
.hero-title .line:nth-child(3) .word:nth-child(3) { animation-delay: .65s; }
.hero-title .word.italic {
  font-style: italic;
  color: var(--maroon);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
.hero-title .word.ink { color: var(--ink); }
@keyframes wordRise {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  color: var(--ink-2);
  max-width: 48ch;
  font-weight: 300;
  margin-bottom: 36px;
  animation: wordRise 1s 0.8s cubic-bezier(0.22,1,0.36,1) backwards;
}

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 64px;
  animation: wordRise 1s 0.95s cubic-bezier(0.22,1,0.36,1) backwards;
}

.hero-stats {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  animation: wordRise 1s 1.05s cubic-bezier(0.22,1,0.36,1) backwards;
}
.hero-stats > div {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-stats strong {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--maroon);
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 1;
}
.hero-stats span {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.4;
}

/* ===== Hero right collage ===== */
.hero-right {
  position: relative;
  height: 620px;
}

.hero-card {
  position: absolute;
  border-radius: 4px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
  animation: cardIn 1.2s cubic-bezier(0.22,1,0.36,1) backwards;
}
@keyframes cardIn {
  from { transform: translateY(40px) scale(0.96) rotate(var(--rot, 0deg)); opacity: 0; }
}

.hc-1 {
  width: 58%;
  top: 0;
  left: 8%;
  --rot: -3deg;
  transform: rotate(-3deg);
  animation-delay: 0.4s;
  z-index: 2;
}
.hc-2 {
  width: 50%;
  top: 35%;
  right: 0;
  --rot: 4deg;
  transform: rotate(4deg);
  animation-delay: 0.6s;
  z-index: 3;
}
.hc-3 {
  width: 42%;
  bottom: 4%;
  left: 18%;
  --rot: -6deg;
  transform: rotate(-6deg);
  animation-delay: 0.8s;
  z-index: 4;
}
.hero-right:hover .hc-1 { transform: rotate(-5deg) translateY(-6px); }
.hero-right:hover .hc-2 { transform: rotate(6deg) translateY(-6px); }
.hero-right:hover .hc-3 { transform: rotate(-8deg) translateY(-6px); }

.hc-img {
  aspect-ratio: 3/4;
  background:
    repeating-linear-gradient(135deg,
      oklch(0.35 0.08 264) 0 12px,
      oklch(0.4 0.1 264) 12px 24px);
  position: relative;
  overflow: hidden;
}
.hc-img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
}
.hc-img::after {
  content: attr(data-tag);
  position: absolute;
  inset: auto 0 12px 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--paper);
  text-shadow: 0 1px 8px oklch(0 0 0 / 0.5);
  z-index: 1;
}
.hc-img.alt {
  background:
    repeating-linear-gradient(45deg,
      oklch(0.32 0.06 30) 0 14px,
      oklch(0.38 0.08 30) 14px 28px);
}
.hc-img.alt2 {
  background:
    repeating-linear-gradient(90deg,
      oklch(0.25 0.05 264) 0 10px,
      oklch(0.32 0.07 264) 10px 20px);
}
.hc-meta {
  display: flex; justify-content: space-between;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink-3);
}

.hero-logo {
  position: absolute;
  bottom: -20px;
  right: -10px;
  width: 110px;
  height: 110px;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 10px 30px -10px oklch(0.18 0.035 262 / 0.3);
  display: grid; place-items: center;
  z-index: 5;
  animation: spinIn 1.2s 1.2s cubic-bezier(0.22,1,0.36,1) backwards, gentleFloat 6s 1s ease-in-out infinite;
}
.hero-logo img { width: 70%; height: 70%; object-fit: contain; }
@keyframes spinIn {
  from { transform: scale(0) rotate(-90deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.ink-blot {
  position: absolute;
  width: 320px;
  height: 320px;
  bottom: -80px;
  right: -80px;
  z-index: 1;
  pointer-events: none;
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: fadeIn 1s 1.5s backwards;
}
@keyframes fadeIn { from { opacity: 0; } }
.hero-scroll .line-anim {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--ink) 50%, transparent 50%);
  background-size: 100% 200%;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { background-position: 0 100%; }
  100% { background-position: 0 0; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { height: 500px; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 1.8rem; }
}

/* ========== STUDIO ========== */
.studio {
  padding: 120px 0;
  border-top: 1px solid var(--rule);
}

.studio-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
}
.studio-label { padding-top: 8px; }

.studio-title {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  max-width: 18ch;
  margin-bottom: 32px;
}
.studio-title em {
  font-style: italic;
  color: var(--maroon);
}

.studio-text {
  font-size: clamp(1.05rem, 1.4vw, 1.4rem);
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 60ch;
  margin-bottom: 64px;
}

.studio-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}
.pillar .mono {
  display: block;
  margin-bottom: 12px;
  color: var(--maroon);
}
.pillar p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .studio-grid { grid-template-columns: 1fr; gap: 32px; }
  .studio-pillars { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ========== FEATURED SERVICES ========== */
.featured {
  padding: 120px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.sec-head { margin-bottom: 64px; }
.sec-head .mono { display: block; margin-bottom: 18px; }
.sec-head h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  max-width: 16ch;
}
.sec-head h2 em { font-style: italic; color: var(--maroon); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}

.svc-card {
  position: relative;
  padding: 36px 32px 80px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background 0.5s ease;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  display: block;
}
.svc-card:nth-child(3n) { border-right: 0; }

.svc-card::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  background: var(--ink);
  transition: height 0.5s cubic-bezier(0.22,1,0.36,1);
  z-index: -1;
}
.svc-card:hover::before { height: 100%; }
.svc-card:hover { color: var(--paper); }
.svc-card:hover .svc-num,
.svc-card:hover p,
.svc-card:hover .svc-cta { color: var(--paper); }
.svc-card:hover h3 em { color: var(--maroon); }

.svc-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  display: block;
  margin-bottom: 32px;
  transition: color 0.4s;
}

.svc-card h3 {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 16px;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 1;
}

.svc-card p {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 36ch;
  transition: color 0.4s;
}

.svc-cta {
  position: absolute;
  bottom: 32px;
  left: 32px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
  transition: color 0.4s, transform 0.4s;
}
.svc-card:hover .svc-cta { transform: translateX(4px); }

.services-more {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
  .svc-card { border-right: 0 !important; }
}

/* ========== PROCESS ========== */
.process { padding: 120px 0; }

.process-rail {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  border-top: 1px solid var(--rule);
}

.prow {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 48px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: padding 0.4s ease, background 0.4s ease;
  position: relative;
}
.prow::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100%;
  background: var(--paper-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
  z-index: -1;
}
.prow:hover::before { transform: scaleX(1); }
.prow:hover { padding-left: 24px; padding-right: 24px; }

.prow-num {
  font-size: 0.9rem;
  color: var(--maroon);
  font-weight: 500;
  padding-top: 6px;
}

.prow h3 {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 300;
  margin-bottom: 8px;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 1;
}

.prow p {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 60ch;
}

@media (max-width: 720px) {
  .prow { grid-template-columns: 1fr; gap: 12px; }
}

/* ========== TEACH ========== */
.teach {
  padding: 120px 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.teach-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.teach-art .teach-frame {
  aspect-ratio: 4/5;
  background:
    repeating-linear-gradient(135deg,
      oklch(0.32 0.06 30) 0 14px,
      oklch(0.4 0.1 30) 14px 28px);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transform: rotate(-2deg);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.teach-art .teach-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.teach-art .teach-frame::after {
  content: attr(data-tag);
  position: absolute;
  bottom: 16px; left: 0; right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--paper);
  text-shadow: 0 1px 8px oklch(0 0 0 / 0.6);
  z-index: 1;
}

.teach-body .mono { color: oklch(1 0 0 / 0.5); margin-bottom: 18px; display: block; }

.teach-title {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  margin-bottom: 28px;
}
.teach-title em { color: var(--maroon); font-style: italic; }

.teach-text {
  font-size: 1.15rem;
  font-weight: 300;
  color: oklch(1 0 0 / 0.75);
  margin-bottom: 32px;
  max-width: 56ch;
  line-height: 1.55;
}

.teach-list {
  list-style: none;
  border-top: 1px solid oklch(1 0 0 / 0.15);
  margin-bottom: 36px;
}
.teach-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid oklch(1 0 0 / 0.15);
  font-size: 1rem;
}
.teach-list .mono-sm { color: oklch(1 0 0 / 0.5); padding-top: 4px; }

@media (max-width: 860px) {
  .teach-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ========== CTA BAND ========== */
.cta-band {
  padding: 140px 0;
  text-align: center;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}

.cta-inner h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 24px;
}
.cta-inner h2 em { font-style: italic; color: var(--maroon); }

.cta-inner p {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 50ch;
  margin: 0 auto 36px;
  font-style: italic;
}

.cta-actions {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
}
