/* ========================================
   KRH Build Ltd v2
   Silver Pinewood design language
   ======================================== */

/* ----------------------------------------
   1. Reset + Custom Properties
   ---------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --c-gray: #282828;
  --c-gray-rgb: 40, 40, 40;
  --c-light: #f0eae2;
  --c-light-rgb: 240, 234, 226;
  --c-beige: #ba8f71;
  --c-beige-rgb: 186, 143, 113;
  --c-beige-bg: #998170;
  --c-beige-bg-rgb: 153, 129, 112;
  --c-white: #fff;
  --c-white-rgb: 255, 255, 255;

  --font: 'DM Sans', -apple-system, sans-serif;
  --ease-primary: cubic-bezier(0.7, 0, 0.4, 1);
  --ease-secondary: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --spacing: 40px;
  --spacing-layout: 30px;
}


/* ----------------------------------------
   2. Theme System
   ---------------------------------------- */

/* Default theme tokens (light) */
.ui-dark, .ui-light, .ui-brown, :root {
  --t-background: var(--c-light);
  --t-background-rgb: var(--c-light-rgb);
  --t-text: var(--c-gray);
  --t-text-rgb: var(--c-gray-rgb);
  --t-heading: var(--c-gray);
  --t-heading-rgb: var(--c-gray-rgb);
  --t-primary: var(--c-beige);
  --t-primary-rgb: var(--c-beige-rgb);
  --t-small: rgba(var(--c-gray-rgb), 0.5);
  --t-line: var(--c-gray);
  --t-line-light: rgba(var(--c-gray-rgb), 0.2);
}

.ui-dark {
  --t-background: var(--c-gray);
  --t-background-rgb: var(--c-gray-rgb);
  --t-text: var(--c-white);
  --t-text-rgb: var(--c-white-rgb);
  --t-heading: var(--c-white);
  --t-heading-rgb: var(--c-white-rgb);
  --t-small: rgba(var(--c-white-rgb), 0.4);
  --t-line: var(--c-light);
  --t-line-light: rgba(var(--c-light-rgb), 0.2);
}

.ui-brown {
  --t-background: var(--c-beige-bg);
  --t-background-rgb: var(--c-beige-bg-rgb);
  --t-text: var(--c-gray);
  --t-text-rgb: var(--c-gray-rgb);
  --t-heading: var(--c-gray);
  --t-heading-rgb: var(--c-gray-rgb);
  --t-primary: var(--c-light);
  --t-small: rgba(var(--c-gray-rgb), 0.5);
  --t-line: var(--c-gray);
  --t-line-light: rgba(var(--c-gray-rgb), 0.2);
}

.ui-light { color: var(--t-text); }
.ui-background { background-color: var(--t-background); }


/* ----------------------------------------
   3. Base Styles
   ---------------------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-gray);
  background: var(--c-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.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;
}


/* ----------------------------------------
   4. Typography Scale
   ---------------------------------------- */
.title-hero {
  font-size: clamp(60px, 8vw, 130px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--t-heading);
}

.title-section {
  font-size: clamp(36px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--t-heading);
}

.title-large {
  font-size: clamp(24px, 3.5vw, 57px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--t-heading);
}

.text-body {
  font-size: clamp(10px, 1vw, 12px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--t-text);
}

.text-small {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--t-small);
}

.text-accent { color: var(--t-primary); }


/* ----------------------------------------
   5. Header
   ---------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--spacing-layout);
  pointer-events: none;
}

.header > * { pointer-events: auto; }

.header__logo {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.8s var(--ease-primary), transform 0.8s var(--ease-primary);
}

.header--sticky .header__logo {
  opacity: 1;
  transform: translateY(0);
}

.header__logo-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--c-white);
  display: block;
}

.header--on-light .header__logo-text {
  color: var(--c-gray);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__callback,
.header__menu {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-white);
  background: none;
  border: none;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.header--on-light .header__callback,
.header--on-light .header__menu {
  color: var(--c-gray);
}


/* ----------------------------------------
   6. Button Clone Hover (slot-machine)
   ---------------------------------------- */
.btn--cloned {
  position: relative;
  display: inline-block;
  overflow: hidden;
  cursor: pointer;
}

