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

html { scroll-behavior: smooth; }

body {
  background: #EAE0D5;
  color: #2B2520;
  font-family: "General Sans", sans-serif;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

*:focus-visible {
  outline: 2px solid #E07A5F;
  outline-offset: 3px;
  border-radius: 4px;
}

a, button { -webkit-tap-highlight-color: transparent; }

::selection {
  background: #E07A5F;
  color: #FFF8F0;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #EAE0D5; }
::-webkit-scrollbar-thumb { background: #B8AA9D; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #E07A5F; }

nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43,37,32,0.06);
  box-shadow: 0 10px 30px rgba(43,37,32,0.04);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  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);
}

.hero-mesh {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 55% 45% at 18% 28%, rgba(224,122,95,0.24), transparent 65%),
    radial-gradient(ellipse 45% 40% at 82% 22%, rgba(232,188,169,0.38), transparent 65%),
    radial-gradient(ellipse 65% 55% at 75% 82%, rgba(116,96,82,0.16), transparent 65%),
    radial-gradient(ellipse 50% 50% at 22% 88%, rgba(223,161,141,0.34), transparent 65%),
    #EAE0D5;
  animation: meshDrift 22s ease-in-out infinite alternate;
  filter: blur(20px);
}

@keyframes meshDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 1.5%) scale(1.04); }
  100% { transform: translate(2%, -1.5%) scale(1.02); }
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: orbFloat 14s ease-in-out infinite alternate;
}

