/* ================================================================
   ORVE — Digital Presence Transformation Studio
   Handcrafted Premium Stylesheet
   ================================================================ */

/* ── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ── Design Tokens ────────────────────────────────────────────── */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-surface: #161616;
  --text: #f0f0ea;
  --text-secondary: #a3a39b;
  --text-muted: #5c5c56;
  --accent: #d4c5a9;
  --accent-soft: rgba(212, 197, 169, 0.12);
  --border: rgba(240, 240, 234, 0.06);
  --border-strong: rgba(240, 240, 234, 0.12);
  --border-accent: rgba(212, 197, 169, 0.3);

  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --nav-height: 80px;
  --gutter: clamp(24px, 5vw, 80px);
  --max-w: 1440px;
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: auto;
}

body {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* ── Grain Overlay ────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Typography Scale ─────────────────────────────────────────── */
.t-hero {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.t-hero-sub {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
}

.t-section {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.t-heading {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.t-subhead {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.t-body {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

.t-body-lg {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

.t-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.t-caption {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ── Layout ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  position: relative;
  padding-top: clamp(80px, 12vh, 160px);
  padding-bottom: clamp(80px, 12vh, 160px);
}

.section-sm {
  padding-top: clamp(48px, 8vh, 100px);
  padding-bottom: clamp(48px, 8vh, 100px);
}

/* ── Navigation ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 var(--gutter);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: padding 0.6s var(--ease-out-expo);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  pointer-events: auto;
  transition: all 0.6s var(--ease-out-expo);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 28px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.nav-logo:hover img {
  opacity: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  flex-shrink: 0;
}

/* ── Floating Nav State ───────────────────────────────────────── */
.nav.floating {
  padding: 16px var(--gutter);
}

.nav.floating .nav-inner {
  max-width: 720px;
  background: rgba(17, 17, 17, 0.65);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  height: 56px;
  padding: 0 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.nav.floating .nav-logo {
  margin-right: auto;
}

.nav.floating .nav-cta {
  margin-left: auto;
}

.nav.floating .nav-menu {
  position: static;
  transform: none;
  margin: 0 auto;
}

/* ── Mobile Nav Toggle ────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav.floating .nav-inner {
    max-width: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    height: var(--nav-height);
  }
}

/* ── Mobile Menu ──────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 100px;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(240, 240, 234, 0.08);
}

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--border-accent);
  background: var(--accent-soft);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 10px 0;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 13px;
}

.btn-lg {
  padding: 18px 44px;
  font-size: 15px;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: gap 0.4s var(--ease-out-expo);
}

.btn-arrow:hover {
  gap: 14px;
}

/* ── Dividers ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  width: 100%;
}

.divider-strong {
  background: var(--border-strong);
}

/* ── Reveal Animations ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Image Treatments ─────────────────────────────────────────── */
.img-editorial {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
}

.img-editorial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo), opacity 0.6s;
}

.img-editorial:hover img {
  transform: scale(1.03);
}

.img-reveal {
  position: relative;
  overflow: hidden;
}

.img-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform: translateY(0);
  transition: transform 1.2s var(--ease-in-out-expo);
}

.img-reveal.visible::after {
  transform: translateY(101%);
}

/* ── FAQ Accordion ────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  text-align: left;
  transition: color 0.3s;
}

.faq-trigger:hover {
  color: var(--text);
}

.faq-trigger h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding-right: 24px;
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.5s var(--ease-out-expo);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.4s var(--ease-out-expo);
}

.faq-icon::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.faq-icon::after {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-item.open .faq-icon::after {
  transform: translateX(-50%) scaleY(0);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-out-expo), opacity 0.4s;
  opacity: 0;
}

.faq-item.open .faq-content {
  opacity: 1;
}

.faq-content-inner {
  padding-bottom: 28px;
  max-width: 640px;
}

/* ── Industry Drift ───────────────────────────────────────────── */
.drift-row {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.drift-row-1 {
  animation: driftRight 60s linear infinite;
}

.drift-row-2 {
  animation: driftLeft 60s linear infinite;
}

@keyframes driftRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes driftLeft {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.drift-img {
  width: 320px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.7;
  transition: opacity 0.4s;
}

.drift-img:hover {
  opacity: 1;
}

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

@media (max-width: 768px) {
  .drift-img {
    width: 240px;
    height: 160px;
  }
}

/* ── Team Cards ───────────────────────────────────────────────── */
.team-card {
  position: relative;
  overflow: hidden;
}

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

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 1s var(--ease-out-expo), filter 0.6s;
}

.team-card:hover .team-card-img img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.team-card-info {
  padding-top: 20px;
}

/* ── Form ─────────────────────────────────────────────────────── */
.form-field {
  position: relative;
  margin-bottom: 32px;
}

.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 16px 0;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  outline: none;
  transition: border-color 0.4s;
  border-radius: 0;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--border-accent);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%235c5c56' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding-top: clamp(60px, 10vh, 120px);
  padding-bottom: 40px;
}

.footer-logo {
  max-width: 200px;
  opacity: 0.85;
  margin-bottom: 24px;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 48px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.4s var(--ease-out-expo);
}

.footer-socials a:hover {
  border-color: var(--border-accent);
  color: var(--text);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ── Utility ──────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

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

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

.text-center { text-align: center; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mt-80 { margin-top: 80px; }

.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 800px; }

/* ── Work Editorial ───────────────────────────────────────────── */
.work-story {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 900px) {
  .work-story {
    grid-template-columns: 1fr;
  }
}

.work-story:nth-child(even) {
  grid-template-columns: 1.2fr 1fr;
}

@media (max-width: 900px) {
  .work-story:nth-child(even) {
    grid-template-columns: 1fr;
  }
}

.work-story-img {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

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

.work-story-img:hover img {
  transform: scale(1.03);
}

/* ── Light Section ────────────────────────────────────────────── */
.section-light {
  background: var(--text);
  color: var(--bg);
}

.section-light .t-body,
.section-light .t-body-lg,
.section-light .t-subhead {
  color: rgba(10, 10, 10, 0.65);
}

.section-light .t-label,
.section-light .t-caption {
  color: rgba(10, 10, 10, 0.45);
}

.section-light .divider,
.section-light .faq-item {
  border-color: rgba(10, 10, 10, 0.1);
}

.section-light .btn-outline {
  border-color: rgba(10, 10, 10, 0.2);
  color: var(--bg);
}

.section-light .btn-outline:hover {
  border-color: var(--bg);
  background: rgba(10, 10, 10, 0.05);
}

/* ── Principles ───────────────────────────────────────────────── */
.principle-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
