/* ===========================
   DESIGN TOKENS
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&family=Inter:wght@300;400;500&family=Nunito+Sans:wght@300;400;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --white: #FFFFFF;
  --black: #0D0D0D;
  --cream: #F5F3EF;
  --gray-light: #E8E6E1;
  --gray-mid: #9A9A9A;
  --gray-dark: #3A3A3A;
  --accent: #111;
  --font-h: 'Jost', sans-serif;
  --font-b: 'Inter', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --header-height: 65px;
  --header-height-mobile: 52px;
  --home-hero-height: clamp(400px, 52vh, 560px);
}

/* ===========================
   RESET & BASE
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-b);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-h);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3.75rem, 6vw, 5.625rem);
  /* 60px–90px */
}

h2 {
  font-size: clamp(1.875rem, 4vw, 3.125rem);
  /* 30px–50px */
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  /* ~19px–28px */
}

p {
  line-height: 1.75;
  font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
  /* 15px–18px */
  color: var(--gray-dark);
  font-weight: 300;
}

.section-label {
  font-family: var(--font-h);
  font-size: 0.75rem;
  /* 12px */
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1.2rem;
}

/* ===========================
   LAYOUT UTILITIES
=========================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
}

.section-pad {
  padding: 120px 0;
}

.section-pad-sm {
  padding: 80px 0;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-h);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid currentColor;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  z-index: 0;
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn span {
  position: relative;
  z-index: 1;
  transition: color 0.35s var(--ease);
}

.btn-dark {
  color: var(--black);
}

.btn-dark:hover span {
  color: var(--white);
}

.btn-light {
  color: var(--white);
}

.btn-light:hover span {
  color: var(--black);
}

.btn-accent {
  color: var(--accent);
}

/* Arrow icon */
.btn-arrow::after {
  content: '→';
  font-size: 1rem;
  position: relative;
  z-index: 1;
  transition: transform 0.3s var(--ease), color 0.35s var(--ease);
}

.btn-dark.btn-arrow:hover::after {
  color: var(--white);
  transform: translateX(4px);
}

/* ===========================
   TOP BAR — hero state (left aligned logo)
=========================== */
#top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30px 40px;
  pointer-events: none;
  transition: opacity 0.15s var(--ease);
}

#top-bar.hidden {
  opacity: 0;
  pointer-events: none;
}

.site-logo {
  font-family: var(--font-b);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--white);
  pointer-events: all;
  transition: color 0.4s;
  line-height: 1;
  text-decoration: none;
}

.site-logo strong {
  font-weight: 700;
}

.site-logo span {
  font-weight: 400;
}

/* Logo Images */
.logo-img {
  height: 64px;
  width: auto;
  display: block;
}

/* .logo-img--hero { filter: brightness(0); } Removed to show natural logo colors */

.logo-img--footer {
  height: 120px;
}

.logo-img--sticky {
  height: 56px;
}

/* Circle button — floats over hero, hides when sticky header appears */
.circle-btn {
  position: fixed;
  top: 26px;
  right: 40px;
  z-index: 1002;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, opacity 0.15s;
  pointer-events: all;
  display: none !important;
  align-items: center;
  justify-content: center;
}

.circle-btn:hover {
  border-color: var(--white);
  transform: scale(1.1);
}

.circle-btn.dark {
  border-color: rgba(0, 0, 0, 0.45);
}

.circle-btn.dark:hover {
  border-color: var(--black);
}

/* Hide floating circle when sticky bar is visible (sticky bar has its own) */
.circle-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===========================
   STICKY HEADER — unified across all pages
   Layout: [Logo LEFT] [Nav LEFT] [Circle RIGHT]
=========================== */
#sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0 48px;
  height: var(--header-height);
  /* Slide-up/slide-down + fade transition */
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease), border-color 0.3s var(--ease);
  pointer-events: all;
}

/* Hide bottom border when at the very top of the page */
#sticky-header.nav-at-top {
  border-bottom-color: transparent;
}

/* Hidden state — used by JS on home & about pages at page-top */
#sticky-header.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Sticky logo (left) */
.sticky-logo {
  font-family: var(--font-h);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: var(--black);
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0;
  margin-right: 24px;
}


.sticky-logo strong {
  font-weight: 700;
}

.sticky-logo span {
  font-weight: 300;
}

/* Sticky nav — sits left, directly after logo separator */
.sticky-nav {
  display: flex;
  align-items: center;
  gap: 0;
  pointer-events: all;
}

.sticky-nav li {
  display: flex;
  align-items: center;
  /* No divider lines */
}

/* Remove all pipe separators */
.sticky-nav li::before {
  display: none;
}

.sticky-nav li a {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(0, 0, 0, 0.55);
  padding: 0 26px;
  transition: color 0.25s var(--ease);
  text-transform: lowercase;
  white-space: nowrap;
  line-height: var(--header-height);
  display: block;
  position: relative;
}

/* Indicator on the left (vertical line drawn bottom to top) */
.sticky-nav li a::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  margin-top: -8px;
  width: 1.5px;
  height: 16px;
  background-color: var(--black);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky-nav li.active a::before,
.sticky-nav li a:hover::before {
  transform: scaleY(1);
}

/* Remove old ::after indicator */
.sticky-nav li a::after {
  display: none;
}

.sticky-nav li.active a {
  color: var(--black);
  font-weight: 500;
}

.sticky-nav li a:hover {
  color: var(--black);
}

/* Main content offset below fixed header (inner pages) */
.main-below-header {
  padding-top: calc(var(--header-height) + 52px);
}

/* Circle button — right slot, matches reference image */
.sticky-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.35);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.3s, transform 0.3s;
  display: none !important;
  /* hidden everywhere */
  align-items: center;
  justify-content: center;
}

.sticky-circle:hover {
  border-color: var(--black);
  transform: scale(1.1);
}

/* Sticky Action Button (Right) — kept for pages that use it */
.sticky-btn {
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 24px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  transition: all 0.35s var(--ease);
  flex-shrink: 0;
  display: inline-block;
  line-height: 1;
}

.sticky-btn:hover {
  background: transparent;
  color: var(--black);
}

@media (max-width: 600px) {
  .sticky-btn {
    display: none;
  }
}

/* ===========================
   HERO SLIDER
/* ===========================
   HERO SPLIT SCREEN
=========================== */
#hero.split-view {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  overflow: hidden;
  background: var(--black);
}

.split-half {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.split-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.4s ease;
}

.split-half:hover .split-bg {
  filter: grayscale(100%);
}

.filter-dark {
  filter: brightness(0.6) grayscale(50%);
}

.split-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  transition: background 0.4s ease;
}

.split-overlay.dark {
  background: rgba(0, 0, 0, 0.4);
}

.split-half:hover .split-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.vert-text {
  position: absolute;
  top: 50%;
  font-family: var(--font-b);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s var(--ease);
}

.vert-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.vert-text:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.vert-left {
  left: 40px;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center center;
}

.vert-right {
  right: 40px;
  top: 50%;
  transform: translate(50%, -50%) rotate(90deg);
  transform-origin: center center;
}



.center-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 100;
  pointer-events: none;
}

.center-logo-img {
  max-width: 280px;
  height: auto;
  display: block;
  /* Meadow Mist 936 (#EAEAD8) color filter */
  filter: brightness(0) invert(92%) sepia(10%) saturate(400%) hue-rotate(30deg);
  opacity: 1;
}

.hero-topleft-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  pointer-events: all;
}

.hero-topleft-logo-img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(92%) sepia(10%) saturate(400%) hue-rotate(30deg);
}

@media (max-width: 768px) {
  .hero-topleft-brand {
    display: none;
  }
}

@media (max-width: 900px) {
  #hero.split-view {
    flex-direction: column;
  }
}



/* ===========================
   ABOUT / INTRO
=========================== */
#about {
  background: var(--white) url('../images/sketch-bg.png') no-repeat 65% center;
  background-size: 45%;
  background-blend-mode: multiply;
  overflow: hidden;
  padding: 80px 0;
}

.new-about-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
}

.new-about-text {
  flex: 1;
  z-index: 2;
  padding-right: 20px;
}

.about-slideshow {
  flex: 0 0 540px;
  height: 320px;
  position: relative;
  z-index: 3;
  margin-right: 0;
  margin-top: 0;
  overflow: hidden;
}

.about-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background: transparent;
  will-change: opacity;
}

.about-slide.active {
  opacity: 1;
}

.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
}

