/* 
 * NORDIC WEBCRAFT - Premium Stylesheet
 * Brand: Minimalist, Scandinavian, Editorial, High Contrast, Structural Glassmorphic
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@200;300;400;500;600;700&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --bg-alabaster: #FBF9F6;
  --text-charcoal: #2B2A29;
  --text-muted: #6C6A67;
  --text-white: #FFFFFF;
  
  /* Smoky-glass & Ice accents */
  --glass-bg: rgba(43, 42, 41, 0.04);
  --glass-bg-hover: rgba(43, 42, 41, 0.08);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-border-hover: rgba(43, 42, 41, 0.15);
  --glass-blur: blur(12px);
  --ice-shadow: 0 8px 32px 0 rgba(43, 42, 41, 0.04);
  --ice-shadow-hover: 0 12px 40px 0 rgba(43, 42, 41, 0.08);
  
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Layout */
  --section-padding: 8rem 10%;
  --section-padding-mobile: 5rem 6%;
}

/* --- RESET & GLOBAL STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-alabaster);
  color: var(--text-charcoal);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* --- ARCHITECTURAL BACKGROUND GRID --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(43, 42, 41, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 42, 41, 0.015) 1px, transparent 1px);
  background-size: 100px 100px;
  z-index: -1;
  pointer-events: none;
}

/* Selection style */
::selection {
  background-color: var(--text-charcoal);
  color: var(--bg-alabaster);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-alabaster);
}
::-webkit-scrollbar-thumb {
  background: rgba(43, 42, 41, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(43, 42, 41, 0.4);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- UTILITIES & LAYOUTS --- */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 200;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: var(--text-charcoal);
  margin-bottom: 1rem;
  display: block;
}

/* Custom Cursor */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 1px solid var(--text-charcoal);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
  display: none;
}

@media (pointer: fine) {
  .custom-cursor {
    display: block;
  }
}

.custom-cursor.hovered {
  width: 50px;
  height: 50px;
  background-color: rgba(43, 42, 41, 0.05);
  border-color: var(--text-charcoal);
}

.custom-cursor.drag {
  width: 80px;
  height: 80px;
  background-color: var(--text-charcoal);
  border-color: var(--text-charcoal);
}
.custom-cursor.drag::after {
  content: 'VIEW';
  color: var(--bg-alabaster);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* --- GLASSMORPHISM COMPONENTS --- */
.smoky-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--ice-shadow);
  border-radius: 1px; /* Sharp corners for modern structural look */
  transition: var(--transition-smooth);
}

.smoky-glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--ice-shadow-hover);
}

/* Smoky-glass buttons */
.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text-charcoal);
  padding: 0.9rem 2.2rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  border-radius: 1px;
  box-shadow: var(--ice-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
}

.btn-glass:hover::before {
  left: 100%;
}

.btn-glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--ice-shadow-hover);
  transform: translateY(-2px);
}

.btn-glass:active {
  transform: translateY(0);
}

.btn-glass svg {
  transition: var(--transition-smooth);
}

.btn-glass:hover svg {
  transform: translateX(4px);
}

/* --- HEADER & NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  padding: 1rem 0;
  background: rgba(251, 249, 246, 0.75);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(43, 42, 41, 0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
}

.brand-logo {
  height: 46px;
  width: auto;
  transition: var(--transition-smooth);
}

.brand-name-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--text-charcoal);
  transition: var(--transition-smooth);
}

header.scrolled .brand-logo {
  height: 38px;
}

header.scrolled .brand-name-text {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-charcoal);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-charcoal);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1002;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 1px;
  background-color: var(--text-charcoal);
  transition: var(--transition-smooth);
}

/* Mobile Nav Active */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 10rem 0 5rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-tagline {
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  line-height: 1.08;
  font-weight: 200;
  color: var(--text-charcoal);
  margin-bottom: 2rem;
}

