:root {
  --cream: #F5F0EB;
  --warm-white: #FFF8F2;
  --sand: #EDE0D4;
  --terracotta: #D4743B;
  --terracotta-dark: #BD5F28;
  --brown: #8B6F5E;
  --deep-brown: #2D1B0E;
  --gold: #E9B384;
  --gold-light: #F5E6D3;
  --text: #2D1B0E;
  --text-muted: #8B6F5E;
  --text-dim: #B8A89A;
  --radius: 4px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

::selection {
  background: var(--terracotta);
  color: #fff;
}

/* ── Loading Screen ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #F5F0EB;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#loader.done {
  opacity: 0;
  pointer-events: none;
}

.loader-brand {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: #2D1B0E;
  letter-spacing: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 1.2em;
  overflow: visible;
}

.loader-brand .typewriter {
  display: flex;
  align-items: center;
  position: relative;
}

.loader-brand .l-letter {
  display: none;
  opacity: 0;
}

.loader-brand .l-letter.show {
  display: inline-block;
  opacity: 1;
}

.loader-brand .cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #D4743B;
  margin-left: 2px;
  animation: cursorBlink 0.7s step-end infinite;
  vertical-align: text-bottom;
}

.loader-brand .cursor.done {
  display: none;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.loader-brand .l-y {
  display: inline-block;
  color: #D4743B;
  font-style: italic;
  opacity: 0;
  position: relative;
  margin-left: 4px;
  vertical-align: bottom;
  will-change: transform, opacity;
}

.loader-brand .l-y .dust {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #E9B384;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.loader-brand .l-y .dust:nth-child(1) {
  left: -10px;
}

.loader-brand .l-y .dust:nth-child(2) {
  left: 8px;
  width: 3px;
  height: 3px;
}

.loader-brand .l-y .dust:nth-child(3) {
  left: -18px;
  width: 2px;
  height: 2px;
}

.loader-bar-wrap {
  display: none;
}

.loader-bar-wrap.show {
  display: none;
}

.loader-bar {
  display: none;
}

.loader-bar-wrap .pct {
  display: none;
}

/* ── Cursor Follower ── */
.cursor-follower {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--terracotta);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s, height 0.3s, background 0.3s, opacity 0.3s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor-follower.hidden {
  opacity: 0;
}

.cursor-follower.hovering {
  width: 40px;
  height: 40px;
  background: var(--gold);
  mix-blend-mode: normal;
  opacity: 0.4;
}

@media (hover: none),
(pointer: coarse) {
  .cursor-follower {
    display: none;
  }
}

/* ── Navbar ── */
.navbar {
  padding: 1.5rem 0;
  background: transparent !important;
  transition: all var(--transition);
  z-index: 100;
}

.navbar.scrolled {
  background: rgba(245, 240, 235, 0.9) !important;
  backdrop-filter: blur(16px);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--deep-brown) !important;
  letter-spacing: -0.5px;
}

.navbar-brand span {
  color: var(--terracotta);
  font-style: italic;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 400;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--terracotta) !important;
}

.nav-cta {
  background: var(--deep-brown);
  color: var(--warm-white) !important;
  border-radius: 0;
  padding: 0.6rem 1.8rem !important;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: var(--terracotta) !important;
  color: #fff !important;
  transform: none;
}

.navbar-toggler {
  border: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232D1B0E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E") !important;
}

/* ── Hero ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-visual .shape-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 80vmin;
  height: 80vmin;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold), var(--terracotta));
  opacity: 0.4;
  filter: blur(60px);
  animation: heroOrb 25s ease-in-out infinite;
}

.hero-visual .shape-2 {
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 60vmin;
  height: 60vmin;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 70%, var(--terracotta), var(--brown));
  opacity: 0.25;
  filter: blur(80px);
  animation: heroOrb 30s ease-in-out infinite reverse;
}

.hero-visual .shape-3 {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vmin;
  height: 100vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 179, 132, 0.08), transparent 70%);
  animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroOrb {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

@keyframes heroPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

.hero-visual .grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 27, 14, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 27, 14, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-visual .accent-line {
  position: absolute;
  right: 8%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--terracotta), transparent);
  opacity: 0.3;
}

.hero-visual .accent-line-2 {
  position: absolute;
  left: 15%;
  bottom: 0;
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--terracotta));
  opacity: 0.2;
}

/* ── Floating Tech Stack ── */
.tech-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  padding: 0.45rem 1rem 0.45rem 0.85rem;
  border-radius: 30px;
  background: #FFF8F2;
  border: 1.5px solid rgba(45, 27, 14, 0.08);
  color: #2D1B0E;
  box-shadow: 0 8px 24px rgba(45, 27, 14, 0.08);
  z-index: 5;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  white-space: nowrap;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.tech-float:hover {
  box-shadow: 0 12px 30px rgba(45, 27, 14, 0.14);
}