.new-section-label {
  font-family: var(--font-b);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  display: block;
  margin-bottom: 1.2rem;
}

.new-about-heading {
  font-family: var(--font-b);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 1.8rem;
  letter-spacing: -0.03em;
  max-width: 95%;
}

.new-read-more {
  font-family: var(--font-b);
  font-size: 0.85rem;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-transform: lowercase;
  opacity: 0.8;
}

.new-about-bottom {
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.new-about-links {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.new-about-links a {
  font-family: var(--font-b);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 6px;
  letter-spacing: -0.01em;
}

.new-about-col {
  flex: 1;
}

.new-about-col h3 {
  font-family: var(--font-b);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.new-about-col p {
  font-family: var(--font-b);
  font-size: 0.95rem;
  color: var(--gray-dark);
  line-height: 1.6;
  font-weight: 400;
  max-width: 320px;
}

/* ===========================
   SERVICES (VERTICAL TABS)
=========================== */
#services {
  background: var(--white);
}

.services-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 70px;
}

.services-header h2 {
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.services-tabs {
  display: flex;
  flex-direction: column;
}

.tab-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-light);
  cursor: pointer;
  transition: all 0.3s;
}

.tab-item:first-child {
  border-top: 1px solid var(--gray-light);
}

.tab-num {
  font-family: var(--font-h);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-mid);
  letter-spacing: 0.1em;
  padding-top: 4px;
  transition: color 0.3s;
}

.tab-title {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 300;
  transition: color 0.3s;
}

.tab-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--gray-light);
  transition: all 0.3s;
  padding-top: 3px;
}

.tab-item.active .tab-num,
.tab-item:hover .tab-num {
  color: var(--accent);
}

.tab-item.active .tab-title,
.tab-item:hover .tab-title {
  color: var(--black);
}

.tab-item.active .tab-arrow {
  color: var(--accent);
  transform: translateX(6px);
}

.services-panel {
  position: sticky;
  top: 120px;
}

.panel-content {
  display: none;
  animation: fadeSlideUp 0.5s var(--ease);
}

.panel-content.active {
  display: block;
}

.panel-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 32px;
}

.panel-img img {
  transition: transform 0.6s var(--ease);
}

.panel-img:hover img {
  transform: scale(1.04);
}

.panel-content h3 {
  margin-bottom: 1rem;
}

.panel-content p {
  color: var(--gray-dark);
  max-width: 440px;
}

/* ===========================
   PROJECTS (OUR WORK SLIDER)
=========================== */
#projects {
  background: #000000;
  padding: 100px 0;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  z-index: 1;
}

.our-work-container {
  display: flex;
  align-items: stretch;
  height: 65vh;
  min-height: 500px;
  max-height: 700px;
  max-width: 100%;
}

.our-work-left {
  flex: 0 0 28%;
  padding: 0 40px 0 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.our-work-label {
  font-family: var(--font-b);
  font-size: 0.75rem;
  /* 12px */
  letter-spacing: 0.18em;
  color: #bbb;
  text-transform: uppercase;
  margin-top: 40px;
}

.our-work-info {
  margin-top: auto;
  margin-bottom: auto;
}

.our-work-title {
  font-family: var(--font-b);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  /* 40px–60px */
  font-weight: 300;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.02em;
  opacity: 1;
  transition: opacity 0.28s ease;
  will-change: opacity;
}

.our-work-cat {
  font-family: var(--font-b);
  font-size: 0.75rem;
  /* 12px */
  letter-spacing: 0.22em;
  color: #bbb;
  text-transform: uppercase;
  opacity: 1;
  transition: opacity 0.28s ease;
  will-change: opacity;
}

.our-work-right {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding-left: 0;
  display: flex;
  flex-direction: column;
}

.our-work-swiper {
  width: 100%;
  height: calc(100% - 60px);
}

.our-work-slide {
  width: 75%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
}


.our-work-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.our-work-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 60px;
  gap: 30px;
  padding-right: 28%;
}

.our-work-nav button {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 300;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-b);
  opacity: 0.8;
  transition: opacity 0.3s;
  letter-spacing: -2px;
  /* To make arrows look longer if they are just characters */
}

.our-work-nav button:hover {
  opacity: 1;
}

/* ===========================
   HORIZONTAL ACCORDION SERVICES
=========================== */
.accordion-section {
  background: var(--white);
  padding: 100px 0;
}

.acc-container {
  display: flex;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  height: 550px;
  align-items: flex-end;
}

.acc-item {
  display: flex;
  flex: 0 0 100px;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  background: var(--white);
  align-items: flex-end;
}

.acc-item.active {
  flex: 1;
}

.acc-header {
  width: 100px;
  min-width: 100px;
  height: 403px;
  min-height: 403px;
  max-height: 403px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 0 0;
  cursor: pointer;
  background: var(--white);
  transition: background 0.3s;
  position: relative;
}

.acc-header:hover {
  background: #fcfcfc;
}

/* Remove the old header line logic to replace with title underline */
.acc-header::before {
  display: none;
}

.acc-icon {
  font-family: var(--font-b);
  font-size: 1.6rem;
  color: #333;
  font-weight: 300;
  transition: opacity 0.3s;
}

.acc-item.active .acc-icon {
  opacity: 0;
}

.acc-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: 'DM Sans', sans-serif;
  font-size: 42px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--black);
  white-space: nowrap;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0 0 20px 0;
  text-transform: capitalize;
  position: relative;
}

.acc-title::after {
  content: '';
  position: absolute;
  top: 0;
  right: -12px;
  width: 1px;
  height: 0;
  background-color: var(--black);
  transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.acc-header:hover .acc-title::after {
  height: 100%;
}

/* If active, keep the line visible */
.acc-item.active .acc-title::after {
  height: 100%;
}

.acc-content {
  display: flex;
  flex: 1;
  opacity: 0;
  min-width: 0;
  transition: opacity 0.4s ease 0.2s;
  pointer-events: none;
}

.acc-item.active .acc-content {
  opacity: 1;
  pointer-events: auto;
}

.acc-img-wrap {
  flex: 0 0 209px;
  width: 209px;
  height: 403px;
  min-width: 209px;
  max-width: 209px;
  min-height: 403px;
  max-height: 403px;
  overflow: hidden;
  align-self: flex-end;
}

.acc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acc-text-wrap {
  flex: 1;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.acc-close {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 2.0rem;
  color: #333;
  cursor: pointer;
  font-weight: 300;
  font-family: var(--font-b);
}

.acc-text-wrap p {
  font-family: var(--font-b);
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 500px;
}

.acc-text-wrap .read-more {
  font-family: var(--font-b);
  font-size: 0.95rem;
  color: var(--black);
  text-decoration: none;
  align-self: flex-start;
  padding-bottom: 4px;
  position: relative;
  display: inline-block;
}

.acc-text-wrap .read-more::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0, 1);
}

.acc-text-wrap .read-more:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

@media (max-width: 900px) {
  .our-work-container {
    flex-direction: column;
  }

  .our-work-left {
    flex: none;
    padding: 0 40px;
    margin-bottom: 40px;
  }

  .our-work-label {
    margin-top: 0;
    margin-bottom: 20px;
    display: block;
  }

  .our-work-right {
    padding-left: 0;
  }

  .our-work-slide {
    width: 90%;
  }
}

/* ===========================
   TEAM SECTION
=========================== */
#team {
  background: #E4E7D5;
  padding: 120px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: auto auto;
  gap: 0;
}

/* Hiroshi-style: fade-in + slide-up animation base state */
.team-cell {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-cell.slide-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays — cascade left to right, row by row */
.team-cell:nth-child(1) {
  transition-delay: 0.00s;
}

.team-cell:nth-child(2) {
  transition-delay: 0.12s;
}

.team-cell:nth-child(3) {
  transition-delay: 0.24s;
}

.team-cell:nth-child(4) {
  transition-delay: 0.36s;
}

.team-cell:nth-child(5) {
  transition-delay: 0.48s;
}

.team-cell:nth-child(6) {
  transition-delay: 0.10s;
}

.team-cell:nth-child(7) {
  transition-delay: 0.22s;
}

.team-cell:nth-child(8) {
  transition-delay: 0.34s;
}

.team-cell:nth-child(9) {
  transition-delay: 0.46s;
}

.team-cell:nth-child(10) {
  transition-delay: 0.58s;
}

/* Photo cells — dark square with B&W portrait */
.team-cell.team-photo {
  background: #E4E7D5;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.team-cell.team-photo img {
  display: block;
  filter: grayscale(100%);
  object-fit: cover;
}

.team-cell.team-photo:hover img {
  filter: grayscale(60%) contrast(1.05);
  transform: scale(1.04);
}

/* Info cells — cream background with name / role / social */
.team-cell.team-info {
  background: #E4E7D5;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.team-name {
  font-family: var(--font-b);
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  font-weight: 400;
  color: #111;
  margin-bottom: 6px;
  line-height: 1.2;
}

.team-role {
  font-family: var(--font-b);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.4;
}

.team-role-accent {
  color: var(--black);
  /* terracotta / rust accent matching reference */
  font-weight: 500;
}

.team-role-plain {
  color: #777;
  font-weight: 400;
}

/* Social icons row */
.team-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #333;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.team-social-icon svg {
  width: 100%;
  height: 100%;
}

