/* ==========================================================================
   ArshakUIX — Portfolio v2
   Design tokens, base styles, and all section styles. No frameworks.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --bg: #FAFAFA;
  --text: #171717;
  --text-2: #737373;          /* secondary text (~4.6:1 on --bg) */
  --accent: #05735F;
  --accent-2: #35BFA0;
  --gradient: linear-gradient(135deg, #05735F 0%, #35BFA0 100%);
  --surface: #F1F5F4;
  --border: #E5E7EB;
  --dark: #101918;
  --white: #FFFFFF;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fluid type scale */
  --fs-hero: clamp(2.375rem, 1rem + 6vw, 5.5rem);      /* 38px → 88px */
  --fs-h2: clamp(2.5rem, 1.75rem + 3vw, 3.5rem);        /* 40px → 56px */
  --fs-card: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);    /* 28px → 40px */
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);   /* 16px → 18px */
  --fs-label: clamp(0.75rem, 0.72rem + 0.15vw, 0.875rem); /* 12px → 14px */

  --container: 1240px;
  --nav-h: 72px;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-sm: 0 2px 8px rgba(23, 23, 23, 0.06);
  --shadow-md: 0 12px 40px rgba(5, 115, 95, 0.12), 0 4px 12px rgba(23, 23, 23, 0.08);
  --shadow-lg: 0 24px 70px rgba(5, 115, 95, 0.16), 0 8px 24px rgba(23, 23, 23, 0.10);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; }

::selection { background: rgba(5, 115, 95, 0.18); }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Utilities ---------- */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(72px, 9vw, 128px) 0; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--accent-2); }

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-sub { color: var(--text-2); font-size: var(--fs-body); max-width: 60ch; }
.section-head.center .section-sub { margin-inline: auto; }
.section-sub.quote { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(5, 115, 95, 0.30);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(5, 115, 95, 0.38);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--white);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.btn-lg { min-height: 58px; padding: 16px 38px; font-size: 1.06rem; }

/* Skip link */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  background: var(--dark);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 150;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
}

/* ---------- 4. Navigation ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(250, 250, 250, 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(23, 23, 23, 0.05);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; transition: opacity 0.25s ease, transform 0.25s ease; }
.brand:hover { opacity: 0.82; transform: translateY(-1px); }
.brand-mark { height: 32px; width: 32px; border-radius: 8px; box-shadow: 0 2px 10px rgba(5, 115, 95, 0.22); }
.brand-word { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--text); line-height: 1; }
.brand-footer .brand-mark { height: 28px; width: 28px; }
.brand-footer .brand-word { font-size: 1.12rem; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
}
/* Animated underline hover */
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--gradient);
  color: var(--white) !important;
  border-radius: 999px;
  padding: 10px 22px !important;
  box-shadow: 0 6px 18px rgba(5, 115, 95, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(5, 115, 95, 0.36); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(250, 250, 250, 0.98);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.mobile-menu nav a {
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  padding: 10px 20px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), color 0.25s;
}
.mobile-menu nav a:hover { color: var(--accent); }
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mobile-menu.open nav a:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.open nav a:nth-child(5) { transition-delay: 0.30s; }
.mobile-cta.btn { font-size: 1.1rem; margin-top: 12px; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(40px, 6vw, 80px)) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
/* Subtle grain overlay (hero only) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-line { display: block; }
.hero-title em { font-style: normal; }
/* Gradient text must live on the .w word spans (not the <em> wrapper):
   background-clip:text does not paint through inline-block children,
   which left "digital experiences." invisible after the word-split. */
.hero-title em .w {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Word-by-word reveal (JS wraps words; hidden only when JS is on) */
.js .hero-title .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  animation: wordIn 0.7s var(--ease) forwards;
  animation-delay: calc(var(--i) * 0.07s + 0.15s);
}
@keyframes wordIn { to { opacity: 1; transform: none; } }

.hero-sub { color: var(--text-2); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); max-width: 34em; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--text-2);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  opacity: 0.6;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* --- Hero floating UI composition --- */
.hero-visual {
  position: relative;
  min-height: 560px;
  perspective: 1200px;
}
.hv-glow {
  position: absolute;
  inset: 8% 4%;
  background: radial-gradient(closest-side, rgba(53, 191, 160, 0.32), rgba(5, 115, 95, 0.10) 55%, transparent 75%);
  filter: blur(10px);
  animation: glowDrift 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glowDrift {
  from { transform: translate(-4%, -3%) scale(1); }
  to   { transform: translate(4%, 4%) scale(1.08); }
}

.hv-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hv-route #routePath {
  stroke-dasharray: 7 8;
  animation: dashMove 30s linear infinite;
}
@keyframes dashMove { to { stroke-dashoffset: -600; } }

.hv-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  will-change: transform;
}