.tech-float:active {
  cursor: grabbing;
}

.t-html {
  top: 62%;
  right: 23%;
  border-color: #d3664b;
  animation: floatHtml 6s ease-in-out infinite;
}

.t-css {
  top: 14%;
  left: 72%;
  border-color: #1572B6;
  animation: floatCss 7s ease-in-out infinite;
}

.t-tailwind {
  top: 30%;
  right: 28%;
  border-color: #38BDF8;
  animation: floatTailwind 8s ease-in-out infinite;
}

.t-php {
  top: 15%;
  left: 58%;
  border-color: #777BB3;
  animation: floatPhp 6.5s ease-in-out infinite;
}

.t-python {
  top: 28%;
  right: 8%;
  border-color: #3776AB;
  animation: floatPython 7.5s ease-in-out infinite;
}

.t-js {
  top: 48%;
  left: 65%;
  background: #FFF8F2;
  border-color: #F7DF1E;
  animation: floatJs 6s ease-in-out infinite;
}

.t-react {
  top: 42%;
  right: 10%;
  border-color: #61DAFB;
  animation: floatReact 7.5s ease-in-out infinite;
}

.t-node {
  top: 62%;
  left: 450%;
  border-color: #339933;
  animation: floatNode 8s ease-in-out infinite;
}

.t-laravel {
  top: 68%;
  left: 60%;
  border-color: #FF2D20;
  animation: floatLaravel 6.5s ease-in-out infinite;
}

.t-supabase {
  top: 72%;
  right: 8%;
  border-color: #3FCF8E;
  animation: floatSupabase 7s ease-in-out infinite;
}

@keyframes floatHtml {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(10px, -18px) rotate(2deg);
  }

  50% {
    transform: translate(-8px, -6px) rotate(-1deg);
  }

  75% {
    transform: translate(12px, -22px) rotate(1deg);
  }
}

@keyframes floatCss {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-14px, -14px) rotate(-2deg);
  }

  50% {
    transform: translate(6px, -20px) rotate(1deg);
  }

  75% {
    transform: translate(-10px, -8px) rotate(-1deg);
  }
}

@keyframes floatTailwind {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(12px, -10px) rotate(3deg);
  }

  50% {
    transform: translate(-14px, -18px) rotate(-2deg);
  }

  75% {
    transform: translate(8px, -14px) rotate(1deg);
  }
}

@keyframes floatPhp {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-10px, -20px) rotate(-1deg);
  }

  50% {
    transform: translate(16px, -8px) rotate(2deg);
  }

  75% {
    transform: translate(-6px, -16px) rotate(-1deg);
  }
}

@keyframes floatPython {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(8px, -12px) rotate(-3deg);
  }

  50% {
    transform: translate(-12px, -22px) rotate(1deg);
  }

  75% {
    transform: translate(14px, -10px) rotate(-1deg);
  }
}

@keyframes floatJs {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-16px, -16px) rotate(-2deg);
  }

  50% {
    transform: translate(8px, -22px) rotate(2deg);
  }

  75% {
    transform: translate(-10px, -12px) rotate(-1deg);
  }
}

@keyframes floatReact {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(14px, -20px) rotate(3deg);
  }

  50% {
    transform: translate(-10px, -10px) rotate(-2deg);
  }

  75% {
    transform: translate(18px, -16px) rotate(1deg);
  }
}

@keyframes floatNode {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-12px, -14px) rotate(-3deg);
  }

  50% {
    transform: translate(16px, -20px) rotate(2deg);
  }

  75% {
    transform: translate(-8px, -8px) rotate(-1deg);
  }
}