.team-social-icon:hover {
  color: var(--black);
  transform: translateY(-2px);
}

/* Jobs panel — spans both rows in column 5 */
.team-cell.team-jobs {
  background: #E4E7D5;
  grid-column: 5 / 6;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  position: relative;
}

/* Thin right border accent (visible in ref image) */
.team-cell.team-jobs::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--black);
}

.team-jobs-link {
  font-family: var(--font-b);
  font-size: 0.85rem;
  color: #333;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(0, 0, 0, 0.35);
  transition: color 0.25s, text-decoration-color 0.25s;
}

.team-jobs-link:hover {
  color: var(--black);
  text-decoration-color: var(--black);
}

/* Empty offset cell — matches Hiroshi's row-2 shift */
.team-cell.team-empty {
  background: #E4E7D5;
  aspect-ratio: 1 / 1;
}

/* Responsive: stack to 2-col on tablet, 1-col on mobile */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .team-cell.team-jobs {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: unset;
    min-height: 160px;
  }

  .team-cell.team-info {
    aspect-ratio: unset;
    min-height: 200px;
    padding: 28px 24px;
  }

  .team-cell.team-photo {
    aspect-ratio: 1 / 1;
  }

  /* Hide empty offset cell on tablet/mobile */
  .team-cell.team-empty {
    display: none;
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-cell.team-photo,
  .team-cell.team-info {
    aspect-ratio: unset;
    min-height: 180px;
  }
}

/* ===========================
   QUOTE BANNER SECTION
=========================== */
#quote-banner {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.08) 45%, rgba(0, 0, 0, 0) 70%),
    url('../../Project%20images/WIN_Facility6.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 549px;
  min-height: 549px;
  max-height: 549px;
  width: 100%;  /* was 1361px — caused horizontal overflow on mobile */
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.quote-banner-content {
  width: 100%;
  max-width: none;
  padding: 0;
}

.quote-banner-content.container {
  padding: 0 48px;
}

.quote-banner-content h2 {
  color: var(--white);
  font-family: var(--font-b);
  font-size: clamp(1.125rem, 1.65vw, 1.375rem);
  font-weight: 300;
  max-width: 420px;
  line-height: 1.55;
  margin: 0;
  padding: 0;
  letter-spacing: 0.01em;
}

/* Hiroshi main-home proportions: compact hero + team visible above fold */


body.home-page #quote-banner {
  height: 549px;
  min-height: 549px;
  max-height: 549px;
  width: 100%;  /* was 1361px — caused horizontal overflow on mobile */
}

body.home-page #team {
  padding-top: 168px;
  padding-bottom: 168px;
}

body.home-page .team-grid {
  grid-template-rows: 200px 200px;
}

body.home-page .team-cell.team-photo,
body.home-page .team-cell.team-info,
body.home-page .team-cell.team-empty {
  aspect-ratio: unset;
  height: 200px;
}

body.home-page .team-cell.team-jobs {
  min-height: 400px;
  height: auto;
}

body.home-page .team-cell.team-info {
  padding: 28px 32px;
}

body.home-page .team-name {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  margin-bottom: 4px;
}

body.home-page .team-role {
  font-size: 0.625rem;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  #quote-banner {
    height: 549px;
    min-height: 549px;
    max-height: 549px;
    width: 100%; /* overflow fix */
  }

  .quote-banner-content.container {
    padding: 0 28px;
  }

  .quote-banner-content h2 {
    max-width: 320px;
    font-size: 1.0625rem;
  }

  body.home-page .team-grid {
    grid-template-rows: auto;
  }

  body.home-page .team-cell.team-photo,
  body.home-page .team-cell.team-info,
  body.home-page .team-cell.team-empty {
    height: auto;
  }
}

/* ===========================
   TESTIMONIALS
=========================== */
#testimonials {
  background: var(--white);
}

.testimonials-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonials-inner .section-label {
  justify-content: center;
  display: flex;
}

.testimonial-text {
  font-family: var(--font-h);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  /* 20px–28px */
  font-weight: 300;
  color: var(--black);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.testimonial-author {
  font-family: var(--font-h);
  color: var(--black);
  font-size: 0.8125rem;
  /* 13px */
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.testimonial-role {
  color: var(--gray-mid);
  font-size: 0.75rem;
  /* 12px */
  margin-top: 4px;
}

.test-pagination {
  margin-top: 40px;
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.test-pagination .swiper-pagination-bullet {
  width: 25px;
  height: 2px;
  background: var(--gray-mid);
  opacity: 0.5;
  border-radius: 0;
  margin: 0 !important;
  transition: background 0.3s, width 0.3s, opacity 0.3s;
}

.test-pagination .swiper-pagination-bullet-active {
  width: 45px;
  background: var(--black);
  opacity: 1;
}

/* ===========================
   REFERENCE JOURNAL SECTION
=========================== */
#ref-journal {
  background: #EDE8E2;
  padding: 80px 0 120px;
}

/* Container with less padding for larger image feel */
#ref-journal .container {
  max-width: 1400px;
  padding: 0 40px;
}

/* Remove header styles as it's being removed from HTML */


/* 4-column grid with smaller gaps */
.ref-journal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 16px;
}

.ref-journal-card {
  display: flex;
  flex-direction: column;
}

.ref-journal-img-wrap {
  margin-bottom: 15px;
  overflow: hidden;
}

.ref-journal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.ref-journal-card:hover .ref-journal-img-wrap img {
  transform: scale(1.04);
}

/* Post content */
.ref-journal-title {
  font-family: var(--font-b);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--black);
  margin-bottom: 12px;
  max-width: 95%;
  letter-spacing: -0.01em;
}

.ref-journal-meta {
  font-family: var(--font-b);
  font-size: 0.68rem;
  font-weight: 500;
  color: #333;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.ref-journal-meta-sep {
  margin: 0 10px;
  color: #aaa;
  font-weight: 300;
}

.ref-journal-meta span:last-child {
  width: 100%;
  margin-top: 6px;
}

/* Specific heights for the asymmetric look — making them taller/larger */
.ref-journal-card:nth-child(1) .ref-journal-img-wrap {
  aspect-ratio: 1.4 / 1;
}

.ref-journal-card:nth-child(2) .ref-journal-img-wrap {
  aspect-ratio: 0.8 / 1;
}

.ref-journal-card:nth-child(3) .ref-journal-img-wrap {
  aspect-ratio: 1.4 / 1;
}

.ref-journal-card:nth-child(4) .ref-journal-img-wrap {
  aspect-ratio: 0.8 / 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .ref-journal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ref-journal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .ref-journal-nav {
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 500px) {
  .ref-journal-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   CTA BANNER
=========================== */
#cta-banner {
  background: var(--white);
  padding: 120px 0;
  text-align: center;
  position: relative;
}

/* Overlay removed for white background */
#cta-banner::before {
  display: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  color: var(--black);
  margin-bottom: 1rem;
}

.cta-inner p {
  color: var(--gray-dark);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

/* ===========================
   FOOTER
=========================== */
#footer {
  background: #FFFFFF;
  border-top: 1px solid #ebebeb;
}

.hs-footer-inner {
  width: 100%;
  padding: 70px 80px 50px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.hs-footer-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
  margin-top: -40px;
  /* Align top of logo with top of column labels */
}

.hs-footer-cols {
  display: flex;
  gap: 80px;
}

.hs-footer-col {
  min-width: 120px;
}

.hs-footer-col-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 20px;
}

.hs-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hs-footer-col ul li a {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  transition: opacity 0.25s;
}

.hs-footer-col ul li a:hover {
  opacity: 0.6;
}