/* Flight search card */
.hv-flight {
  top: 6%;
  left: 2%;
  width: min(340px, 78%);
  animation: floatA 7s ease-in-out infinite;
  z-index: 2;
}
.hv-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.hv-tabs span {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text-2);
  background: var(--surface);
}
.hv-tabs span.on { background: var(--gradient); color: var(--white); }
.hv-fields { display: flex; align-items: stretch; gap: 8px; margin-bottom: 12px; }
.hv-field {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hv-field label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); }
.hv-field strong { font-size: 1.25rem; letter-spacing: 0.02em; }
.hv-field span { font-size: 0.75rem; color: var(--text-2); }
.hv-swap {
  align-self: center;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.hv-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.72rem; color: var(--text-2); font-weight: 600;
  margin-bottom: 14px;
}
.hv-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }
.hv-search {
  display: block;
  text-align: center;
  background: var(--gradient);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(5, 115, 95, 0.30);
}

/* Booking confirmation card */
.hv-booking {
  top: 44%;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  animation: floatB 8.5s ease-in-out infinite;
  z-index: 3;
}
.hv-check {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
}
.hv-booking-text { display: flex; flex-direction: column; }
.hv-booking-text strong { font-size: 0.88rem; }
.hv-booking-text span { font-size: 0.75rem; color: var(--text-2); }

/* Price card */
.hv-price {
  bottom: 4%;
  left: 12%;
  width: 190px;
  animation: floatC 6s ease-in-out infinite;
  z-index: 2;
}
.hv-price-label { font-size: 0.7rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; }
.hv-price-value { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin: 2px 0 10px; }
.hv-bars { display: flex; align-items: flex-end; gap: 6px; height: 44px; }
.hv-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  opacity: 0.85;
}
.hv-bars i:last-child { opacity: 1; box-shadow: 0 0 0 2px rgba(53, 191, 160, 0.25); }

/* Floating labels */
.hv-tag {
  position: absolute;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(5, 115, 95, 0.25);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.hv-tag-1 { top: 0; right: 12%; animation: floatB 7.5s ease-in-out infinite; }
.hv-tag-2 { top: 38%; left: 0; animation: floatC 9s ease-in-out infinite; }
.hv-tag-3 { bottom: 12%; right: 6%; animation: floatA 8s ease-in-out infinite; }

@keyframes floatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
@keyframes floatC {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-8px) rotate(0.4deg); }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 1;
}
.scroll-hint span {
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--accent);
  animation: hintDrop 1.8s ease-in-out infinite;
}
@keyframes hintDrop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- 5b. Live project highlight ---------- */
.live-spot { padding: clamp(8px, 2vw, 24px) 0 clamp(56px, 7vw, 96px); }
.live-card {
  display: block; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #EAF7F2 0%, var(--white) 55%, #F4FBF8 100%);
  border: 1px solid var(--border); border-radius: 28px;
  padding: clamp(22px, 4vw, 44px);
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.live-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-label); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: rgba(5, 115, 95, 0.1);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 20px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(53, 191, 160, 0.5); animation: livePulse 2s infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(53, 191, 160, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(53, 191, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 191, 160, 0); }
}
.live-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.live-media img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: block; }
.live-kicker { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.06em; color: var(--text-2); margin-bottom: 10px; }
.live-name { display: block; font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 14px; }
.live-desc { display: block; color: var(--text-2); font-size: var(--fs-body); line-height: 1.65; max-width: 44ch; margin-bottom: 22px; }
.live-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: var(--fs-body); color: var(--white);
  background: var(--gradient); padding: 14px 26px; border-radius: 999px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.live-card:hover .live-cta { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(5, 115, 95, 0.3); }
@media (max-width: 860px) {
  .live-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .live-card, .live-card:hover, .live-card:hover .live-cta { transform: none; }
}

/* ---------- 6. Work ---------- */
.work { background: var(--white); border-block: 1px solid var(--border); }
.work-list { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 96px); }

.work-card {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
/* Alternating composition */
.work-card:nth-child(even) .work-media { order: 2; }
.work-card:nth-child(even) .work-body { order: 1; }

.work-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 2;
  background: var(--surface);
}
.work-card.featured .work-media { aspect-ratio: 16 / 10; }
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.work-card:hover .work-media img { transform: scale(1.03); }

.concept-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(16, 25, 24, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 7px 14px;
  border-radius: 999px;
}