.btn--cloned .btn__text {
  display: inline-block;
  position: relative;
}

.btn--cloned .btn__text--clone {
  position: absolute;
  top: 0;
  left: 0;
  visibility: visible;
}

.btn--cloned .btn__text .char,
.btn--cloned .btn__text--clone .char {
  display: inline-block;
  transition: transform 0.5s var(--ease-primary), clip-path 0.5s var(--ease-primary);
  will-change: transform, clip-path;
}

/* Visible text: shown by default */
.btn--cloned .btn__text .char {
  clip-path: polygon(-100% 0, 200% 0, 200% 105%, -100% 105%);
}

/* Clone text: hidden below */
.btn--cloned .btn__text--clone .char {
  clip-path: polygon(-100% -150%, 200% -150%, 200% -45%, -100% -45%);
  transform: translateY(150%);
}

/* Hover: visible exits up, clone enters from below */
.btn--cloned:hover .btn__text .char {
  clip-path: polygon(-100% 145%, 200% 145%, 200% 255%, -100% 255%);
  transform: translateY(-150%);
}

.btn--cloned:hover .btn__text--clone .char {
  clip-path: polygon(-100% -5%, 200% -5%, 200% 105%, -100% 105%);
  transform: translateY(0);
}

/* Per-character stagger delay */
.btn--cloned .btn__text .char,
.btn--cloned .btn__text--clone .char {
  transition-delay: calc(var(--char-index, 0) * 15ms);
}


/* ----------------------------------------
   7. Hero / Intro Section
   ---------------------------------------- */
.intro {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-layout);
  color: var(--c-white);
}

.intro__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.intro__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro__background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.intro__title {
  position: relative;
  z-index: 1;
  transform-origin: 0 0;
  will-change: transform;
  /* Size set by .title-hero class */
}

.intro__subtitle {
  position: absolute;
  bottom: var(--spacing-layout);
  right: var(--spacing-layout);
  z-index: 1;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--c-white);
  text-align: right;
}

.intro__arrow {
  position: absolute;
  bottom: var(--spacing-layout);
  left: var(--spacing-layout);
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
}

.intro__arrow:hover { border-color: var(--c-white); }

.intro__arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--c-white);
  stroke-width: 1.5;
}


/* ----------------------------------------
   8. Section Base — Sticky Overlapping (Silver Pinewood)
   ---------------------------------------- */
.section {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1;
}

/* Stack sections: each subsequent section overlaps the previous */
section:nth-of-type(1) { z-index: 1; }  /* intro/hero */
section:nth-of-type(2) { z-index: 2; }  /* about */
section:nth-of-type(3) { z-index: 3; }  /* services */
section:nth-of-type(4) { z-index: 4; }  /* work */
section:nth-of-type(5) { z-index: 5; }  /* process */
section:nth-of-type(6) { z-index: 6; }  /* testimonials */
section:nth-of-type(7) { z-index: 7; }  /* contact */

/* Scroll dwell — varied per section height. Tall sections (services,
   gallery) need less dwell; short sections need more. */
#about        { padding-bottom: 40vh; }  /* medium content */
#services     { padding-bottom: 20vh; }  /* already tall — 5 rows */
#work         { padding-bottom: 15vh; }  /* gallery is very tall */
#process      { padding-bottom: 45vh; }  /* short content, needs dwell */
#testimonials { padding-bottom: 40vh; }  /* short content */
#contact      { padding-bottom: 10vh; }  /* near bottom, minimal dwell */

/* Depth shadow on top edge of overlapping sections */
.section + .section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.20), transparent);
  z-index: 10;
  pointer-events: none;
}

/* Hero stays fixed behind, not sticky */
.intro {
  position: relative;
  z-index: 0;
}

/* Footer and lightbox/menu scroll normally */
.footer {
  position: relative;
  z-index: 8;
}

.section__inner {
  padding: var(--spacing) var(--spacing-layout);
  max-width: 100%;
}

.section__padding {
  padding: 120px var(--spacing-layout);
}

/* Sticky parallax */
.sticky {
  display: grid;
  grid-auto-rows: 1fr;
  grid-template-areas: "sticky_content";
  grid-template-columns: 1fr;
}