@keyframes floatLaravel {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(10px, -18px) rotate(2deg);
  }

  50% {
    transform: translate(-14px, -6px) rotate(-3deg);
  }

  75% {
    transform: translate(6px, -20px) rotate(1deg);
  }
}

@keyframes floatSupabase {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-8px, -22px) rotate(-1deg);
  }

  50% {
    transform: translate(14px, -12px) rotate(2deg);
  }

  75% {
    transform: translate(-12px, -16px) rotate(-2deg);
  }
}

@media (max-width: 991px) {
  .tech-float {
    display: none;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 50%, var(--cream) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateX(-20px);
}

.hero-tag.show {
  animation: heroTagIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroTagIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-tag::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--terracotta);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--deep-brown);
  max-width: 900px;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  animation: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease, filter 0.3s ease;
  cursor: default;
}

.hero-title .word:hover {
  transform: translateY(-4px) !important;
  filter: blur(0) !important;
  color: var(--terracotta);
}

.hero-title .word.show {
  animation: heroWordIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroWordIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-title em {
  font-style: italic;
  color: var(--terracotta);
  background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--terracotta));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-title .word em {
  font-style: italic;
  background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--terracotta));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
}

.hero-line {
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  margin: 1.5rem 0;
  transition: none;
}

.hero-line.animate {
  animation: heroLineIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroLineIn {
  from {
    width: 0;
  }

  to {
    width: 60px;
  }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.8;
  margin: 0 0 3rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
  transition: none;
}

.hero-desc.show {
  animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: none;
}

.hero-actions.show {
  animation: heroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.btn-primary-warm {
  padding: 1rem 2.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: none;
  background: var(--deep-brown);
  color: var(--warm-white);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-primary-warm:hover {
  background: var(--terracotta);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline-warm {
  padding: 1rem 2.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 1px solid var(--brown);
  background: transparent;
  color: var(--deep-brown);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-outline-warm:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.hero-scroll .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--brown), transparent);
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ── Hero Particles ── */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--terracotta);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0);
  }

  10% {
    opacity: 0.4;
  }

  90% {
    opacity: 0.4;
  }

  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(30px);
  }
}

/* ── Hero 3D Tilt Container ── */
.hero-content {
  perspective: 1200px;
  transform-style: preserve-3d;
}

/* ── Section Common ── */
section {
  position: relative;
  z-index: 1;
}

.section-inner {
  padding: 8rem 0;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--terracotta);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--terracotta);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--deep-brown);
  line-height: 1.15;
}

.section-title em {
  color: var(--terracotta);
  font-style: italic;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
}

.number-marker {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.5rem;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  z-index: 0;
  user-select: none;
}

/* ── Services ── */
#services {
  background: var(--warm-white);
}

.service-card {
  padding: 3rem 2.5rem;
  background:
    url("data:image/svg+xml,%3Csvg width='200' height='200' 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='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
    linear-gradient(155deg, #f9f4ee 0%, #f0e8de 35%, #e8ddd1 65%, #e4d8cc 100%);
  border: 1px solid rgba(180, 160, 140, 0.3);
  border-top-color: rgba(255, 255, 255, 0.75);
  border-left-color: rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(140, 120, 100, 0.4);
  border-right-color: rgba(140, 120, 100, 0.3);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  border-radius: 10px;
  box-shadow:
    0 1px 1px rgba(45, 27, 14, 0.04),
    0 2px 4px rgba(45, 27, 14, 0.04),
    0 4px 8px rgba(45, 27, 14, 0.03),
    0 8px 20px rgba(45, 27, 14, 0.03),
    0 16px 40px rgba(45, 27, 14, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 2px 3px rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(45, 27, 14, 0.06),
    inset 0 -2px 4px rgba(45, 27, 14, 0.02);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 6px;
  border: 1px dashed rgba(180, 160, 140, 0.18);
  pointer-events: none;
  z-index: 1;
}

.service-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.9) 70%, transparent);
  border-radius: 50%;
  filter: blur(0.3px);
  pointer-events: none;
  z-index: 2;
}