.hero-orb.orb-1 { width: 420px; height: 420px; background: #E07A5F; top: -8%; left: -6%; }
.hero-orb.orb-2 { width: 360px; height: 360px; background: #E8BCA9; top: 40%; right: -8%; animation-delay: -4s; animation-duration: 18s; }
.hero-orb.orb-3 { width: 300px; height: 300px; background: #DFA18D; bottom: -6%; left: 35%; animation-delay: -8s; animation-duration: 20s; }

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}

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

.marquee-track { animation: marqueeScroll 20s linear infinite; }

.scroller-mask {
  height: 1em;
  overflow: hidden;
  display: block;
  width: max-content;
  min-width: 10.2ch;
  max-width: 96vw;
  line-height: 0.98;
}

.scroller-inner {
  display: block;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.scroller-inner > span {
  display: flex;
  align-items: center;
  height: 1em;
  line-height: 0.98;
  overflow: hidden;
  white-space: nowrap;
  word-spacing: 0.08em;
}

.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.home-hero { isolation: isolate; }

.home-hero-copy { max-width: 720px; }

.home-hero-title {
  font-size: clamp(4rem, 8.6vw, 8.6rem);
  max-width: 860px;
}

.home-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 720px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(43,37,32,0.1);
  border-radius: 14px;
  background: rgba(43,37,32,0.08);
  box-shadow: 0 18px 55px rgba(43,37,32,0.08);
}

.home-proof-item {
  background: rgba(248,241,234,0.72);
  padding: 18px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-proof-item strong {
  font-family: "Clash Display", sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 0.95;
  color: #2B2520;
}

.home-proof-item span {
  color: #6D6259;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.home-showcase {
  position: relative;
  min-height: 570px;
}

.home-showcase-main,
.home-showcase-secondary,
.home-showcase-portrait {
  position: absolute;
  overflow: hidden;
  background: #F8F1EA;
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 30px 80px rgba(43,37,32,0.18);
}

.home-showcase-main {
  right: 0;
  top: 6%;
  width: 88%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  transform: rotate(1.5deg);
}

.home-showcase-secondary {
  left: 0;
  bottom: 8%;
  width: 58%;
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  transform: rotate(-3deg);
  z-index: 2;
}

.home-showcase-portrait {
  left: 2%;
  top: 0;
  width: 26%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  z-index: 3;
}

.home-showcase-main img,
.home-showcase-secondary img,
.home-showcase-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-showcase-main img,
.home-showcase-secondary img {
  object-position: left top;
}

.home-showcase-portrait img { object-position: center top; }

.showcase-badge {
  position: absolute;
  display: flex;
  align-items: center;
  z-index: 4;
  max-width: 280px;
  border: 1px solid rgba(43,37,32,0.08);
  background: rgba(248,241,234,0.9);
  color: #2B2520;
  box-shadow: 0 18px 50px rgba(43,37,32,0.14);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.showcase-badge-top {
  right: 5%;
  top: 0;
}

.showcase-badge-bottom {
  right: 0;
  bottom: 10%;
}

.warm-card {
  background: #F8F1EA;
  border: 1px solid rgba(43,37,32,0.08);
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(43,37,32,0.06);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.warm-card:hover {
  box-shadow: 0 8px 40px rgba(224,122,95,0.10);
  transform: translateY(-2px);
}

.page-hero {
  min-height: clamp(620px, 78vh, 820px);
}

.page-hero-title {
  font-size: clamp(3rem, 9vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  min-height: 420px;
  box-shadow: 0 24px 70px rgba(42,37,32,0.12);
  border: 1px solid rgba(255,255,255,0.45);
}

.page-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.page-hero-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(248,241,234,0.92);
  color: #2B2520;
  border: 1px solid rgba(43,37,32,0.08);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  backdrop-filter: blur(12px);
}

.article-card {
  overflow: hidden;
  height: 100%;
}

.article-card a {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #DCCFC3;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article-card:hover .article-image img { transform: scale(1.04); }

.external-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E07A5F;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.project-img { transition: transform 0.6s ease; }
.project-card:hover .project-img { transform: scale(1.03); }

.service-preview-card {
  display: flex;
  flex-direction: column;
}

.service-preview-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #DCCFC3;
}

.service-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-preview-card:hover .service-preview-media img { transform: scale(1.04); }

.project-card {
  background: rgba(248,241,234,0.72);
  border: 1px solid rgba(43,37,32,0.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 55px rgba(43,37,32,0.07);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 80px rgba(43,37,32,0.12);
}

.service-number {
  font-family: "Clash Display", sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  color: rgba(42,37,32,0.08);
}

.contact-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.contact-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition-delay: 0s;
}

.contact-panel {
  background: #F8F1EA;
  border-color: rgba(43,37,32,0.08);
  transform: translateY(40px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-overlay.open .contact-panel { transform: translateY(0); }

.form-input {
  background: transparent;
  border: 1px solid rgba(43,37,32,0.14);
  color: #2B2520;
  padding: 14px 18px;
  font-family: "General Sans", sans-serif;
  font-size: 15px;
  width: 100%;
  border-radius: 10px;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-input:focus { border-color: #E07A5F; }
.form-input::placeholder { color: #B5AEA6; }

.mobile-nav-toggle { display: none; }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #EAE0D5;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition-delay: 0s;
}

.mobile-menu a {
  font-family: "Clash Display", sans-serif;
  font-weight: 600;
  font-size: 28px;
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(42,37,32,0.12);
  background: #F8F1EA;
  color: #6B6259;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.share-btn:hover {
  background: #E07A5F;
  color: white;
  border-color: #E07A5F;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(224,122,95,0.25);
}

.share-btn svg { width: 18px; height: 18px; }

.copy-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2B2520;
  color: #FFF8F0;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.faq-item { border-bottom: 1px solid rgba(42,37,32,0.08); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #E07A5F; }

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(42,37,32,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: #E07A5F;
  border-color: #E07A5F;
  color: white;
}

.faq-body {
  padding: 0 0 28px 0;
  max-width: 780px;
  color: #6B6259;
  line-height: 1.7;
}

.timeline-item {
  position: relative;
  padding-left: 28px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: #E07A5F;
  border-radius: 50%;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 20px;
  width: 1px;
  height: calc(100% - 8px);
  background: rgba(42,37,32,0.08);
}

.timeline-item:last-child::after { display: none; }
.about-portrait { filter: brightness(0.95) saturate(1.05); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .desktop-nav { display: none !important; }
  .mobile-nav-toggle { display: flex !important; }
  .hero-orb.orb-1 { width: 280px; height: 280px; }
  .hero-orb.orb-2 { width: 240px; height: 240px; }
  .hero-orb.orb-3 { width: 200px; height: 200px; }
  .home-hero-title {
    font-size: clamp(3.25rem, 17vw, 5.25rem);
  }
  .home-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }
  .home-proof-item {
    min-height: 104px;
    padding: 16px;
  }
  .home-showcase {
    display: grid;
    gap: 12px;
    min-height: auto;
    margin-top: 8px;
  }
  .home-showcase-main,
  .home-showcase-secondary,
  .home-showcase-portrait,
  .showcase-badge {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }
  .home-showcase-main {
    aspect-ratio: 16 / 11;
    border-radius: 16px;
  }
  .home-showcase-secondary,
  .home-showcase-portrait {
    display: none;
  }
  .showcase-badge {
    max-width: none;
    justify-content: center;
    border-radius: 14px;
  }
  .home-scroll-cue {
    display: none;
  }
  .page-hero {
    min-height: auto;
  }
  .page-hero-title {
    font-size: clamp(2.8rem, 14vw, 4.6rem);
  }
  .page-hero-visual {
    min-height: 280px;
    aspect-ratio: 16 / 11;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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