.hs-footer-col address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hs-footer-col address span,
.hs-footer-col address a {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  transition: opacity 0.25s;
}

.hs-footer-col address a:hover {
  opacity: 0.6;
}

.hs-footer-bottom {
  border-top: 1px solid #ebebeb;
  padding: 18px 80px;
}

.hs-footer-bottom p {
  font-family: var(--font-b);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #aaa;
  margin: 0;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .hs-footer-inner {
    flex-direction: column;
    padding: 60px 50px 40px;
    gap: 50px;
  }

  .hs-footer-bottom {
    padding: 18px 50px;
  }
}

@media (max-width: 768px) {
  .hs-footer-inner {
    padding: 40px 30px;
    gap: 40px;
  }

  .hs-footer-cols {
    flex-direction: column;
    gap: 32px;
  }

  .hs-footer-bottom {
    padding: 18px 30px;
  }
}

/* ===========================
   SCROLL REVEAL
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.stagger>* {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.stagger.visible>*:nth-child(1) {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.stagger.visible>*:nth-child(2) {
  opacity: 1;
  transform: none;
  transition-delay: 0.1s;
}

.stagger.visible>*:nth-child(3) {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}

.stagger.visible>*:nth-child(4) {
  opacity: 1;
  transform: none;
  transition-delay: 0.3s;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   BACK TO TOP
=========================== */
#back-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 900;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
}

#back-top.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(-4px);
}

#back-top:hover {
  transform: translateY(-8px);
}

/* ===========================
   HAMBURGER MENU BUTTON
=========================== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s var(--ease);
}

@media (max-width: 768px) {
  /* Show hamburger on ALL pages at mobile widths */
  .hamburger-btn {
    display: flex;
    margin-left: auto; /* push it to the right of the header */
  }

  /* Hide desktop nav links on mobile for ALL pages */
  #sticky-header .sticky-nav {
    display: none !important;
  }

  /* Tighten header padding on mobile and enforce clickability */
  #sticky-header {
    padding: 0 20px;
    pointer-events: auto !important;
  }

  /* Reduce logo margin so it doesn't eat header space */
  .sticky-logo {
    margin-right: 0;
  }
}

/* ===========================
   MOBILE NAV OVERLAY
=========================== */
#mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}

#mobile-nav.open {
  transform: translateX(0);
}

#mobile-nav a {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
}

#mobile-nav a:hover,
#mobile-nav a.active {
  color: var(--accent);
}

#mobile-nav a.active {
  font-weight: 500;
}

#mobile-nav-close {
  position: absolute;
  top: 32px;
  right: 32px;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1100px) {
  .container {
    padding: 0 40px;
  }

  .about-grid {
    gap: 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  #side-nav {
    display: none;
  }

  #top-bar {
    justify-content: flex-start;
    padding: 22px 20px;
  }

  .circle-btn {
    top: 20px;
    right: 20px;
  }

  .hero-caption {
    right: 20px;
    bottom: 90px;
  }

  .hero-pagination {
    left: 20px;
    bottom: 60px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-panel {
    position: static;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card.featured {
    grid-row: span 1;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-pad {
    padding: 80px 0;
  }

  .container {
    padding: 0 30px;
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.4rem;
  }

  .about-badge {
    width: 120px;
    height: 120px;
    right: -15px;
    bottom: -15px;
  }

  .about-badge .num {
    font-size: 2rem;
  }

  .hero-caption {
    right: 16px;
  }

  .hero-caption-title {
    font-size: 1.2rem;
  }
}

/* ===========================
   SHOP PAGE STYLES
=========================== */
.shop-breadcrumb {
  font-size: 0.85rem;
  color: var(--gray-mid);
  margin-bottom: 40px;
  text-transform: capitalize;
}

.shop-breadcrumb a {
  color: var(--black);
  transition: color 0.3s;
}

.shop-breadcrumb a:hover {
  color: var(--accent);
}

.shop-breadcrumb .sep {
  margin: 0 10px;
  color: var(--gray-light);
}

.shop-layout {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

/* Sidebar */
.shop-sidebar {
  width: 250px;
  flex-shrink: 0;
}

.sidebar-widget {
  margin-bottom: 40px;
}

.widget-title {
  font-family: var(--font-b);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.widget-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-list li a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity 0.3s;
}

.widget-list li a:hover {
  opacity: 0.6;
}

.widget-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag-pill {
  font-size: 0.75rem;
  border: 1px solid var(--gray-light);
  padding: 6px 12px;
  color: var(--gray-dark);
  transition: all 0.3s;
}

.tag-pill:hover {
  border-color: var(--black);
  color: var(--black);
}

.price-slider-placeholder {
  width: 100%;
  padding-top: 10px;
}

.slider-track {
  width: 100%;
  height: 10px;
  background: var(--gray-light);
  border-radius: 5px;
  position: relative;
  max-width: 100px;
}

.widget-search .shop-search {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 5px;
}

.widget-search input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.75rem;
  font-family: var(--font-b);
  letter-spacing: 0.08em;
  padding: 5px 0;
  outline: none;
}

.widget-search button {
  position: absolute;
  right: 0;
  color: var(--black);
  cursor: pointer;
}

.sidebar-banner {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
  aspect-ratio: 3/4;
}

.sidebar-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.banner-overlay h4 {
  font-family: var(--font-b);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 15px;
}

.banner-link {
  font-size: 0.8rem;
  text-transform: lowercase;
  border-bottom: 1px solid var(--white);
  padding-bottom: 2px;
  transition: opacity 0.3s;
}

.banner-link:hover {
  opacity: 0.7;
}

/* Main Content */
.shop-content {
  flex: 1;
}

.shop-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid transparent;
}

.result-count {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gray-mid);
  text-transform: uppercase;
}

.sort-dropdown select {
  font-size: 0.8rem;
  font-family: var(--font-b);
  border: none;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  outline: none;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-image {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--cream);
  margin-bottom: 20px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.sale-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--black);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  z-index: 2;
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: 2;
}

.add-to-cart {
  font-size: 0.85rem;
  font-family: var(--font-b);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--black);
  text-transform: lowercase;
}

.product-image:hover img {
  transform: scale(1.05);
}

.product-image:hover .product-overlay {
  opacity: 1;
}

.product-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.product-title {
  font-family: var(--font-b);
  font-size: 0.95rem;
  font-weight: 400;
}

.product-price {
  font-family: var(--font-b);
  font-size: 0.95rem;
  color: var(--gray-mid);
  text-align: right;
}

.product-price del {
  opacity: 0.6;
  margin-right: 5px;
  text-decoration: line-through;
}

.shop-pagination {
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--gray-light);
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

.pagination-links {
  display: flex;
  gap: 20px;
}

.page-num {
  font-size: 0.9rem;
  color: var(--gray-mid);
  transition: color 0.3s;
}

.page-num.active,
.page-num:hover {
  color: var(--black);
}

.page-next {
  color: var(--black);
  display: flex;
  align-items: center;
  margin-left: 20px;
}

@media (max-width: 900px) {
  .shop-layout {
    flex-direction: column;
  }

  .shop-sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
  }

  .sidebar-widget {
    margin-bottom: 0;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-pagination {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   SINGLE PRODUCT PAGE
=========================== */
.product-single-container {
  display: flex;
  gap: 60px;
  margin-bottom: 80px;
}

.product-gallery {
  flex: 1;
  display: flex;
  gap: 20px;
}

.product-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 90px;
  flex-shrink: 0;
}

.product-thumbnails img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.product-thumbnails img.active,
.product-thumbnails img:hover {
  opacity: 1;
}

.product-main-image {
  flex: 1;
  background: var(--cream);
  aspect-ratio: 4/5;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-summary {
  flex: 1;
  padding-top: 10px;
}

.product-single-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 10px;
}

.product-single-price {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gray-dark);
  margin-bottom: 20px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 0.8rem;
}

.product-rating .stars {
  letter-spacing: 2px;
}

.product-rating .review-count {
  color: var(--gray-mid);
}

.product-short-desc {
  margin-bottom: 40px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray-dark);
}

.product-cart-form {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  align-items: center;
}

.quantity-selector {
  display: flex;
  border: 1px solid var(--gray-light);
  height: 50px;
  width: 100px;
}