.service-card:hover {
  background:
    url("data:image/svg+xml,%3Csvg width='200' height='200' 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='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
    linear-gradient(155deg, #fdf9f4 0%, #f5ede3 35%, #ede3d7 65%, #e9ded2 100%);
  border-color: rgba(212, 116, 59, 0.25);
  border-top-color: rgba(255, 255, 255, 0.85);
  border-left-color: rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(189, 95, 40, 0.2);
  border-right-color: rgba(189, 95, 40, 0.15);
  transform: translateY(-8px) scale(1.015);
  box-shadow:
    0 4px 6px rgba(45, 27, 14, 0.05),
    0 8px 16px rgba(45, 27, 14, 0.05),
    0 16px 32px rgba(45, 27, 14, 0.04),
    0 24px 48px rgba(45, 27, 14, 0.03),
    0 36px 72px rgba(212, 116, 59, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 2px 3px rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(45, 27, 14, 0.05),
    inset 0 -2px 4px rgba(45, 27, 14, 0.015);
}

.service-card:active {
  transform: translateY(-2px) scale(0.995);
  box-shadow:
    0 1px 2px rgba(45, 27, 14, 0.06),
    0 2px 4px rgba(45, 27, 14, 0.04),
    inset 0 2px 6px rgba(45, 27, 14, 0.08),
    inset 0 1px 2px rgba(45, 27, 14, 0.04),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3);
  transition-duration: 0.1s;
}

.service-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.3), transparent 60%),
    linear-gradient(145deg, #efe5d8, #ddd0c0);
  border: 1px solid rgba(180, 160, 140, 0.25);
  border-top-color: rgba(255, 255, 255, 0.5);
  border-left-color: rgba(255, 255, 255, 0.35);
  border-bottom-color: rgba(140, 120, 100, 0.3);
  border-right-color: rgba(140, 120, 100, 0.2);
  box-shadow:
    0 2px 4px rgba(45, 27, 14, 0.06),
    0 4px 8px rgba(45, 27, 14, 0.03),
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -1px 2px rgba(45, 27, 14, 0.08),
    inset 2px 0 4px rgba(255, 255, 255, 0.15),
    inset -2px 0 4px rgba(45, 27, 14, 0.03);
  background-clip: unset;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  color: transparent;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.3), transparent 60%),
    linear-gradient(150deg, #e9a85c, #d4893a 40%, #c47a30 70%, #b06e28 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4)) drop-shadow(0 1px 2px rgba(45, 27, 14, 0.12));
}

.service-card h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--deep-brown);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6),
    0 -0.5px 0 rgba(45, 27, 14, 0.04);
  position: relative;
  z-index: 2;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.service-link {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--terracotta);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
  position: relative;
  z-index: 2;
  padding: 0.55rem 1.2rem;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(212, 116, 59, 0.2);
  border-top-color: rgba(255, 255, 255, 0.5);
  border-bottom-color: rgba(189, 95, 40, 0.15);
  box-shadow:
    0 1px 2px rgba(45, 27, 14, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(45, 27, 14, 0.03);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.service-link:hover {
  gap: 0.8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
  border-color: rgba(212, 116, 59, 0.35);
  box-shadow:
    0 2px 4px rgba(45, 27, 14, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(45, 27, 14, 0.02);
}

.service-link:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 3px rgba(45, 27, 14, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3);
  transition-duration: 0.08s;
}

/* ── Philosophy ── */
#philosophy {
  background: var(--cream);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}

.phil-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--deep-brown);
  max-width: 800px;
}

.phil-quote .attribution {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

/* ── Portfolio ── */
#work {
  background: var(--warm-white);
}

.port-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--sand);
  transition: all var(--transition);
  perspective: 1000px;
}

.port-item:hover {
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(45, 27, 14, 0.06);
}

.port-item .port-inner {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.port-item .thumb {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--gold-light), var(--sand));
  transition: all var(--transition);
  overflow: hidden;
}

.port-item .thumb i {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.port-item .thumb img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.port-item:hover .thumb {
  color: var(--terracotta);
}

.port-item:hover .thumb i {
  transform: scale(1.15);
}

.port-item:hover .thumb img {
  transform: scale(1.08);
}

.port-meta {
  padding: 1.5rem;
  transition: transform 0.4s var(--transition);
}

.port-item:hover .port-meta {
  transform: translateZ(20px);
}

.port-meta .cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--terracotta);
  margin-bottom: 0.3rem;
}

