/* ============================================================
   BRESKO — Home Page CSS
   Hero · About Preview · Services Preview · Work · Process · CTA
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 6rem;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(255,45,85,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 90% 80%, rgba(122,30,53,0.12) 0%, transparent 50%),
    linear-gradient(180deg, rgba(5,5,5,0) 0%, rgba(5,5,5,0.5) 60%, var(--bg) 100%);
  z-index: 1;
}
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.05;
  z-index: 2;
}

/* Abstract floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,45,85,0.07) 0%, transparent 70%);
  top: -20%; right: -10%;
  animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(122,30,53,0.12) 0%, transparent 70%);
  bottom: 0%; left: -5%;
  animation: orbFloat 16s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,45,85,0.05) 0%, transparent 70%);
  top: 30%; left: 40%;
  animation: orbFloat 20s ease-in-out infinite 4s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(2%, -3%) scale(1.05); }
  66%       { transform: translate(-2%, 2%) scale(0.97); }
}

/* Marquee line at top of hero */
.hero-scroll-label {
  position: absolute;
  bottom: 2.5rem;
  right: 64px;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 5;
  opacity: 0;
  animation: fadeInSlow 1s ease 2.5s forwards;
}
.hero-scroll-label span {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--text-muted));
  animation: scrollLineDrop 2s ease-in-out 2.8s infinite;
}
@keyframes scrollLineDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
@keyframes fadeInSlow { to { opacity: 1; } }

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 64px;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: heroReveal 0.9s var(--ease-out) 1.2s forwards;
}
.hero-eyebrow-text {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255,45,85,0.6);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8.5vw, 9rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 1100px;
  margin-bottom: 3rem;
}
.hero-headline .line {
  display: block;
  overflow: hidden;
}
.hero-headline .line-inner {
  display: block;
  transform: translateY(110%);
  animation: lineReveal 1s var(--ease-circ) forwards;
}
.hero-headline .line:nth-child(1) .line-inner { animation-delay: 1.3s; }
.hero-headline .line:nth-child(2) .line-inner { animation-delay: 1.48s; }
.hero-headline .line:nth-child(3) .line-inner { animation-delay: 1.62s; }
.hero-headline .editorial-word {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
}
@keyframes lineReveal {
  to { transform: translateY(0); }
}

.hero-sub-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}
.hero-subtext {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: var(--text-muted);
  max-width: 380px;
  line-height: 1.75;
  opacity: 0;
  animation: heroReveal 0.9s var(--ease-out) 2s forwards;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  animation: heroReveal 0.9s var(--ease-out) 2.1s forwards;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stats row */
.hero-stats {
  position: absolute;
  top: 50%;
  right: 64px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  z-index: 5;
  opacity: 0;
  animation: heroReveal 0.9s var(--ease-out) 2.3s forwards;
}
.hero-stat { text-align: right; }
.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ── About Preview ──────────────────────────────────────────── */
.about-preview {
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
}
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}
.about-preview-left { }
.about-preview-label { margin-bottom: 2rem; }
.about-preview-headline {
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}
.about-preview-headline .editorial {
  display: block;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  color: var(--accent-warm);
}
.about-preview-right { }
.about-preview-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 3rem;
}
.about-preview-body strong { color: var(--text); font-weight: 500; }