.sticky__layer {
  grid-area: sticky_content;
  align-self: start;
  min-width: 0;
  position: relative;
}

.sticky__layer--sticky {
  position: sticky;
  top: 0;
}

.sticky__spacer {
  height: 100vh;
}


/* ----------------------------------------
   9. About Section
   ---------------------------------------- */
.about {
  padding: 120px var(--spacing-layout) 80px;
}

.about__text {
  max-width: 80%;
  margin-bottom: 80px;
}

.about__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.about__images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__body {
  max-width: 600px;
  margin-top: 40px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--t-small);
}


/* ----------------------------------------
   10. Services Section
   ---------------------------------------- */
.services {
  padding: 120px var(--spacing-layout);
}

.service-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--t-line-light);
}

.service-row:first-child {
  border-top: 1px solid var(--t-line-light);
}

.service-name {
  flex: 1;
}

.service-desc {
  flex: 0 0 280px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--t-small);
  text-align: right;
}


/* ----------------------------------------
   11. Work / Gallery Section
   ---------------------------------------- */
.gallery {
  padding: 120px 0 0;
}

.gallery__header {
  padding: 0 var(--spacing-layout) 60px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  padding: 0;
}

/* Varied grid items */
.gallery__item { position: relative; overflow: hidden; cursor: pointer; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-secondary); }
.gallery__item:hover img { transform: scale(1.05); }

.gallery__item--full { grid-column: span 12; }
.gallery__item--half { grid-column: span 6; }
.gallery__item--third { grid-column: span 4; }
.gallery__item--two-thirds { grid-column: span 8; }

.gallery__item img { aspect-ratio: 16 / 9; }
.gallery__item--half img { aspect-ratio: 4 / 3; }
.gallery__item--third img { aspect-ratio: 1 / 1; }

/* Image hover overlay */
.gallery__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px var(--spacing-layout);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--c-white);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-primary), transform 0.4s var(--ease-primary);
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery__overlay-title {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.gallery__overlay-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}


/* ----------------------------------------
   12. Process Section
   ---------------------------------------- */
.process {
  padding: 120px var(--spacing-layout);
}

.process__heading {
  margin-bottom: 80px;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.process__item {
  padding: 32px 0;
  border-top: 1px solid var(--t-line-light);
}

.process__num {
  font-size: 14px;
  color: var(--t-primary);
  margin-bottom: 16px;
}

.process__item-title {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.02em;
  color: var(--t-heading);
  margin-bottom: 12px;
}

.process__item-text {
  font-size: 11px;
  line-height: 1.6;
  color: var(--t-small);
}


/* ----------------------------------------
   13. Testimonials Section
   ---------------------------------------- */
.testimonials {
  padding: 120px var(--spacing-layout);
  text-align: center;
}

.testimonial-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-slide {
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-quote {
  font-size: clamp(20px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-style: italic;
  text-transform: none;
  color: var(--t-heading);
  margin-bottom: 40px;
}

.testimonial-quote::before {
  content: '\201C';
  display: block;
  font-size: 72px;
  line-height: 0.5;
  color: var(--t-primary);
  font-style: normal;
  margin-bottom: 24px;
}

.testimonial-author {
  font-size: 12px;
  font-weight: 500;
  color: var(--t-heading);
  letter-spacing: 0.04em;
}

.testimonial-location {
  font-size: 10px;
  color: var(--t-small);
  margin-top: 4px;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--t-small);
  background: transparent;
  padding: 0;
  transition: background 0.3s, border-color 0.3s;
}

.testimonial-dot.active {
  background: var(--t-primary);
  border-color: var(--t-primary);
}


/* ----------------------------------------
   14. Contact Section
   ---------------------------------------- */
.contact {
  padding: 120px var(--spacing-layout);
}

.contact__heading {
  margin-bottom: 80px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
}

/* Floating label form (SP style) */
.form-control {
  position: relative;
  margin-bottom: 32px;
}

.form-control input,
.form-control textarea {
  width: 100%;
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--t-line-light);
  padding: 16px 0 12px;
  color: var(--t-text);
  outline: none;
  transition: border-color 0.3s;
}

.form-control input:focus,
.form-control textarea:focus {
  border-bottom-color: var(--t-primary);
}

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

.form-label {
  position: absolute;
  top: 16px;
  left: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--t-small);
  transition: transform 0.3s var(--ease-secondary), font-size 0.3s;
  pointer-events: none;
  transform-origin: 0 0;
}