.quantity-selector input {
  width: 50%;
  border: none;
  text-align: center;
  font-family: var(--font-b);
  font-size: 1rem;
  outline: none;
  background: transparent;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-btns {
  display: flex;
  flex-direction: column;
  width: 50%;
  border-left: 1px solid var(--gray-light);
}

.qty-btn {
  flex: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: var(--gray-dark);
}

.qty-btn:first-child {
  border-bottom: 1px solid var(--gray-light);
}

.qty-btn:hover {
  background: var(--cream);
}

.add-to-cart-btn {
  height: 50px;
  padding: 0 40px;
}

.product-meta {
  border-top: 1px solid var(--gray-light);
  padding-top: 30px;
  margin-bottom: 30px;
}

.meta-row {
  display: flex;
  margin-bottom: 15px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.meta-label {
  width: 100px;
  color: var(--gray-dark);
}

.meta-value {
  color: var(--black);
  text-transform: uppercase;
}

.product-share {
  margin-top: 20px;
}

.product-share a {
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-light);
  border-radius: 50%;
  transition: all 0.3s;
}

.product-share a:hover {
  border-color: var(--black);
}

/* Tabs */
.product-tabs-section {
  margin-bottom: 80px;
}

.product-tabs-nav {
  display: flex;
  gap: 40px;
  justify-content: center;
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 40px;
}

.tab-link {
  font-family: var(--font-b);
  font-size: 1rem;
  color: var(--gray-mid);
  background: none;
  border: none;
  padding-bottom: 20px;
  position: relative;
  cursor: pointer;
  transition: color 0.3s;
}

.tab-link.active,
.tab-link:hover {
  color: var(--black);
}

.tab-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.tab-link.active::after {
  transform: scaleX(1);
}

.product-tabs-content {
  max-width: 900px;
  margin: 0 auto;
}

.tab-pane {
  display: none;
  animation: fadein 0.5s;
}

.tab-pane.active {
  display: block;
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.tab-pane p {
  color: var(--gray-dark);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Related Products */
.related-products-section {
  padding-top: 60px;
  border-top: 1px solid var(--gray-light);
}

.related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.related-header h2 {
  font-size: 1.8rem;
}

.related-nav button {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  color: var(--gray-mid);
  transition: color 0.3s;
}

.related-nav button:hover {
  color: var(--black);
}

@media (max-width: 900px) {
  .product-single-container {
    flex-direction: column;
  }

  .product-gallery {
    flex-direction: column-reverse;
  }

  .product-thumbnails {
    flex-direction: row;
    width: 100%;
  }

  .product-thumbnails img {
    width: 80px;
  }

  .product-tabs-nav {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .tab-link::after {
    display: none;
  }
}

/* ===================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   Hiroshi reference patterns — all pages
   Breakpoints: 1024 / 900 / 768 / 600 / 480px
=================================================== */

/* ── GLOBAL OVERFLOW LOCK ─── */
@media (max-width: 1024px) {
  body {
    overflow-x: hidden;
  }
  img {
    max-width: 100%;
  }
}

/* ── TABLET (≤ 1024px) ─── */
@media (max-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  /* Sticky header tablet adjustments */
  #sticky-header {
    padding: 0 32px;
  }

  /* Footer */
  .hs-footer-inner {
    flex-direction: column;
    padding: 60px 50px 40px;
    gap: 50px;
  }

  .hs-footer-bottom {
    padding: 18px 50px;
  }

  /* About page tablet */
  .hs-intro-inner {
    grid-template-columns: 1fr;
    padding: 0 50px;
    gap: 40px;
  }

  .hs-approach-inner {
    padding: 0 50px;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .hs-team-grid {
    padding: 0 50px;
    grid-template-columns: 1fr;
  }

  .hs-stats-inner {
    padding: 0 50px;
  }

  .hs-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 0 50px;
  }

  .hs-founders-inner {
    grid-template-columns: 1fr;
    padding: 0 50px;
    gap: 40px;
  }
}

/* ── LARGE MOBILE + TABLET (≤ 900px) ─── */
@media (max-width: 900px) {
  /* About section — stack image above text */
  #about {
    padding: 60px 0;
    background-size: 80%;
  }

  .new-about-top {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-bottom: 36px;
  }

  .new-about-text {
    padding-right: 0;
  }

  .about-slideshow {
    order: -1;
    flex: none;
    width: 100%;
    height: 260px;
  }

  .new-about-bottom {
    flex-direction: column;
    gap: 32px;
  }

  .new-about-links {
    flex: none;
  }

  /* Projects slider */
  .our-work-container {
    flex-direction: column;
    height: auto;
    min-height: unset;
    max-height: unset;
  }

  .our-work-left {
    flex: none;
    padding: 0 40px;
    margin-bottom: 32px;
  }

  .our-work-label {
    margin-top: 0;
    margin-bottom: 20px;
    display: block;
  }

  .our-work-slide {
    width: 90%;
  }

  /* Quote banner */
  #quote-banner {
    height: 549px;
    min-height: 549px;
    max-height: 549px;
    width: 100%; /* overflow fix */
  }

  .quote-banner-content.container {
    padding: 0 28px;
  }

  .quote-banner-content h2 {
    max-width: 320px;
    font-size: 1.0625rem;
  }

  /* Team grid — 2 columns */
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  body.home-page .team-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .team-cell.team-jobs {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: unset;
    min-height: 120px;
  }

  body.home-page .team-cell.team-jobs {
    grid-column: 1 / -1;
    min-height: 100px;
    height: auto;
  }

  .team-cell.team-empty {
    display: none;
  }

  body.home-page .team-cell.team-empty {
    display: none;
  }

  .team-cell.team-info {
    aspect-ratio: unset;
    min-height: 160px;
    padding: 24px 20px;
  }

  body.home-page .team-cell.team-photo,
  body.home-page .team-cell.team-info {
    height: auto;
    min-height: 140px;
    aspect-ratio: unset;
  }

  /* Section padding */
  .section-pad {
    padding: 80px 0;
  }

  .container {
    padding: 0 30px;
  }
}

/* ── MOBILE (≤ 768px) ─── */
@media (max-width: 768px) {
  /* Sticky header — hamburger only */
  #sticky-header {
    padding: 0 20px;
    height: var(--header-height-mobile);
  }

  .sticky-nav {
    display: none !important;
  }

  #sticky-header .hamburger-btn {
    display: flex;
    margin-left: auto;
  }

  .logo-img--sticky {
    height: 40px;
  }

  .main-below-header {
    padding-top: calc(var(--header-height-mobile) + 40px);
  }

  .sticky-circle {
    display: none !important;
  }

  /* Hero split — stack vertically */
  #hero.split-view {
    flex-direction: column;
    min-height: 100svh;
  }

  .vert-text {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .vert-left {
    left: 50%;
    top: 18px !important;
    bottom: auto;
    transform: translateX(-50%) rotate(0deg) !important;
    transform-origin: center center !important;
  }

  .vert-right {
    right: auto !important;
    left: 50%;
    top: auto !important;
    bottom: 18px;
    transform: translateX(-50%) rotate(0deg) !important;
    transform-origin: center center !important;
  }

  .center-logo-img {
    max-width: 160px;
  }

  /* Projects — compact */
  #projects {
    padding: 60px 0;
  }

  .our-work-left {
    padding: 0 24px;
    margin-bottom: 24px;
  }

  .our-work-right {
    min-height: 260px;
  }

  .our-work-swiper {
    height: 220px;
  }

  .our-work-slide {
    width: 82%;
  }

  .our-work-nav {
    padding-right: 5%;
  }

  /* Services accordion — vertical stacked */
  .accordion-section {
    padding: 60px 0;
  }

  .acc-container {
    flex-direction: column;
    height: auto;
    width: 95%;
    gap: 2px;
  }

  .acc-item {
    flex: none !important;
    flex-direction: column;
    width: 100%;
  }

  .acc-item.active {
    flex: none !important;
  }

  .acc-header {
    width: 100%;
    min-width: unset;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-light);
  }

  .acc-title {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    transform: none;
    font-size: 1.2rem;
    padding: 0;
    flex: none;
  }

  .acc-title::after {
    display: none;
  }

  .acc-icon {
    font-size: 1.4rem;
    order: 2;
  }

  .acc-content {
    flex-direction: column;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    pointer-events: none;
  }

  .acc-item.active .acc-content {
    max-height: 700px;
    opacity: 1;
    pointer-events: auto;
  }

  .acc-img-wrap {
    flex: none;
    height: 220px;
    width: 100%;
  }

  .acc-text-wrap {
    padding: 28px 20px;
  }

  .acc-close {
    top: 16px;
    right: 16px;
  }

  /* Team grid responsive */
  #team {
    padding: 60px 0 40px;
  }

  .team-cell.team-photo {
    aspect-ratio: 1 / 1;
  }

  /* Journal */
  #ref-journal {
    padding: 60px 0 80px;
  }

  #ref-journal .container {
    padding: 0 20px;
  }

  .ref-journal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 12px;
  }

  /* CTA */
  #cta-banner {
    padding: 80px 0;
  }

  .cta-inner h2 {
    font-size: 1.8rem;
  }

  /* Footer */
  .hs-footer-inner {
    padding: 40px 24px;
    gap: 40px;
    flex-direction: column;
  }

  .hs-footer-cols {
    flex-direction: column;
    gap: 28px;
  }

  .hs-footer-bottom {
    padding: 18px 24px;
  }

  /* About page */
  .hs-hero-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hs-hero-footer {
    left: 24px;
    bottom: 40px;
  }

  .hs-approach-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 32px;
  }

  .hs-founders-inner {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    gap: 40px;
  }

  .hs-founder-photo {
    height: 280px;
  }

  .hs-founders-photos {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hs-team-grid {
    padding: 0 24px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hs-team-card {
    height: auto;
    min-height: 160px;
  }

  .hs-tc-photo {
    flex: 0 0 140px;
  }

  .hs-tc-info {
    padding: 20px 18px;
  }

  .hs-cta-inner {
    flex-direction: column;
    padding: 0 24px;
    gap: 24px;
    text-align: center;
  }

  .hs-gallery-item {
    flex: 0 0 280px;
    height: 260px;
  }

  .hs-gallery-slider {
    height: 260px;
  }

  .hs-gallery-item.active {
    flex: 0 0 280px;
  }

  .hs-stats-inner {
    flex-wrap: wrap;
    padding: 20px 24px;
    gap: 0;
  }

  .hs-stat-item {
    flex: 0 0 45%;
    padding: 16px 12px 16px 0;
  }

  .hs-stat-divider {
    display: none;
  }

  .hs-banner-content {
    padding: 0 24px 40px;
  }

  .hs-quote-inner {
    padding: 0 24px;
  }

  /* Blog page */
  .post-title {
    font-size: 1.8rem;
  }

  .quote-container {
    flex-direction: column;
  }

  .author-img {
    width: 100%;
  }

  .quote-text-wrap {
    padding: 32px 24px;
  }

  .post-list-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-thumb {
    width: 100%;
  }

  /* Contact page */
  .ct-page-title {
    padding-top: calc(var(--header-height-mobile) + 40px);
  }

  .ct-page-title-inner,
  .ct-body-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .ct-form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ct-info-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Shop page */
  .shop-layout {
    flex-direction: column;
  }

  .shop-sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
  }

  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-pagination {
    width: 100%;
  }
}