/* Large background text */
.about-bg-text {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  font-family: var(--font-heading);
  font-size: clamp(8rem, 15vw, 18rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
  line-height: 1;
  opacity: 0.4;
}

/* ── Services Preview ───────────────────────────────────────── */
.services-preview {
  padding: 10rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 5rem;
}
.services-preview-headline {
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  letter-spacing: -0.03em;
  max-width: 600px;
}
.services-preview-headline .editorial { color: var(--accent); }

.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
}
.service-card {
  background: var(--bg-secondary);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  cursor: none;
  transition: background 0.4s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.service-card:hover { background: var(--bg-card); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover .service-card-glow {
  opacity: 1;
}

.service-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(255,45,85,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card-num {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 2rem;
  display: block;
}
.service-card-title {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}
.service-card:hover .service-card-title { color: var(--accent); }
.service-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.service-card-arrow {
  position: absolute;
  bottom: 2.5rem; right: 2.5rem;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translate(8px, 8px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover .service-card-arrow {
  opacity: 1;
  transform: translate(0, 0);
  border-color: var(--accent);
}
.service-card-arrow svg { width: 14px; height: 14px; fill: var(--accent); }

/* ── Featured Work ──────────────────────────────────────────── */
.featured-work {
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
}
.featured-work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 5rem;
}
.featured-work-headline {
  font-size: clamp(2.5rem, 4.5vw, 5rem);
  letter-spacing: -0.03em;
}

/* Asymmetric layout */
.work-collage {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  align-items: start;
}
.work-card {
  position: relative;
  overflow: hidden;
  cursor: none;
  background: var(--bg-card);
}
.work-card:nth-child(1) { transform: translateY(0); }
.work-card:nth-child(2) { transform: translateY(4rem); grid-row: 1 / 3; }
.work-card:nth-child(3) { transform: translateY(-2rem); }
.work-card:nth-child(4) { transform: translateY(1rem); }

.work-card-img {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.work-card:nth-child(2) .work-card-img { aspect-ratio: 3/5; }
.work-card:nth-child(3) .work-card-img { aspect-ratio: 5/4; }
.work-card:nth-child(4) .work-card-img { aspect-ratio: 4/3; }

.work-card-img-inner {
  width: 100%; height: 100%;
  transition: transform 0.7s var(--ease-out);
  background: var(--bg-card);
  position: relative;
}
.work-card:hover .work-card-img-inner { transform: scale(1.06); }

/* Gradient overlay on image */
.work-card-img-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.8) 0%, transparent 50%);
}

/* Work card generated background patterns */
.work-card-img-inner.proj-1 {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a0a0f 40%, #250d15 100%);
}
.work-card-img-inner.proj-2 {
  background: linear-gradient(135deg, #080808 0%, #0d0d1a 50%, #12102a 100%);
}
.work-card-img-inner.proj-3 {
  background: linear-gradient(135deg, #050d07 0%, #081408 60%, #0f1e0a 100%);
}
.work-card-img-inner.proj-4 {
  background: linear-gradient(135deg, #0a0a08 0%, #181510 50%, #22200f 100%);
}

/* Floating geometric shapes inside cards */
.work-card-img-inner::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
}
.work-card-img-inner.proj-1::before {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(122,30,53,0.6), transparent);
  top: 20%; left: 20%;
}
.work-card-img-inner.proj-2::before {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(40,40,120,0.7), transparent);
  bottom: 30%; right: 20%;
}
.work-card-img-inner.proj-3::before {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(20,80,20,0.7), transparent);
  top: 30%; left: 30%;
}
.work-card-img-inner.proj-4::before {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(100,70,10,0.7), transparent);
  top: 20%; right: 20%;
}

/* Project label inside */
.work-card-label {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  z-index: 3;
}
.work-card-category {
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.5);
  margin-bottom: 0.3rem;
}
.work-card-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Tags reveal on hover */
.work-card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.work-card:hover .work-card-tags { opacity: 1; transform: translateY(0); }
.work-tag {
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255,45,85,0.4);
  color: var(--accent);
}

/* Hover glow */
.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--border);
  transition: box-shadow 0.4s ease;
  pointer-events: none;
  z-index: 2;
}
.work-card:hover::after {
  box-shadow: inset 0 0 0 1px rgba(255,45,85,0.3), 0 0 40px rgba(255,45,85,0.08);
}

/* ── Process ────────────────────────────────────────────────── */
.process {
  padding: 10rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.process-header { margin-bottom: 6rem; }
.process-headline {
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.03em;
  max-width: 500px;
}
.process-headline .editorial { color: var(--accent); }

.process-list { display: flex; flex-direction: column; }
.process-item {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  cursor: none;
  transition: background 0.3s ease;
}
.process-item:first-child { border-top: 1px solid var(--border); }
.process-item:hover { background: rgba(245,241,234,0.01); }

.process-num {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  position: relative;
}
.process-num::before {
  content: '';
  position: absolute;
  left: -2rem; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--bg-secondary);
  box-shadow: 0 0 10px rgba(255,45,85,0.4);
}

.process-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.process-item:hover .process-title { color: var(--accent); }
.process-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Home CTA ───────────────────────────────────────────────── */
.home-cta {
  padding: 10rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,45,85,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.home-cta-eyebrow { margin-bottom: 2rem; }
.home-cta-headline {
  font-size: clamp(3rem, 7vw, 8rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  max-width: 1000px;
  margin: 0 auto 4rem;
}
.home-cta-headline .editorial { color: var(--accent); display: block; }
.home-cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-stats { display: none; }
  .about-preview-grid { grid-template-columns: 1fr; gap: 4rem; }
  .work-collage { grid-template-columns: 1fr 1fr; }
  .work-card:nth-child(2) { grid-row: auto; transform: none; }
  .process-item { grid-template-columns: 60px 1fr; }
  .process-desc { display: none; }
}
@media (max-width: 768px) {
  .hero { padding-bottom: 4rem; padding-top: 8rem; align-items: flex-end; min-height: 100svh; }
  .hero-content { padding: 0 24px; }
  .hero-scroll-label { right: 24px; }
  .hero-sub-row { flex-direction: column; align-items: flex-start; }
  .services-cards { grid-template-columns: 1fr; }
  .services-preview-header { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .featured-work-header { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .work-collage { grid-template-columns: 1fr; }
  .work-card { transform: none !important; }
  .process-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .process-num::before { display: none; }
  .home-cta-btns { flex-direction: column; }
}