.form-control input:focus ~ .form-label,
.form-control input:not(:placeholder-shown) ~ .form-label,
.form-control textarea:focus ~ .form-label,
.form-control textarea:not(:placeholder-shown) ~ .form-label {
  transform: translateY(-24px) scale(0.75);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--c-beige-bg);
  color: var(--c-light);
  font-family: var(--font);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s var(--ease-primary);
  margin-top: 16px;
}

.form-submit:hover { background: var(--c-gray); }

/* Contact info sidebar */
.contact__info {
  padding-top: 16px;
}

.contact__detail {
  margin-bottom: 32px;
}

.contact__detail-label {
  font-size: 10px;
  color: var(--t-small);
  margin-bottom: 8px;
}

.contact__detail a,
.contact__detail p {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--t-text);
  line-height: 1.5;
}

.contact__detail a:hover { color: var(--t-primary); }


/* ----------------------------------------
   15. Footer
   ---------------------------------------- */
.footer {
  padding: 60px var(--spacing-layout) 30px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__col p,
.footer__col a {
  font-size: 12px;
  color: rgba(var(--c-white-rgb), 0.5);
  display: block;
  margin-bottom: 6px;
  line-height: 1.5;
}

.footer__col a:hover { color: var(--c-beige); }

.footer__credit {
  padding: 20px 0;
  border-top: 1px solid rgba(var(--c-white-rgb), 0.08);
  text-align: center;
}

.footer__credit a {
  font-size: 11px;
  color: rgba(var(--c-white-rgb), 0.3);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.footer__credit a:hover { color: var(--c-beige); }

.footer__bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(var(--c-white-rgb), 0.08);
  font-size: 10px;
  color: rgba(var(--c-white-rgb), 0.25);
}


/* ----------------------------------------
   16. Character Title Animation
   ---------------------------------------- */
.animation--title .char {
  display: inline-block;
  transition: transform 0.8s var(--ease-primary), opacity 0.8s var(--ease-primary);
  transition-delay: calc(var(--char-index, 0) * 10ms);
}

.animation--title--inactive .char {
  opacity: 0;
  transform: translateY(110%);
}

/* Words need overflow hidden to clip chars during animation */
.animation--title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}


/* ----------------------------------------
   17. Text Block Reveal Animation
   ---------------------------------------- */
.animation--text,
.animation--text .line {
  transition: transform 1.2s var(--ease-secondary);
}

.animation--text .line {
  display: block;
  overflow: hidden;
  transform-origin: 0 0;
}

.animation--text--inactive .line {
  transform: translateY(160%) rotate(6deg);
}


/* ----------------------------------------
   18. General Reveal (simple fade-up)
   ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-primary), transform 0.8s var(--ease-primary);
}

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


/* ----------------------------------------
   19. Lightbox
   ---------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s 0.1s, transform 0.4s 0.1s var(--ease-secondary);
}

.lightbox.active .lightbox-content img {
  opacity: 1;
  transform: scale(1);
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  letter-spacing: 0.04em;
}

.lightbox-counter {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
  z-index: 2;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: none;
  border: none;
  color: var(--c-white);
  font-size: 28px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--c-white);
  font-size: 24px;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s, background 0.2s;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}


/* ----------------------------------------
   20. Menu Overlay
   ---------------------------------------- */
.menu-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--c-gray);
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-layout);
  transform: translateX(100%);
  transition: transform 0.8s var(--ease-secondary);
}

.menu-modal.active {
  transform: translateX(0);
}

.menu-modal__close {
  position: absolute;
  top: var(--spacing-layout);
  right: var(--spacing-layout);
  background: none;
  border: none;
  color: var(--c-white);
  font-size: 28px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.menu-modal__close:hover { opacity: 1; }

.menu-modal__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-modal__nav a {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.04em;
  color: var(--c-white);
  line-height: 1.1;
  transition: color 0.3s;
}

.menu-modal__nav a:hover { color: var(--c-beige); }


/* ----------------------------------------
   21. Blog Styles (for separate blog pages)
   ---------------------------------------- */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--c-white);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.15) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 60px var(--spacing-layout);
}

