/* ============================================================
   LEAF v3 — Index Page Styles
   ============================================================ */

/* ========================
   HERO
   ======================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.08);
  animation: heroZoom 12s var(--ease-out) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12,12,12,0.75) 0%,
    rgba(12,12,12,0.35) 50%,
    rgba(12,12,12,0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) clamp(80px, 12vh, 140px);
  width: 100%;
  max-width: 900px;
}

.hero-eyebrow {
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 1.6s forwards;
}

.hero-heading {
  font-family: var(--f-serif);
  font-size: clamp(56px, 9vw, 130px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin-bottom: 32px;
}

.hero-heading .line-reveal span {
  display: block;
}

.hero-heading .line-reveal:nth-child(1) span {
  animation: slideUp 1s var(--ease-out) 0.4s both;
}
.hero-heading .line-reveal:nth-child(2) span {
  animation: slideUp 1s var(--ease-out) 0.55s both;
}
.hero-heading .line-reveal:nth-child(3) span {
  animation: slideUp 1s var(--ease-out) 0.7s both;
}

@keyframes slideUp {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 2;
  color: rgba(255,255,255,0.65);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 1.0s forwards;
}

.hero-cta {
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 1.2s forwards;
}

.hero-scroll-indicator {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 8vh, 80px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 1.8s forwards;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
  animation: scrollLine 2s ease-in-out 2s infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

.hero-number {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(40px, 8vh, 80px);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) 1.8s forwards;
}

/* ========================
   GALLERY STRIP
   ======================== */
.gallery-strip {
  overflow: hidden;
  padding: var(--sp-xl) 0;
  background: var(--c-bg-2);
}

.gallery-strip-track {
  display: flex;
  gap: 16px;
  padding: 0 var(--gutter);
  height: clamp(280px, 35vw, 480px);
}

.gallery-strip-item {
  flex: 0 0 calc(16.666% - 14px);
  height: 100%;
  overflow: hidden;
  border-radius: 0;
}

.gallery-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.gallery-strip-item:hover img {
  transform: scale(1.06);
}

/* ========================
   WORK SECTION
   ======================== */
.work-section {
  padding: var(--sp-2xl) 0 0;
  background: var(--c-bg);
}

.work-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

.work-intro {
  max-width: 320px;
  text-align: right;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.work-item--reverse {
  direction: rtl;
}

.work-item--reverse > * {
  direction: ltr;
}

.work-item-img {
  overflow: hidden;
  position: relative;
}

.work-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.work-item:hover .work-item-img img {
  transform: scale(1.04);
}

.work-item-body {
  background: var(--c-bg-3);
  padding: clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  border: 1px solid var(--c-border);
}

.work-num {
  color: var(--c-accent);
}

.work-title {
  font-family: var(--f-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--c-white);
  line-height: 1.1;
}

.work-fullwidth {
  position: relative;
  height: clamp(300px, 45vw, 640px);
  overflow: hidden;
  margin-top: var(--sp-xl);
}

.work-fullwidth img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-fullwidth-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12,12,12,0.4);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--sp-md) var(--gutter);
}

.work-fullwidth-text {
  color: rgba(255,255,255,0.5);
}

/* ========================
   COMPANY SECTION
   ======================== */
.company-section {
  padding: var(--sp-2xl) 0;
  background: var(--c-bg-2);
}

.company-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  margin-bottom: var(--sp-xl);
}

.company-heading {
  margin-bottom: 32px;
}

.company-desc {
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 2.2;
  color: var(--c-text-dim);
}

.company-img-stack {
  position: relative;
  height: clamp(400px, 50vw, 640px);
}

.company-img-main {
  position: absolute;
  top: 0; left: 0;
  width: 80%;
  height: 80%;
  overflow: hidden;
}

.company-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-img-sub {
  position: absolute;
  bottom: 0; right: 0;
  width: 55%;
  height: 50%;
  overflow: hidden;
  border: 4px solid var(--c-bg-2);
}

.company-img-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-table-wrap {
  margin-top: 0;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--c-border);
}

.company-table th,
.company-table td {
  padding: 20px 0;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  width: 180px;
  padding-right: 32px;
}

.company-table td {
  color: var(--c-text);
}

/* ========================
   MARQUEE
   ======================== */
.marquee-section {
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 20px 0;
  background: var(--c-bg);
}

.marquee-track {
  display: flex;
  white-space: nowrap;
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  animation: marquee 20s linear infinite;
  flex-shrink: 0;
}

.marquee-inner span {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-mute);
}

.marquee-dot {
  color: var(--c-accent) !important;
  font-size: 8px !important;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ========================
   CONTACT SECTION
   ======================== */
.contact-section {
  position: relative;
  padding: var(--sp-2xl) 0;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12,12,12,0.88) 0%,
    rgba(12,12,12,0.72) 100%
  );
}

.contact-content {
  position: relative;
  z-index: 2;
}

.contact-heading {
  font-family: var(--f-serif);
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--c-white);
  margin-bottom: 24px;
}

.contact-sub {
  margin-bottom: 48px;
  color: rgba(255,255,255,0.55);
}

.contact-btn {
  border-color: rgba(255,255,255,0.3);
}

/* ========================
   NEWS SECTION
   ======================== */
.news-section {
  padding: var(--sp-2xl) 0;
  background: var(--c-light-bg);
}

.news-section .section-eyebrow::before {
  background: var(--c-light-text);
  opacity: 0.3;
}

.news-section .t-label {
  color: rgba(26,26,26,0.4);
}

.news-section .t-title {
  color: var(--c-light-text);
}

.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-lg);
}

.news-more-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-light-text);
  opacity: 0.5;
  transition: opacity var(--t-fast), gap var(--t-base);
}

.news-more-link:hover {
  opacity: 1;
  gap: 16px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out);
}

.news-card:hover {
  transform: translateY(-6px);
}

.news-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.news-card:hover .news-card-img img {
  transform: scale(1.06);
}

.news-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-card-meta .tag {
  border-color: rgba(26,26,26,0.2);
  color: var(--c-light-text);
  font-size: 8px;
}

.news-card-title {
  font-family: var(--f-serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--c-light-text);
  line-height: 1.4;
}

.news-card-excerpt {
  font-size: 13px;
  color: rgba(26,26,26,0.55);
  line-height: 1.8;
  flex: 1;
}

.news-card-read {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-light-text);
  opacity: 0.5;
  margin-top: auto;
  transition: gap var(--t-base), opacity var(--t-fast);
}

.news-card:hover .news-card-read {
  gap: 14px;
  opacity: 1;
}

/* ========================
   Responsive
   ======================== */
@media (max-width: 1024px) {
  .work-item {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .work-item-img {
    aspect-ratio: 16/9;
  }

  .work-item--reverse {
    direction: ltr;
  }

  .company-inner {
    grid-template-columns: 1fr;
  }

  .company-img-stack {
    height: 400px;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-strip-item {
    flex: 0 0 calc(33.333% - 11px);
  }
}

@media (max-width: 768px) {
  .hero-heading {
    font-size: clamp(44px, 12vw, 72px);
  }

  .work-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .work-intro {
    text-align: left;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .gallery-strip-item {
    flex: 0 0 calc(50% - 8px);
  }

  .company-table th {
    width: 120px;
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .gallery-strip-item {
    flex: 0 0 calc(80% - 8px);
  }
}