/* ── SMALL MOBILE (≤ 600px) ─── */
@media (max-width: 600px) {
  /* Testimonials */
  #testimonials {
    padding: 60px 0;
  }

  .testimonials-inner {
    padding: 0 8px;
  }

  .testimonial-text {
    font-size: 1.1rem;
    line-height: 1.55;
  }

  /* Blog */
  .post-title {
    font-size: 1.6rem;
  }

  .quote-text {
    font-size: 1.2rem;
  }

  .post-list-content {
    padding: 24px 20px;
  }

  /* Team — stack to 1 col */
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-cell.team-photo,
  .team-cell.team-info {
    aspect-ratio: unset;
    min-height: 180px;
  }

  /* Product single */
  .product-single-title {
    font-size: 1.8rem;
  }

  .product-cart-form {
    flex-wrap: wrap;
  }

  .add-to-cart-btn {
    width: 100%;
    padding: 0 20px;
    justify-content: center;
  }

  .product-tabs-nav {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .tab-link::after {
    display: none;
  }
}

/* ── EXTRA SMALL MOBILE (≤ 480px) ─── */
@media (max-width: 480px) {
  /* Container + section padding */
  .container {
    padding: 0 20px;
  }

  .section-pad {
    padding: 60px 0;
  }

  /* About heading */
  .about-slideshow {
    height: 200px;
  }

  .new-about-heading {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  /* Quote banner */
  #quote-banner {
    height: 549px;
    min-height: 549px;
    max-height: 549px;
    width: 100%; /* overflow fix */
  }

  .quote-banner-content.container {
    padding: 0 20px;
  }

  .quote-banner-content h2 {
    font-size: 0.95rem;
    max-width: 260px;
  }

  /* Team */
  #team {
    padding: 60px 0;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-cell.team-info {
    padding: 24px 20px;
    min-height: 160px;
  }

  /* Journal */
  .ref-journal-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  #cta-banner {
    padding: 60px 0;
  }

  .cta-inner h2 {
    font-size: 1.6rem;
  }

  .cta-inner p {
    font-size: 0.9rem;
  }

  /* Footer */
  .logo-img--footer {
    height: 100px;
  }

  /* Shop */
  .shop-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .shop-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Projects filter */
  .pj-filters-inner {
    gap: 12px;
    padding: 24px 16px 16px;
  }

  .pj-filter-btn,
  .pj-type-btn {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  /* Contact */
  .ct-page-title {
    padding: 48px 0 20px;
  }

  .ct-title {
    font-size: 2.2rem !important;
  }

  .ct-body-inner {
    padding: 0 20px;
    gap: 36px;
  }

  .ct-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* About page */
  .hs-hero {
    min-height: 100svh;
  }

  .hs-hero-title {
    font-size: 1.6rem;
  }

  .hs-hero-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hs-hero-footer {
    left: 20px;
    bottom: 28px;
  }

  .hs-intro-inner {
    padding: 0 20px;
    gap: 24px;
  }

  .hs-intro-heading {
    font-size: 1.5rem;
  }

  .hs-approach-inner {
    padding: 0 20px;
    gap: 28px;
  }

  .hs-gallery-item,
  .hs-gallery-item.active {
    flex: 0 0 260px;
    height: 320px;
  }

  .hs-gallery-slider {
    height: 320px;
  }

  .hs-gallery-wrapper {
    padding: 0 16px;
  }

  .hs-gallery-controls {
    padding: 0 16px;
  }

  .hs-quote-inner {
    padding: 0 20px;
  }

  .hs-quote-text {
    font-size: 1rem;
  }

  .hs-banner-content {
    padding: 0 20px 32px;
  }

  .hs-banner-quote {
    font-size: 1.1rem;
  }

  .hs-stats-inner {
    padding: 20px;
  }

  .hs-stat-item {
    flex: 0 0 100%;
    padding: 12px 0;
  }

  .hs-founders-inner {
    padding: 40px 20px;
    gap: 28px;
  }

  .hs-founders-heading {
    font-size: 1.8rem;
  }

  .hs-founder-photo {
    height: 200px;
  }

  .hs-founders-photos {
    grid-template-columns: 1fr 1fr;
  }

  .hs-team-grid {
    padding: 0 20px;
  }

  .hs-team-card {
    flex-direction: column;
    height: auto;
  }

  .hs-tc-photo {
    flex: none;
    width: 100%;
    height: 200px;
  }

  .hs-tc-info {
    padding: 18px 16px;
  }

  .hs-tc-name {
    font-size: 1.1rem;
  }

  .hs-cta-inner {
    padding: 0 20px;
    gap: 20px;
  }

  .hs-cta-text {
    font-size: 0.9rem;
  }

  /* Blog small mobile */
  .blog-main-layout {
    padding-bottom: 60px;
  }

  .post-item {
    margin-bottom: 48px;
  }

  .post-title {
    font-size: 1.4rem;
  }

  .quote-text {
    font-size: 1.05rem;
  }

  .quote-text-wrap {
    padding: 24px 16px;
  }

  .post-thumb {
    max-height: 200px;
    overflow: hidden;
  }

  .post-list-content {
    padding: 20px 16px;
  }

  /* Product single small mobile */
  .product-single-container {
    flex-direction: column;
  }

  .product-gallery {
    flex-direction: column-reverse;
  }

  .product-thumbnails {
    flex-direction: row;
    width: 100%;
  }

  .product-thumbnails img {
    width: 80px;
  }
}