.page-hero__label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-beige);
  margin-bottom: 12px;
}

.page-hero__title {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
}

/* Blog grid, cards, articles — kept from v1 patterns */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px var(--spacing-layout) 100px;
}

.blog-card {
  background: var(--c-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s, transform 0.3s;
}

.blog-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.blog-card-image { height: 220px; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-secondary); }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body { padding: 28px 24px; }
.blog-card-date { font-size: 10px; color: var(--t-small); margin-bottom: 12px; }
.blog-card-title { font-size: 18px; letter-spacing: -0.02em; color: var(--c-gray); margin-bottom: 12px; line-height: 1.3; }
.blog-card-excerpt { font-size: 11px; line-height: 1.6; color: var(--t-small); margin-bottom: 20px; text-transform: none; }
.blog-card-link { font-size: 11px; color: var(--c-beige); }

/* Blog article */
.blog-article { max-width: 760px; margin: 0 auto; padding: 40px var(--spacing-layout) 80px; }
.blog-breadcrumb { max-width: 760px; margin: 0 auto; padding: 32px var(--spacing-layout) 0; font-size: 11px; color: var(--t-small); }
.blog-breadcrumb a { color: var(--t-small); transition: color 0.2s; }
.blog-breadcrumb a:hover { color: var(--c-beige); }
.blog-meta { font-size: 11px; color: var(--t-small); margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.blog-content h2 { font-size: 24px; letter-spacing: -0.02em; color: var(--c-gray); margin: 48px 0 16px; line-height: 1.3; }
.blog-content h3 { font-size: 18px; letter-spacing: -0.02em; color: var(--c-gray); margin: 32px 0 12px; }
.blog-content p { font-size: 14px; line-height: 1.8; color: rgba(var(--c-gray-rgb), 0.7); margin-bottom: 20px; text-transform: none; letter-spacing: 0; }
.blog-content ul, .blog-content ol { font-size: 14px; line-height: 1.8; color: rgba(var(--c-gray-rgb), 0.7); margin: 0 0 20px 24px; text-transform: none; letter-spacing: 0; }
.blog-content li { margin-bottom: 8px; }
.blog-content strong { color: var(--c-gray); font-weight: 600; }
.blog-cta { background: var(--c-light); padding: 48px 40px; text-align: center; margin: 60px 0; }
.blog-cta h3 { font-size: 24px; letter-spacing: -0.02em; color: var(--c-gray); margin-bottom: 12px; }
.blog-cta p { font-size: 13px; color: rgba(var(--c-gray-rgb), 0.6); margin-bottom: 24px; text-transform: none; letter-spacing: 0; }
.blog-cta a { display: inline-block; padding: 14px 36px; background: var(--c-gray); color: var(--c-light); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; transition: background 0.2s; }
.blog-cta a:hover { background: var(--c-beige); }
.blog-related { background: var(--c-light); padding: 80px var(--spacing-layout); }
.blog-related-header { text-align: center; margin-bottom: 40px; }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1280px; margin: 0 auto; }


/* ----------------------------------------
   22. Responsive
   ---------------------------------------- */
/* ----------------------------------------
   Parallax Image Effect
   ---------------------------------------- */
.parallax-img {
  will-change: transform;
  transition: transform 0.1s linear;
}


/* ----------------------------------------
   22. Responsive — Tablet
   ---------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --spacing: 30px;
    --spacing-layout: 20px;
  }

  .about__text { max-width: 100%; margin-bottom: 40px; }
  .about__images { grid-template-columns: 1fr; }

  .service-row { flex-direction: column; gap: 8px; padding: 16px 0; }
  .service-desc { flex: auto; text-align: left; }

  .gallery__item--third { grid-column: span 6; }
  .gallery__item--two-thirds { grid-column: span 12; }

  .process__grid { grid-template-columns: 1fr; }

  .contact__grid { grid-template-columns: 1fr; gap: 40px; }

  .page-hero { height: 40vh; min-height: 280px; }
  .page-hero__content { padding: 40px var(--spacing-layout); }

  .blog-grid { grid-template-columns: 1fr; padding: 60px var(--spacing-layout); }
  .blog-related-grid { grid-template-columns: 1fr; }
}


/* ----------------------------------------
   23. Responsive — Mobile (like Silver Pinewood)
   ---------------------------------------- */