.work-arrow {
  position: absolute;
  right: 16px; bottom: 16px;
  z-index: 2;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.work-card:hover .work-arrow {
  transform: translate(6px, -6px);
  background: var(--accent);
  color: var(--white);
}

.work-body { position: relative; padding-block: 8px; }
.work-num {
  font-size: clamp(3rem, 4vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, rgba(5,115,95,0.22), rgba(5,115,95,0.04));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 12px;
}
.work-cat {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.work-title { font-size: var(--fs-card); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.work-card.featured .work-title { font-size: clamp(2rem, 1.6rem + 2vw, 2.9rem); }
.work-desc { color: var(--text-2); margin-bottom: 20px; max-width: 46ch; }
.work-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.work-tags li {
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.work-card:hover .work-tags li { border-color: rgba(5, 115, 95, 0.35); }

/* ---------- 7. Philosophy ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.principle {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.principle:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(5, 115, 95, 0.30);
}
.principle-icon {
  display: inline-grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--gradient);
  color: var(--white);
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(5, 115, 95, 0.28);
}
.principle-icon svg { width: 30px; height: 30px; }
.principle h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.principle p { color: var(--text-2); font-size: 0.98rem; }

/* ---------- 8. Process ---------- */
.process { background: var(--surface); border-block: 1px solid var(--border); }
.process-track { position: relative; padding-top: 8px; }

/* Connected progress rail */
.process-rail {
  position: absolute;
  top: 43px; left: 0; right: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.process-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 3px;
  transition: width 0.15s linear;
}

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.process-step { padding-top: 0; }
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--border);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 22px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.process-step.active .step-num {
  border-color: var(--accent);
  box-shadow: 0 0 0 8px rgba(5, 115, 95, 0.10);
}
.process-step h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.process-step p { color: var(--text-2); font-size: 0.96rem; }

/* ---------- 9. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-copy p { color: var(--text-2); margin-bottom: 18px; max-width: 58ch; }
.about-copy p:first-of-type { color: var(--text); }

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.skill-chips li {
  font-size: var(--fs-label);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.skill-chips li:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}

/* Monogram card (no portrait available) */
.monogram-tile {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(140deg, #05735F 0%, #0a8a70 45%, #35BFA0 100%);
  aspect-ratio: 4 / 4.4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.monogram-tile::before {
  content: "";
  position: absolute;
  width: 130%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.22), transparent 70%);
  top: -30%; right: -40%;
}
.monogram-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.monogram-badge {
  position: relative;
  z-index: 1;
  width: clamp(140px, 45%, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}
/* Approved "A" symbol, centered in the badge */
.monogram-symbol { width: 78%; height: auto; }
.monogram-caption {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- 10. Contact (dark) ---------- */
.contact {
  position: relative;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.contact-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(52% 60% at 50% 108%, rgba(53, 191, 160, 0.28), transparent 70%),
    radial-gradient(30% 34% at 82% 12%, rgba(5, 115, 95, 0.35), transparent 70%);
  animation: glowDrift 10s ease-in-out infinite alternate;
  pointer-events: none;
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
.contact-inner { position: relative; z-index: 1; max-width: 780px; }
.contact-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 18px;
  text-wrap: balance;
}
.contact-sub { color: rgba(255, 255, 255, 0.72); max-width: 56ch; margin: 0 auto 36px; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 26px; }
.contact-alt { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; }
.contact-alt a { color: var(--accent-2); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(53,191,160,0.5); }
.contact-alt a:hover { border-bottom-color: var(--accent-2); }

/* Animated gradient line */
.contact-line { margin-top: 56px; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.10); overflow: hidden; }
.contact-line span {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 2px;
  background: var(--gradient);
  animation: lineSlide 3.2s var(--ease) infinite;
}
@keyframes lineSlide {
  0% { transform: translateX(-110%); }
  60%, 100% { transform: translateX(290%); }
}

/* ---------- 11. Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
/* Footer sits on dark: lift the dark-wordmark lockup into a white pill */
.brand-footer {
  background: var(--white);
  border-radius: 999px;
  padding: 8px 18px 8px 14px;
}
.footer-note { font-size: 0.9rem; }
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 10px 18px;
  border-radius: 999px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.back-to-top:hover { border-color: var(--accent-2); transform: translateY(-2px); }

/* ---------- 12. Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--rd, 0) * 0.12s);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-delay="1"] { --rd: 1; }
.js [data-delay="2"] { --rd: 2; }
.js [data-delay="3"] { --rd: 3; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { min-height: 520px; max-width: 560px; margin-inline: auto; width: 100%; }
  .about-grid { grid-template-columns: 1fr; }
  .monogram-tile { max-width: 420px; margin-inline: auto; width: 100%; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .work-card, .work-card:nth-child(even) .work-media, .work-card:nth-child(even) .work-body {
    grid-template-columns: 1fr;
    order: initial;
  }
  .work-card:nth-child(even) .work-media { order: -1; } /* media first on mobile too */
  .principles { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 768px) {
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  /* Vertical progress rail on mobile */
  .process-rail { top: 0; bottom: 0; left: 35px; right: auto; width: 3px; height: auto; }
  .process-fill { width: 100% !important; height: 0; }
  .process-step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start; }
  .step-num { margin-bottom: 0; }
  .hero-visual { min-height: 480px; transform: scale(0.94); transform-origin: top center; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 40px, var(--container)); }
  .hero-visual { min-height: 440px; transform: scale(0.86); margin-bottom: -40px; }
  .hv-flight { width: 82%; }
  .hv-booking { right: 0; }
  .hv-tag-2 { left: 0; }
  .btn { width: 100%; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .contact-ctas .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Very small screens */
@media (max-width: 360px) {
  .hero-visual { transform: scale(0.78); margin-bottom: -80px; }
  .hv-price { left: 6%; }
}

/* ---------- 14. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero-title .w { opacity: 1; transform: none; animation: none; }
  .hv-route #routePath { animation: none; }
  .contact-line span { animation: none; transform: none; width: 100%; }
  .scroll-hint { display: none; }
}