.hero-tagline span {
  font-weight: 400;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 3rem;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 3D Glass Viewport Stack (Desktop, Tablet, Mobile) representing responsive web creation */
.glass-viewport-stack {
  position: relative;
  width: 90%;
  height: 90%;
  transform: perspective(1200px) rotateY(-18deg) rotateX(12deg);
  transform-style: preserve-3d;
  transition: var(--transition-smooth);
}

.glass-viewport {
  position: absolute;
  background: rgba(43, 42, 41, 0.02);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 15px 35px rgba(43, 42, 41, 0.05);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.desktop-viewport {
  width: 80%;
  height: 70%;
  top: 5%;
  left: 5%;
  transform: translateZ(10px);
  z-index: 1;
}

.tablet-viewport {
  width: 50%;
  height: 58%;
  top: 22%;
  left: 45%;
  transform: translateZ(55px);
  z-index: 2;
  background: rgba(251, 249, 246, 0.04);
  border-color: rgba(255, 255, 255, 0.85);
}

.mobile-viewport {
  width: 28%;
  height: 48%;
  top: 42%;
  left: 30%;
  transform: translateZ(100px);
  z-index: 3;
  background: rgba(43, 42, 41, 0.04);
  border-color: rgba(255, 255, 255, 0.9);
}

/* 3D separation effect on stack hover */
.glass-viewport-stack:hover .desktop-viewport {
  transform: translateZ(-20px) translateY(-8px) translateX(-8px);
}

.glass-viewport-stack:hover .tablet-viewport {
  transform: translateZ(80px) translateY(5px) translateX(12px);
}

.glass-viewport-stack:hover .mobile-viewport {
  transform: translateZ(180px) translateY(12px) translateX(-12px);
}

/* Viewport details */
.viewport-header {
  padding: 0.6rem 0.8rem;
  background: rgba(43, 42, 41, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.viewport-dots {
  display: flex;
  gap: 4px;
}

.viewport-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(43, 42, 41, 0.25);
  display: inline-block;
}

.url-bar {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.5);
  padding: 1px 1.5rem;
  border-radius: 3px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.02em;
}

.viewport-content {
  flex-grow: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Wireframe placeholder layouts inside glass viewports */
.wireframe-hero {
  height: 35%;
  background: rgba(43, 42, 41, 0.05);
  border-radius: 2px;
}

.wireframe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  flex-grow: 1;
}

.wireframe-grid span {
  background: rgba(43, 42, 41, 0.02);
  border-radius: 2px;
  height: 100%;
}

.wireframe-hero-small {
  height: 25%;
  background: rgba(43, 42, 41, 0.04);
  border-radius: 2px;
}

.wireframe-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-grow: 1;
}

.wireframe-list span {
  height: 12px;
  background: rgba(43, 42, 41, 0.02);
  border-radius: 2px;
}

.wireframe-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(43, 42, 41, 0.04);
  margin: 0 auto;
}

.wireframe-line {
  height: 32px;
  background: rgba(43, 42, 41, 0.02);
  border-radius: 2px;
  width: 80%;
  margin: 0 auto;
}

/* Scroll down indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(43, 42, 41, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background: var(--text-charcoal);
  animation: scroll-line 2s infinite ease-in-out;
}

@keyframes scroll-line {
  0% { transform: translateY(-20px); }
  50% { transform: translateY(40px); }
  100% { transform: translateY(-20px); }
}

/* --- SERVICES SECTION --- */
.services {
  padding: var(--section-padding);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.service-card {
  padding: 4rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}

.service-num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-charcoal);
  margin-bottom: 2rem;
  display: block;
}