@media (max-width: 640px) {
  :root {
    --spacing: 20px;
    --spacing-layout: 16px;
  }

  /* --- Header: show CONTACT US like SP mobile --- */
  .header__callback { display: inline-block !important; }
  .header__callback,
  .header__menu {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .header__right { gap: 20px; }
  .header__logo-text { font-size: 9px; }

  /* Disable sticky overlapping on mobile — scrolls normally */
  .section {
    position: relative;
  }
  #about, #services, #work, #process, #testimonials, #contact {
    padding-bottom: 0;
  }
  .section + .section::before {
    display: none;
  }

  /* --- Hero: title at ~50% so morph-to-logo animation is visible --- */
  .intro {
    height: 100dvh;
    justify-content: center;
    padding-top: 0;
    padding-bottom: var(--spacing-layout);
  }

  .title-hero {
    font-size: clamp(42px, 13vw, 64px);
    line-height: 0.9;
  }

  /* Subtitle: pinned safely inside viewport with generous clearance */
  .intro__subtitle {
    position: absolute;
    bottom: calc(var(--spacing-layout) + 24px);
    right: var(--spacing-layout);
    font-size: 22px;
    text-align: right;
  }

  .intro__arrow {
    width: 32px;
    height: 32px;
  }

  /* --- About: compact --- */
  .about {
    padding: 48px var(--spacing-layout) 36px;
  }
  .about__text { margin-bottom: 28px; }
  .about__body {
    margin-top: 24px;
    font-size: 11px;
  }
  .title-large {
    font-size: clamp(22px, 6vw, 36px);
    line-height: 1.05;
  }

  /* --- Services: compact --- */
  .services { padding: 48px var(--spacing-layout); }
  .title-section { font-size: clamp(32px, 10vw, 48px); }

  /* --- Gallery: single column --- */
  .gallery { padding-top: 48px; }
  .gallery__header { padding-bottom: 24px; }
  .gallery__item--half { grid-column: span 12; }
  .gallery__item--third { grid-column: span 12; }
  .gallery__item--two-thirds { grid-column: span 12; }

  /* --- Process: COMPACT like SP --- */
  .process {
    padding: 48px var(--spacing-layout) 36px;
  }
  .process__heading { margin-bottom: 24px; }
  .process__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process__item {
    padding: 20px 0;
  }
  .process__num { margin-bottom: 8px; font-size: 12px; }
  .process__item-title { font-size: 16px; margin-bottom: 8px; }
  .process__item-text { font-size: 10px; line-height: 1.5; }

  /* --- Testimonials: compact --- */
  .testimonials { padding: 48px var(--spacing-layout); }
  .testimonial-quote { font-size: 18px; margin-bottom: 24px; }
  .testimonial-quote::before { font-size: 48px; margin-bottom: 16px; }
  .testimonial-nav { margin-top: 28px; }

  /* --- Contact: COMPACT --- */
  .contact { padding: 48px var(--spacing-layout) 36px; }
  .contact__heading { margin-bottom: 24px; }
  .contact__grid { gap: 32px; }
  .form-control { margin-bottom: 20px; }
  .form-control input,
  .form-control textarea { font-size: 12px; padding: 12px 0 8px; }
  .form-submit { padding: 12px 24px; font-size: 11px; }
  .contact__detail { margin-bottom: 20px; }
  .contact__detail a,
  .contact__detail p { font-size: 12px; }

  /* --- Footer: COMPACT --- */
  .footer { padding: 36px var(--spacing-layout) 20px; }
  .footer__inner { flex-direction: column; gap: 16px; margin-bottom: 24px; }
  .footer__credit { padding: 12px 0; }
  .footer__bottom { padding-top: 12px; }

  /* --- Menu overlay --- */
  .menu-modal__nav a { font-size: clamp(28px, 8vw, 48px); }
}