/* ===================================================
   HOME PAGE — 67% ZOOM PORTRAIT LAYOUT
   Compact Hiroshi / L-ARCHITECTS proportions in portrait.
   Sizing & positions only — no content changes.
=================================================== */
@media (orientation: portrait) {
  body.home-page {
    --home-hero-height: clamp(300px, 38vh, 420px);
    --header-height: 56px;
  }

  /* Header — logo left, menu right (reference) */
  body.home-page #sticky-header {
    padding: 0 28px;
    height: var(--header-height);
  }

  body.home-page .logo-img--sticky {
    height: 44px;
  }


  body.home-page .sticky-nav {
    display: none !important;
  }

  body.home-page .hamburger-btn {
    display: flex;
    margin-left: auto;
  }

  /* Hero — compact stacked split, not full viewport */
  body.home-page #hero.split-view {
    height: clamp(360px, 48vh, 500px);
    min-height: 0;
    flex-direction: column;
  }

  body.home-page .split-half {
    flex: 1;
    min-height: 0;
  }

  body.home-page .center-logo-img {
    max-width: 150px;
  }

  body.home-page .vert-text {
    font-size: 0.8rem;
  }

  /* About — image above heading, centered */
  body.home-page #about {
    padding: 56px 0 48px;
    background-size: 55%;
    background-position: 50% 85%;
  }

  body.home-page .new-about-top {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-bottom: 36px;
  }

  body.home-page .about-slideshow {
    order: -1;
    flex: none;
    width: 82%;
    max-width: 480px;
    height: clamp(190px, 26vw, 260px);
    margin: 0 auto;
  }

  body.home-page .new-about-text {
    width: 100%;
    padding-right: 0;
  }

  body.home-page .new-section-label {
    font-size: 0.6rem;
    margin-bottom: 0.9rem;
  }

  body.home-page .new-about-heading {
    font-size: clamp(1.3rem, 4.2vw, 1.75rem);
    line-height: 1.15;
    margin-bottom: 1.2rem;
    max-width: 100%;
  }

  body.home-page .new-read-more {
    font-size: 0.78rem;
  }

  body.home-page .new-about-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 28px 20px;
  }

  body.home-page .new-about-links {
    flex: 1 1 100%;
    gap: 14px;
  }

  body.home-page .new-about-links a {
    font-size: 0.92rem;
  }

  body.home-page .new-about-col {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
  }

  body.home-page .new-about-col h3 {
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
  }

  body.home-page .new-about-col p {
    font-size: 0.82rem;
    max-width: none;
    line-height: 1.55;
  }

  /* Projects — compact dark band */
  body.home-page #projects {
    padding: 52px 0;
  }

  body.home-page .our-work-container {
    height: 384px;
    min-height: unset;
    max-height: unset;
  }

  body.home-page .our-work-left {
    flex: 0 0 30%;
    padding: 0 24px 0 32px;
  }

  body.home-page .our-work-label {
    font-size: 0.65rem;
    margin-top: 16px;
  }

  body.home-page .our-work-title {
    font-size: clamp(1.45rem, 3.8vw, 2rem);
  }

  body.home-page .our-work-cat {
    font-size: 0.65rem;
  }

  body.home-page .our-work-swiper {
    height: 324px;
  }

  body.home-page .our-work-slide {
    width: 562px;
    height: 324px;
  }

  body.home-page .our-work-slide img {
    width: 562px;
    height: 324px;
    object-fit: cover;
  }

  /* Services — keep horizontal accordion (reference layout) */
  body.home-page .accordion-section {
    padding: 52px 0;
  }

  body.home-page .acc-container {
    flex-direction: row;
    height: clamp(340px, 42vh, 460px);
    width: 94%;
  }

  body.home-page .acc-item {
    flex: 0 0 68px !important;
    flex-direction: row;
    width: auto;
  }

  body.home-page .acc-item.active {
    flex: 1 !important;
  }

  body.home-page .acc-header {
    width: 68px;
    min-width: 68px;
    flex-direction: column;
    padding: 24px 0;
    border-bottom: none;
  }

  body.home-page .acc-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    padding: 0 0 20px 0;
  }

  body.home-page .acc-title::after {
    display: block;
  }

  body.home-page .acc-icon {
    font-size: 1.2rem;
  }

  body.home-page .acc-content {
    flex-direction: row;
    max-height: none;
    opacity: 0;
    overflow: hidden;
  }

  body.home-page .acc-item.active .acc-content {
    max-height: none;
    opacity: 1;
  }

  body.home-page .acc-img-wrap {
    flex: 0 0 209px;
    width: 209px;
    height: 403px;
    min-width: 209px;
    max-width: 209px;
    min-height: 403px;
    max-height: 403px;
  }

  body.home-page .acc-text-wrap {
    padding: 28px 32px;
  }

  body.home-page .acc-text-wrap p {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 24px;
  }

  body.home-page .acc-close {
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
  }

  /* Quote banner — compact hero band */
  body.home-page #quote-banner {
    height: 549px;
    min-height: 549px;
    max-height: 549px;
    width: 100%;
  }

  body.home-page .quote-banner-content.container {
    padding: 0 32px;
  }

  body.home-page .quote-banner-content h2 {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    max-width: 340px;
    line-height: 1.5;
  }

  /* Team — compact checkerboard grid */
  body.home-page #team {
    padding-top: 168px;
    padding-bottom: 168px;
  }

  body.home-page .team-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 180px 180px;
  }

  body.home-page .team-cell.team-photo,
  body.home-page .team-cell.team-info,
  body.home-page .team-cell.team-empty {
    height: 180px;
    aspect-ratio: unset;
  }

  body.home-page .team-cell.team-jobs {
    min-height: 360px;
    height: auto;
  }

  body.home-page .team-cell.team-info {
    padding: 22px 24px;
  }

  body.home-page .team-name {
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    margin-bottom: 3px;
  }

  body.home-page .team-role {
    font-size: 0.58rem;
    margin-bottom: 0;
  }

  body.home-page .team-jobs-link {
    font-size: 0.75rem;
  }

  /* Testimonials */
  body.home-page #testimonials.section-pad {
    padding: 56px 0;
  }

  body.home-page .testimonial-text {
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    margin-bottom: 1.5rem;
    line-height: 1.55;
  }

  body.home-page .testimonial-author {
    font-size: 0.72rem;
  }

  body.home-page .test-pagination {
    margin-top: 28px;
  }

  /* Journal — 2×2 grid, tight gaps */
  body.home-page #ref-journal {
    padding: 52px 0 68px;
  }

  body.home-page #ref-journal .container {
    padding: 0 28px;
  }

  body.home-page .ref-journal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 12px;
  }

  body.home-page .ref-journal-title {
    font-size: 0.92rem;
    margin-bottom: 8px;
  }

  body.home-page .ref-journal-meta {
    font-size: 0.6rem;
  }

  /* CTA */
  body.home-page #cta-banner {
    padding: 64px 0;
  }

  body.home-page .cta-inner h2 {
    font-size: clamp(1.4rem, 3.8vw, 1.85rem);
    margin-bottom: 0.75rem;
  }

  body.home-page .cta-inner p {
    font-size: 0.88rem;
    margin-bottom: 1.75rem;
  }

  body.home-page .btn {
    padding: 12px 28px;
    font-size: 0.72rem;
  }

  /* Footer */
  body.home-page .footer-inner {
    padding: 0 32px;
  }

  body.home-page .footer-body {
    padding: 52px 0 36px;
    gap: 36px;
  }

  body.home-page .logo-img--footer {
    height: 96px;
  }

  body.home-page .footer-cols {
    gap: 36px;
  }

  body.home-page .footer-col-label {
    font-size: 0.6rem;
    margin-bottom: 16px;
  }

  body.home-page .footer-col ul li a,
  body.home-page .footer-col address a {
    font-size: 0.82rem;
  }

  /* Global section spacing */
  body.home-page .section-pad {
    padding: 56px 0;
  }

  body.home-page .container {
    padding: 0 32px;
  }
}

/* Portrait + narrow: 2-col team checkerboard */
@media (orientation: portrait) and (max-width: 900px) {
  body.home-page .team-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  body.home-page .team-cell.team-jobs {
    grid-column: 1 / -1;
    min-height: 120px;
    aspect-ratio: unset;
  }

  body.home-page .team-cell.team-empty {
    display: none;
  }

  body.home-page .team-cell.team-photo {
    height: 350px;
    min-height: 350px;
  }

  body.home-page .team-cell.team-info {
    height: auto;
    min-height: auto;
    padding: 24px 20px 40px;
  }
}