.service-title {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.service-bullets {
  list-style: none;
  padding: 0;
}

.service-bullets li {
  font-size: 0.9rem;
  color: var(--text-charcoal);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-bullets li::before {
  content: '—';
  color: var(--text-muted);
}

/* --- WORK SECTION --- */
.work {
  padding: var(--section-padding);
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

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

.work-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.work-card.full-width {
  grid-column: span 2;
}

.work-img-container {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: #EAE5E0;
  border: 1px solid rgba(43, 42, 41, 0.05);
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.work-info {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.work-title {
  font-size: 1.5rem;
  font-weight: 350;
  color: var(--text-charcoal);
}

.work-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.work-year {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- PHILOSOPHY SECTION --- */
.philosophy {
  padding: var(--section-padding);
  background: var(--text-charcoal);
  color: var(--bg-alabaster);
  position: relative;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.philosophy-text h2 {
  color: var(--bg-alabaster);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 200;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.philosophy-text p {
  color: #BEBCB9;
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.philosophy-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.philosophy-item h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--bg-alabaster);
}

.philosophy-item p {
  font-size: 0.95rem;
  color: #A6A4A1;
}

/* --- CONTACT SECTION (SPLIT LAYOUT) --- */
.contact {
  padding: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: stretch;
}

/* Left side: smoky-glass container */
.contact-info-card {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.contact-info-top h3 {
  font-size: 2rem;
  font-weight: 200;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.contact-info-top p {
  margin-bottom: 3rem;
  max-width: 320px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: var(--transition-fast);
}

.contact-item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.contact-item-value {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.contact-item-link:hover .contact-item-value {
  opacity: 0.7;
}

.contact-info-bottom {
  margin-top: 4rem;
}

.contact-address {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: normal;
}

/* Right side: high-contrast text briefing form */
.contact-form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-container h3 {
  font-size: 2rem;
  font-weight: 200;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.contact-form-wrapper > p {
  margin-bottom: 3.5rem;
  max-width: 480px;
}

.brief-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.form-group {
  position: relative;
  width: 100%;
  padding-top: 1.25rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(43, 42, 41, 0.2);
  color: var(--text-charcoal);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  transition: var(--transition-smooth);
  border-radius: 0;
  outline: none;
}

.form-label {
  position: absolute;
  left: 0;
  top: calc(1.25rem + 0.75rem);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-smooth);
}

/* Date fields: label always above (picker text overlaps otherwise) */
.form-input[type="date"] ~ .form-label {
  top: 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-charcoal);
  font-weight: 500;
}

/* Focus and active label state */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown):not([type="date"]) ~ .form-label {
  top: 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-charcoal);
  font-weight: 500;
}

.form-input:focus {
  border-bottom-color: var(--text-charcoal);
}

textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

/* Booking notes: match single-line input height so underline aligns with other fields */
#booking-form textarea.form-input {
  min-height: calc(1.5rem + 1.05rem * 1.5);
  line-height: 1.5;
  resize: vertical;
}

/* Form Message Handler */
.form-status {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  display: none;
  padding: 1rem 1.5rem;
  border-radius: 1px;
}

.form-status.success {
  display: block;
  background: rgba(43, 42, 41, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-charcoal);
  backdrop-filter: var(--glass-blur);
}

.form-status.error {
  display: block;
  background: rgba(220, 53, 69, 0.05);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #b02a37;
}

/* --- BRIEF FORM SUCCESS VIEWS --- */
.contact-form-wrapper {
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: translateY(0);
}

.contact-success-wrapper {
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(15px);
}

/* Success Checkmark Animation */
.success-icon-container {
  margin-bottom: 2rem;
  display: inline-block;
}

.success-checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: var(--text-charcoal);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--text-charcoal);
  animation: fill-checkmark .4s ease-in-out .4s forwards, scale-checkmark .3s ease-in-out .9s both;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--text-muted);
  fill: none;
  animation: stroke-checkmark 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 2;
  stroke: var(--text-charcoal);
  animation: stroke-checkmark 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke-checkmark {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale-checkmark {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill-checkmark {
  100% {
    box-shadow: inset 0px 0px 0px 30px rgba(43, 42, 41, 0.02);
  }
}

/* Success Roadmap styling */
.success-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.success-roadmap {
  margin: 2.5rem 0 3.5rem 0;
  border-left: 1px solid rgba(43, 42, 41, 0.1);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.roadmap-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.roadmap-item::before {
  content: '';
  position: absolute;
  left: calc(-1.5rem - 4.5px);
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 1px solid var(--bg-alabaster);
  transition: var(--transition-smooth);
}

.roadmap-item:hover::before {
  background: var(--text-charcoal);
  transform: scale(1.3);
}

.roadmap-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 3px;
}

.roadmap-content h4 {
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
  color: var(--text-charcoal);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.roadmap-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* --- FOOTER --- */
footer {
  padding: 4rem 0;
  border-top: 1px solid rgba(43, 42, 41, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

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

/* --- SCROLL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 6rem 8%;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-visual {
    height: 400px;
    order: -1; /* visual on top for tablet/mobile */
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .work-grid {
    grid-template-columns: 1fr;
  }
  
  .work-card.full-width {
    grid-column: span 1;
  }
  
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }
  
  header {
    padding: 1.25rem 0;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-alabaster);
    border-left: 1px solid rgba(43, 42, 41, 0.08);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem;
    gap: 2.5rem;
    z-index: 1001;
    transition: var(--transition-smooth);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.05);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.5rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-cta {
    display: none; /* Hide standard CTA on mobile */
  }
  
  .hero {
    padding: 7rem 0 6rem 0;
    align-items: flex-start;
  }
  
  .hero-tagline {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-bottom: 3.5rem;
  }
  
  .hero-actions .btn-glass {
    width: 100%;
    justify-content: center;
  }

  .scroll-indicator {
    bottom: 1.25rem;
    font-size: 0.65rem;
  }

  .scroll-indicator span {
    height: 28px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    min-height: auto;
  }
  
  .work-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
  
  .contact-info-card {
    padding: 3rem 2rem;
  }
  
  .contact-item-value {
    word-break: break-all;
    word-wrap: break-word;
    font-size: clamp(1rem, 4.5vw, 1.25rem);
  }
  
  .philosophy-details {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    height: 320px;
  }
  
  .glass-viewport-stack {
    transform: perspective(1200px) rotateY(-12deg) rotateX(8deg);
  }
  
  .desktop-viewport {
    width: 85%;
    height: 70%;
  }
  
  .tablet-viewport {
    width: 55%;
    height: 58%;
    left: 40%;
    transform: translateZ(35px);
  }
  
  .mobile-viewport {
    width: 32%;
    height: 48%;
    left: 25%;
    transform: translateZ(60px);
  }
  
  .glass-viewport-stack:hover .desktop-viewport {
    transform: translateZ(-10px) translateY(-4px) translateX(-4px);
  }
  
  .glass-viewport-stack:hover .tablet-viewport {
    transform: translateZ(50px) translateY(2px) translateX(6px);
  }
  
  .glass-viewport-stack:hover .mobile-viewport {
    transform: translateZ(100px) translateY(6px) translateX(-6px);
  }
  
  .brand-name-text {
    font-size: 1.05rem;
  }
  
  .brand-logo {
    height: 38px;
  }
}