.port-meta h6 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--deep-brown);
  margin: 0;
}

.port-item:nth-child(2) .thumb {
  aspect-ratio: 3 / 4;
}

.port-item:nth-child(4) .thumb {
  aspect-ratio: 16 / 9;
}

/* ── Magnetic Button ── */
.magnetic-wrap {
  position: relative;
  display: inline-flex;
}

.magnetic-wrap .btn-primary-warm,
.magnetic-wrap .btn-outline-warm {
  position: relative;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}

/* ── Values ── */
#values {
  background: var(--cream);
}

.value-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--sand);
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.value-item:last-child {
  border-bottom: none;
}

.value-item .v-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 60px;
  line-height: 1;
}

.value-item .v-content h5 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.value-item .v-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.7;
}

/* ── Stats ── */
#stats {
  padding: 5rem 0;
  background: var(--warm-white);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}

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

.stat-item h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--deep-brown);
  margin-bottom: 0.2rem;
  line-height: 1;
}

.stat-item .stat-suffix {
  color: var(--terracotta);
  font-size: 1.4rem;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
  font-weight: 400;
}

/* ── CTA ── */
#cta {
  background: var(--deep-brown);
  color: var(--warm-white);
  padding: 6rem 0;
  text-align: center;
}

#cta .section-title {
  color: var(--warm-white);
}

#cta .section-title em {
  color: var(--gold);
}

#cta .section-desc {
  color: rgba(255, 255, 255, 0.6);
  margin: 1rem auto 2.5rem;
  max-width: 500px;
}

#cta .btn-primary-warm {
  background: var(--terracotta);
  color: #fff;
}

#cta .btn-primary-warm:hover {
  background: var(--gold);
  color: var(--deep-brown);
}

/* ── Contact ── */
#contact {
  background: var(--warm-white);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.contact-info i {
  color: var(--terracotta);
  width: 18px;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 2rem;
}

.social-links a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sand);
  color: var(--brown);
  text-decoration: none;
  transition: all var(--transition);
}

.social-links a:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  background: var(--gold-light);
}

form .form-control {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 0;
  padding: 0.9rem 1.2rem;
  color: var(--deep-brown);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

form .form-control:focus {
  background: var(--warm-white);
  border-color: var(--terracotta);
  box-shadow: none;
  color: var(--deep-brown);
}

form .form-control::placeholder {
  color: var(--text-dim);
}

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

form .btn-primary-warm {
  width: 100%;
  justify-content: center;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--sand);
  padding: 2.5rem 0;
  color: var(--text-dim);
  font-size: 0.8rem;
  z-index: 1;
  position: relative;
  background: var(--cream);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer .brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep-brown);
}

.footer .brand span {
  color: var(--terracotta);
  font-style: italic;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-d1 {
  transition-delay: 0.1s;
}

.reveal-d2 {
  transition-delay: 0.2s;
}

.reveal-d3 {
  transition-delay: 0.3s;
}

.reveal-d4 {
  transition-delay: 0.4s;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .navbar {
    background: rgba(245, 240, 235, 0.95) !important;
  }

  .hero-content {
    padding-top: 100px;
  }

  .hero-overlay {
    background: linear-gradient(to top, var(--cream) 0%, transparent 60%, var(--cream) 100%);
  }
}

@media (max-width: 767px) {
  .section-inner {
    padding: 5rem 0;
  }

  .hero-title {
    font-size: clamp(2.8rem, 12vw, 3.5rem);
  }

  .value-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .port-item:nth-child(2) .thumb {
    aspect-ratio: 4 / 3;
  }

  .port-item:nth-child(4) .thumb {
    aspect-ratio: 4 / 3;
  }

  .hero-visual .accent-line {
    display: none;
  }

  .hero-overlay {
    background: linear-gradient(to top, var(--cream) 0%, transparent 50%, var(--cream) 100%);
  }
}

@media (max-width: 575px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary-warm,
  .hero-actions .btn-outline-warm {
    width: 100%;
    justify-content: center;
  }
}

/* ── Form Success Toast ── */
.form-success-toast {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.5rem;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  font-size: 0.9rem;
  font-weight: 500;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-success-toast.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.form-success-toast span {
  font-size: 1.1rem;
  font-weight: 700;
}