*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "SF Pro Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/sf-pro-display-regular.woff2") format("woff2");
}

@font-face {
  font-family: "SF Pro Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/sf-pro-display-medium.woff2") format("woff2");
}

@font-face {
  font-family: "SF Pro Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/sf-pro-display-semibold.woff2") format("woff2");
}

:root {
  --bg: #000000;
  --bg-alt: #1d1d1f;
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(251, 251, 253, 0.72);
  --card-bg: #ffffff;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --radius: 18px;
  --max-width: 980px;
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #1d1d1f;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #86868b;
    --accent: #2997ff;
    --accent-hover: #0077ed;
    --border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(0, 0, 0, 0.72);
    --card-bg: #1d1d1f;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  }
}

html {
  scroll-behavior: smooth;
  background: #000000;
}

body {
  font-family: var(--font);
  background: #000000;
  color: var(--text);
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}



a {
  color: inherit;
  text-decoration: none;
}

/* Navigation */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 12px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 22px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 21px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero-title {
  width: 100%;
  display: flex;
  justify-content: center;
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}

.hero-title-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-logo {
  width: clamp(48px, 8vw, 72px);
  height: clamp(48px, 8vw, 72px);
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Absorption animation styles */
.hero.is-absorbed .hero-title-brand {
  gap: 0;
}

.hero.is-absorbed .hero-title-rotator {
  width: 0 !important;
  opacity: 0;
  margin: 0;
  pointer-events: none;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease-out;
}

.hero.is-absorbed .hero-logo {
  transform: scale(2.2);
}

.hero.is-absorbed .hero-subtitle,
.hero.is-absorbed .hero-eyebrow {
  animation: fadeOutFast 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

@keyframes fadeOutFast {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(16px);
  }
}


.hero-title-rotator {
  position: relative;
  display: inline-block;
  height: 1.05em;
  overflow: hidden;
  vertical-align: bottom;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.hero-title-current,
.hero-title-next {
  display: block;
  white-space: nowrap;
}

.hero-title-next {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-110%);
  opacity: 0;
}

.hero-title-rotator.is-animating .hero-title-current {
  animation: slideDownOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title-rotator.is-animating .hero-title-next {
  animation: slideDownIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(110%);
    opacity: 0;
  }
}

@keyframes slideDownIn {
  from {
    transform: translateY(-110%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-subtitle {
  font-size: clamp(19px, 2.5vw, 24px);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 400;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* Sections */

.section {
  padding: 100px 22px;
}

.section-alt {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .section-alt {
    background: rgba(29, 29, 31, 0.25);
  }
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 48px;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-lead {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.about-details p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-details p:last-child {
  margin-bottom: 0;
}

/* Work */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.work-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.work-card h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.work-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Contact */

.contact {
  text-align: center;
}

.contact-text {
  font-size: 21px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-email {
  display: inline-block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin-bottom: 32px;
  transition: opacity 0.2s ease;
}

.contact-email:hover {
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.social-links a {
  font-size: 17px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--text);
}

/* Footer */

.footer {
  padding: 32px 22px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 768px) {
  .hero-title-brand {
    gap: 14px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 20px;
  }

  .split-contact {
    flex-direction: column;
    padding: 60px 20px;
    justify-content: center;
  }

  .split-left {
    display: none;
  }

  .split-right {
    padding-left: 0;
    align-items: center;
    text-align: center;
  }
}

/* Contact Buttons styling */
/* Scroll Overlay */
.scroll-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: #000000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s linear;
}

/* Split Contact Section */
.split-contact {
  display: flex;
  min-height: 100vh;
  padding: 100px 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #000000 !important;
  color: #f5f5f7 !important;
  border-top: none !important;
  border-bottom: none !important;
}

.split-left {
  flex: 1.2;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 400px;
}

.logo-sticky-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.moving-logo {
  width: clamp(140px, 20vw, 240px);
  height: clamp(140px, 20vw, 240px);
  object-fit: contain;
  will-change: transform;
}

.split-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 40px;
}

.contact-top {
  margin-bottom: 50px;
}

/* Typing Text Animation */
.typing-text {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid var(--accent);
  width: 0;
  display: inline-block;
}

.typing-text.animate-typing {
  animation: typing 1.5s steps(12, end) forwards, 
             blink-caret 0.75s step-end infinite,
             hide-cursor 0.1s step-end 2s forwards;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--accent); }
}

@keyframes hide-cursor {
  to { border-right-color: transparent; }
}

/* Bold Social Links */
.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.social-bold-link {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  width: fit-content;
}

.social-bold-link:hover {
  color: var(--accent);
  transform: translateX(12px);
}

@media (max-width: 768px) {
  .split-contact {
    flex-direction: column;
    padding: 80px 20px;
    gap: 40px;
  }
  .split-left {
    min-height: 250px;
  }
  .split-right {
    padding-left: 0;
    align-items: center;
    text-align: center;
  }
  .social-bold-link {
    align-self: center;
  }
  .social-bold-link:hover {
    transform: translateY(-4px);
  }
}