/* Portrait + very narrow refinements */
@media (orientation: portrait) and (max-width: 600px) {
  body.home-page .our-work-container {
    flex-direction: column;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  body.home-page .our-work-left {
    flex: none;
    padding: 0 24px;
    margin-bottom: 20px;
  }

  body.home-page .our-work-right {
    min-height: 220px;
  }

  body.home-page .our-work-swiper {
    height: 200px;
  }

  body.home-page .our-work-slide {
    width: 82%;
  }

  body.home-page .new-about-col {
    flex: 1 1 100%;
  }

  /* Switch to vertical stacked accordion on narrow phones */
  body.home-page .acc-container {
    flex-direction: column;
    height: auto;
    width: 100%;
    gap: 0;
    padding: 0 16px;
    box-sizing: border-box;
  }

  body.home-page .acc-item {
    flex: none !important;
    flex-direction: column;
    width: 100%;
    border-bottom: 1px solid var(--gray-light);
  }

  body.home-page .acc-item.active {
    flex: none !important;
  }

  body.home-page .acc-header {
    width: 100%;
    min-width: unset;
    height: auto;
    min-height: unset;
    max-height: unset;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 18px 16px;
    border-bottom: none;
  }

  body.home-page .acc-title {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    transform: none;
    font-size: 1.1rem;
    flex: none;
    padding: 0;
  }

  body.home-page .acc-title::after {
    display: none;
  }

  body.home-page .acc-icon {
    font-size: 1.3rem;
    order: 2;
    opacity: 1 !important;
  }

  body.home-page .acc-content {
    flex-direction: column;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    pointer-events: none;
  }

  body.home-page .acc-item.active .acc-content {
    max-height: 600px;
    opacity: 1;
    pointer-events: auto;
  }

  body.home-page .acc-img-wrap {
    flex: none;
    width: 100%;
    height: 200px;
    min-width: unset;
    max-width: unset;
    min-height: unset;
    max-height: unset;
  }

  body.home-page .acc-text-wrap {
    padding: 20px 16px;
  }

  body.home-page .team-grid {
    grid-template-columns: 1fr;
  }

  body.home-page .team-cell.team-photo {
    height: 300px;
    min-height: 300px;
  }
  
  body.home-page .team-cell.team-info {
    height: auto;
    min-height: auto;
    padding: 20px 16px 36px;
  }

  body.home-page .quote-banner-content h2 {
    max-width: 260px;
    font-size: 0.9rem;
  }
}

@media (orientation: portrait) and (max-width: 480px) {

  body.home-page .container,
  body.home-page #ref-journal .container,
  body.home-page .footer-inner {
    padding: 0 20px;
  }

  body.home-page #sticky-header {
    padding: 0 20px;
  }

  body.home-page .about-slideshow {
    width: 90%;
    height: 190px;
  }

  body.home-page .ref-journal-grid {
    gap: 28px 10px;
  }
}

/* =============================================================
   GLOBAL INNER-PAGE MOBILE RESPONSIVENESS
   These rules apply to ALL pages at ≤768px while leaving the
   desktop view (>768px) untouched.
============================================================= */

@media (max-width: 768px) {

  /* ── GENERAL ── */
  .container {
    padding: 0 20px;
  }

  .section-pad {
    padding: 60px 0;
  }

  /* ── FOOTER ── */
  .hs-footer-inner {
    flex-direction: column;
    padding: 40px 20px 28px;
    gap: 32px;
  }

  .hs-footer-cols {
    flex-direction: column;
    gap: 28px;
  }

  .hs-footer-bottom {
    padding: 16px 20px;
  }

  .logo-img--footer {
    height: 80px;
  }

  /* ── CTA BANNER ── */
  #cta-banner {
    padding: 60px 0;
  }

  .cta-inner h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  /* ── SERVICES HERO (services.html) ── */
  .services-hero-title {
    font-size: clamp(2.4rem, 8vw, 4rem);
  }

  /* ── SERVICES GRID ── */
  .srv-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .srv-card--wide {
    grid-column: span 1;
  }

  .srv-intl-grid {
    grid-template-columns: 1fr;
  }

  .srv-intl-featured {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .srv-intl-featured--reverse {
    direction: ltr;
  }

  .srv-section-header {
    padding: 0 20px;
    margin-bottom: 36px;
  }

  .srv-intl-layout {
    padding: 0 20px;
  }

  .services-divider {
    padding: 0 20px;
  }

  .services-section {
    padding: 60px 0;
  }

  .services-section--international {
    padding-top: 40px;
  }

  /* ── ABOUT PAGE SECTIONS ── */
  .hs-intro {
    padding-top: 100px;
    padding-bottom: 30px;
  }

  .hs-intro-inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 24px;
  }

  .hs-intro-img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hs-approach-inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 28px;
  }

  .hs-approach {
    padding-bottom: 60px;
  }

  .hs-gallery {
    padding: 40px 16px;
  }

  .hs-gallery-item,
  .hs-gallery-item.active {
    flex: 0 0 260px;
    height: 300px;
  }

  .hs-gallery-slider {
    height: 300px;
  }

  .hs-quote {
    padding: 60px 0;
  }

  .hs-quote-inner {
    padding: 0 20px;
  }

  .hs-quote-text {
    font-size: 1.05rem;
  }

  .hs-banner {
    height: 320px;
  }

  .hs-banner-content {
    padding: 0 20px 32px;
  }

  .hs-banner-quote {
    font-size: 1.1rem;
  }

  .hs-stats-inner {
    flex-wrap: wrap;
    padding: 20px;
  }

  .hs-stat-item {
    flex: 0 0 45%;
    padding: 12px 0;
  }

  .hs-stat-divider {
    display: none;
  }

  .hs-founders {
    padding: 60px 0;
  }

  .hs-founders-inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 28px;
  }

  .hs-founders-heading {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .hs-founder-photo {
    height: 220px;
  }

  .hs-founders-photos {
    grid-template-columns: 1fr 1fr;
  }

  .hs-team {
    padding: 60px 0;
  }

  .hs-team-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 0;
  }

  .hs-team-card {
    flex-direction: column;
    height: auto;
  }

  .hs-tc-photo {
    flex: none;
    width: 100%;
    height: 220px;
  }

  .hs-tc-info {
    padding: 16px 20px;
  }

  .hs-cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
    gap: 20px;
  }

  /* ── CONTACT PAGE ── */
  .ct-page-title {
    padding-top: calc(var(--header-height-mobile) + 40px);
  }

  .ct-page-title-inner,
  .ct-body-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ct-body-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ct-form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ct-info-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ct-title {
    font-size: clamp(2.2rem, 10vw, 4rem);
  }

  /* ── PROJECTS PAGE ── */
  .pj-filters-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px;
  }

  .pj-filter-btn,
  .pj-type-btn {
    font-size: 0.72rem;
  }

  /* ── BLOG PAGE ── */
  .blog-layout-grid {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    display: none; /* hide sidebar on mobile for blog */
  }

  .breadcrumb-container {
    padding-top: calc(var(--header-height) + 10px);
  }

  /* ── SHOP PAGE ── */
  .shop-layout {
    flex-direction: column;
  }

  .shop-sidebar {
    width: 100%;
  }

  .sidebar-banner {
    aspect-ratio: 16 / 6;
    margin-top: 20px;
  }

  /* ── TESTIMONIALS ── */
  .testimonial-text {
    font-size: clamp(1rem, 4vw, 1.4rem);
  }

  /* ── REF JOURNAL (home page section) ── */
  .ref-journal-grid {
    grid-template-columns: 1fr;
  }

  /* ── BACK TO TOP ── */
  #back-top {
    bottom: 20px;
    right: 20px;
  }
}

/* Very narrow phones */
@media (max-width: 420px) {
  .sticky-logo .logo-img--sticky {
    height: 36px;
  }

  #sticky-header {
    height: var(--header-height-mobile);
  }

  .hs-stat-item {
    flex: 0 0 100%;
  }

  .hs-founders-photos {
    grid-template-columns: 1fr;
  }

  .hs-founder-photo {
    height: 260px;
  }

  .services-hero-title {
    font-size: 2.2rem;
  }
}

/* ===========================
   FOOTER RESPONSIVE OVERRIDES
=========================== */
@media (max-width: 1024px) {
  .hs-footer-inner {
    display: flex !important;
  }
  .hs-footer-cols {
    display: flex !important;
    gap: 40px !important;
  }
}

@media (max-width: 768px) {
  .hs-footer-cols {
    flex-direction: column !important;
    gap: 32px !important;
  }
}
