/* ============================================
   BESPOKED AI — Brand Stylesheet
   Designed by John Davison
   Built for bespoked.ai
   ============================================ */

/* --- Fonts --- */
@font-face {
  font-family: 'Gowun Batang';
  src: url('assets/fonts/GowunBatang-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gowun Batang';
  src: url('assets/fonts/GowunBatang-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mabry Pro';
  src: url('assets/fonts/MabryPro-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* --- Design Tokens --- */
:root {
  /* Palette */
  --charcoal: #352F27;
  --stone: #CEC6B8;
  --cream: #E6E1D7;
  --gold: #B3A280;
  --chartreuse: #EBF853;

  /* Semantic */
  --bg-primary: #FAFAF6;
  --bg-dark: var(--charcoal);
  --bg-warm: var(--cream);
  --text-primary: var(--charcoal);
  --text-light: var(--cream);
  --text-muted: #6B6459;
  --accent: var(--chartreuse);
  --accent-hover: #D9E64A;
  --border: var(--stone);

  /* Typography */
  --font-heading: 'Gowun Batang', 'Georgia', serif;
  --font-body: 'Mabry Pro', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

p {
  max-width: 38em;
}

.text-muted {
  color: var(--text-muted);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

section {
  padding: var(--space-md) 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled,
.nav.nav--solid {
  background: rgba(250, 250, 246, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

/* Nav on hero — dark text, visible against light/animated background */
.nav--hero .nav__logo,
.nav--hero .nav__links a {
  color: var(--charcoal);
}

.nav--hero .nav__toggle span {
  background: var(--charcoal);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.nav__logo span {
  font-weight: 400;
}

.nav__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav__links a {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--charcoal);
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
  color: var(--text-primary);
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(230, 225, 215, 0.0) 0%,
    rgba(230, 225, 215, 0.0) 60%,
    rgba(230, 225, 215, 0.3) 85%,
    rgba(250, 250, 246, 0.7) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-lg) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero__eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  color: var(--charcoal);
  margin-bottom: var(--space-md);
  max-width: 16em;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.hero__sub {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 36em;
  margin-bottom: var(--space-lg);
}

/* --- Buttons --- */
.btn--primary {
  background: var(--chartreuse);
  color: var(--charcoal);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--gold);
}

.btn--outline:hover {
  background: rgba(179, 162, 128, 0.15);
}

.btn--dark {
  background: var(--charcoal);
  color: var(--cream);
}

.btn--dark:hover {
  background: #463F35;
}

/* --- Concept Grid (homepage) --- */
.concepts {
  background-color: var(--bg-primary);
}

.concepts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.concept-card h3 {
  margin-bottom: var(--space-sm);
}

.concept-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* --- Section: Dark Band --- */
.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section--dark h2 {
  color: var(--cream);
}

.section--dark p {
  color: var(--stone);
}

.section--dark .content-with-icon__accent img {
  opacity: 0.3;
  filter: brightness(1.8);
}

.section--dark .content-with-icon:hover .content-with-icon__accent img {
  opacity: 0.5;
}

.section--dark .quote-block blockquote {
  color: var(--cream);
  border-left-color: var(--chartreuse);
}

.section--dark .accent-bar {
  background: var(--chartreuse);
}

/* --- Section: Warm --- */
.section--warm {
  background-color: var(--bg-warm);
}

/* Warm section with background image */
.section--warm.section--bg-dark {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.section--warm.section--bg-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(230, 225, 215, 0.82) 0%,
    rgba(230, 225, 215, 0.6) 50%,
    rgba(230, 225, 215, 0.35) 100%
  );
}

.section--warm.section--bg-dark > .container {
  position: relative;
  z-index: 1;
}

/* --- Intro / Philosophy Block --- */
.intro {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.intro__text h2 {
  margin-bottom: var(--space-md);
}

.intro__text p {
  margin-bottom: var(--space-sm);
}

.intro__accent {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.intro__accent img {
  max-width: 220px;
  opacity: 0.6;
}

/* --- Quote Block --- */
.quote-block {
  text-align: left;
  padding: var(--space-md) 0;
}

.quote-block cite {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Services List --- */
.services-list {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  align-items: start;
}

.service-item__icon {
  width: 64px;
  height: 64px;
  opacity: 0.7;
}

.service-item h3 {
  margin-bottom: var(--space-xs);
}

.service-item p {
  color: var(--text-muted);
  line-height: 1.75;
}

/* --- CTA Section --- */
.cta-section {
  text-align: left;
  padding: var(--space-md) var(--space-md);
}

.cta-section h2 {
  margin-bottom: var(--space-sm);
}

.cta-section p {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
}

.cta-section .btn {
  margin: 0 var(--space-xs);
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-dark);
  color: var(--stone);
  padding: var(--space-md) 0 var(--space-sm);
  position: relative;
  overflow: hidden;
}

.footer--bg {
  background-size: cover;
  background-position: top right;
  background-repeat: no-repeat;
}

.footer--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(53, 47, 39, 0.92) 0%,
    rgba(53, 47, 39, 0.78) 50%,
    rgba(53, 47, 39, 0.55) 100%
  );
}

.footer--bg > .container {
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.footer__brand span {
  font-weight: 400;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--gold);
  max-width: 20em;
}

.footer__links {
  list-style: none;
  display: flex;
  gap: var(--space-md);
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--stone);
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--cream);
}

.footer__bottom {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(206, 198, 184, 0.15);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: left;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: calc(var(--space-xl) + 2rem) 0 var(--space-lg);
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-header--bg {
  background-size: cover;
  background-position: top right;
  background-repeat: no-repeat;
}

.page-header--bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 35%, rgba(53, 47, 39, 1) 78%),
    linear-gradient(to right, rgba(53, 47, 39, 0.9) 0%, rgba(53, 47, 39, 0.6) 50%, rgba(53, 47, 39, 0.2) 100%);
}

.page-header--bg .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--cream);
  margin-bottom: var(--space-sm);
}

.page-header p {
  color: var(--stone);
  font-size: 0.95rem;
  max-width: 36em;
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

/* Light/chartreuse page header variant */
.page-header--light {
  background: var(--cream);
  color: var(--text-primary);
}

.page-header--light h1 {
  color: var(--charcoal);
}

.page-header--light p {
  color: var(--text-muted);
}

.page-header--light.page-header--bg::after {
  background: linear-gradient(
    90deg,
    rgba(230, 225, 215, 0.85) 0%,
    rgba(230, 225, 215, 0.6) 50%,
    rgba(230, 225, 215, 0.3) 100%
  );
}

/* --- CTA with background image --- */
.cta-section--bg {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.cta-section--bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(53, 47, 39, 0.75) 0%,
    rgba(53, 47, 39, 0.55) 50%,
    rgba(53, 47, 39, 0.35) 100%
  );
}

.cta-section--bg .container {
  position: relative;
  z-index: 1;
}

.cta-section--bg h2 {
  color: var(--cream);
}

.cta-section--bg .btn--dark {
  background: var(--chartreuse);
  color: var(--charcoal);
}

.cta-section--bg .btn--dark:hover {
  background: var(--accent-hover);
}

/* --- About Photo --- */
.about-photo {
  width: 345px;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 3rem;
  margin-left: 1.5rem;
}

.about-photo img,
.content-with-icon__accent .about-photo img {
  width: 345px !important;
  height: auto;
  display: block;
  opacity: 0.82;
  filter: none;
  clip-path: inset(0 10px 0 0);
}

/* --- About Page --- */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-section p {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.value-item h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.1rem;
}

.value-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Principles Stack (ethics page) --- */
.principles-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.principle-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}

.principle-item:last-child {
  border-bottom: 1px solid var(--border);
}

.principle-item h3 {
  font-size: 1.1rem;
  line-height: 1.4;
}

.principle-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 38em;
}

@media (max-width: 900px) {
  .principle-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
}

/* --- Accordion (homepage services) --- */
.accordion {
  max-width: 44em;
}

.accordion__item {
  border-top: 1px solid var(--border);
}

.accordion__item:last-child {
  border-bottom: 1px solid var(--border);
}

.accordion__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-sm) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--text-primary);
  text-align: left;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.accordion__trigger:hover {
  color: var(--text-muted);
}

.accordion__icon {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  margin-left: var(--space-md);
  transition: transform 0.3s ease;
}

.accordion__item.open .accordion__icon {
  transform: rotate(45deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion__item.open .accordion__content {
  max-height: 20em;
}

.accordion__content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 36em;
  padding-bottom: var(--space-md);
}

/* --- Section with light background image --- */
.section--bg-light {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: top right;
  background-repeat: no-repeat;
}

.section--bg-light::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(230, 225, 215, 0.88) 0%,
    rgba(230, 225, 215, 0.7) 50%,
    rgba(230, 225, 215, 0.4) 100%
  );
}

.section--bg-light > .container,
.section--bg-light > .container.intro {
  position: relative;
  z-index: 1;
}

/* --- Content with Icon (text-left, icon-right layout) --- */
.content-with-icon {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}

.content-with-icon__text {
  max-width: 38em;
}

.content-with-icon__text h2 {
  margin-bottom: var(--space-md);
}

.content-with-icon__text p {
  margin-bottom: var(--space-sm);
}

.content-with-icon__accent {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--space-xs);
}

.content-with-icon__accent img {
  width: 150px;
  opacity: 0.55;
  transition: opacity 0.4s ease;
}

.content-with-icon:hover .content-with-icon__accent img {
  opacity: 0.75;
}

/* --- Split Header (heading-left, body-right) --- */
.split-header {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-lg);
  align-items: start;
}

.split-header__heading {
  /* no sticky — caused scroll drift on shorter sections */
}

.split-header__heading h2 {
  margin-bottom: var(--space-sm);
}

.split-icon-row {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-lg);
}

.split-icon-row img {
  width: 64px;
  opacity: 0.45;
  flex-shrink: 0;
}

.split-header__body p {
  margin-bottom: var(--space-sm);
}

/* --- Reversed content-with-icon (icon-left, text-right) --- */
.content-with-icon--reversed {
  grid-template-columns: auto 1fr;
}

.content-with-icon--reversed .content-with-icon__accent {
  order: -1;
}

/* --- Section with icons wrapper --- */
.section-with-icons {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: start;
}

.section-with-icons__accent {
  display: flex;
  align-items: flex-start;
  padding-top: var(--space-xs);
}

@media (max-width: 900px) {
  .section-with-icons {
    grid-template-columns: 1fr;
  }
  .section-with-icons__accent { display: none; }
}

/* --- Icon Cluster (grouped icons at different sizes) --- */
.icon-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  width: 264px;
  padding: var(--space-sm);
}

.icon-cluster img {
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.icon-cluster img:nth-child(1) {
  width: 144px;
  grid-column: 1 / -1;
  justify-self: center;
}

.icon-cluster img:nth-child(2) {
  width: 108px;
  justify-self: end;
  margin-top: calc(var(--space-xs) * -1);
}

.icon-cluster img:nth-child(3) {
  width: 86px;
  margin-top: var(--space-xs);
  align-self: end;
}

.icon-cluster:hover img {
  opacity: 0.7;
}

/* Dark section icon cluster */
.section--dark .icon-cluster img {
  opacity: 0.25;
  filter: brightness(1.8);
}

.section--dark .icon-cluster:hover img {
  opacity: 0.45;
}

/* --- Pull Quote (lightweight divider quote) --- */
.pull-quote {
  border-left: 3px solid var(--chartreuse);
  padding-left: var(--space-md);
  max-width: 32em;
}

.pull-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--text-muted);
}


/* --- Chartreuse accent elements --- */
.accent-bar {
  width: 48px;
  height: 3px;
  background: var(--chartreuse);
  margin-bottom: var(--space-md);
}

.accent-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--chartreuse);
  border-radius: 50%;
  margin-right: var(--space-xs);
  vertical-align: middle;
}

/* Value items — chartreuse accent on hover */
.value-item:hover {
  border-left-color: var(--chartreuse);
}

/* Chartreuse link style */
.link--accent {
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--chartreuse);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}

.link--accent:hover {
  text-decoration-color: var(--gold);
}

/* Concept card — chartreuse top border on hover */
.concept-card:hover {
  border-color: var(--stone);
  border-top-color: var(--chartreuse);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(53, 47, 39, 0.06);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8em 1em;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  border: 1px solid var(--border);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info h3 {
  margin-bottom: var(--space-sm);
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

/* --- Animations --- */

/* Concept card icons — gentle hover drift */
.concept-card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-md);
  opacity: 0.8;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}

.concept-card:hover .concept-card__icon {
  transform: translateY(-4px) rotate(3deg);
  opacity: 1;
}

/* Concept card — refined hover */
.concept-card {
  padding: var(--space-md);
  border: 1px solid transparent;
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

.concept-card:hover {
  border-color: var(--stone);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(53, 47, 39, 0.06);
}

/* Parallax layer — moves slower than scroll */
.parallax-icon {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Scroll-fade entrance — staggered */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children within grids */
.concepts__grid .fade-in:nth-child(1) { transition-delay: 0s; }
.concepts__grid .fade-in:nth-child(2) { transition-delay: 0.12s; }
.concepts__grid .fade-in:nth-child(3) { transition-delay: 0.24s; }
.concepts__grid .fade-in:nth-child(4) { transition-delay: 0.36s; }

.values-grid .fade-in:nth-child(1) { transition-delay: 0s; }
.values-grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.values-grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.values-grid .fade-in:nth-child(4) { transition-delay: 0.24s; }
.values-grid .fade-in:nth-child(5) { transition-delay: 0.32s; }
.values-grid .fade-in:nth-child(6) { transition-delay: 0.40s; }
.values-grid .fade-in:nth-child(7) { transition-delay: 0.48s; }
.values-grid .fade-in:nth-child(8) { transition-delay: 0.56s; }

/* Value items — gold bar animation on hover */
.value-item {
  padding: var(--space-md);
  border-left: 3px solid var(--gold);
  transition: border-left-width 0.3s ease, padding-left 0.3s ease, background 0.3s ease;
}

.value-item:hover {
  border-left-width: 5px;
  padding-left: calc(var(--space-md) - 2px);
  background: rgba(179, 162, 128, 0.06);
}

/* Quote block — subtle entrance */
.quote-block blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  max-width: 28em;
  margin: 0 0 var(--space-md);
  line-height: 1.5;
  position: relative;
  border-left: 3px solid var(--chartreuse);
  padding-left: var(--space-md);
}

.quote-block.visible blockquote {
  animation: quoteReveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes quoteReveal {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    letter-spacing: 0.02em;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: -0.01em;
  }
}

/* Buttons — refined interaction */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 2em;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

/* Section divider lines — animate in */
hr {
  transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    transition-duration: 0.01s;
  }

  .concept-card,
  .concept-card__icon,
  .value-item {
    transition-duration: 0.01s;
  }

  .concepts__grid .fade-in,
  .values-grid .fade-in {
    transition-delay: 0s !important;
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  html { font-size: 16px; }

  .intro,
  .about-section,
  .contact-grid,
  .content-with-icon,
  .content-with-icon--reversed,
  .split-header {
    grid-template-columns: 1fr;
  }

  .content-with-icon__accent,
  .icon-cluster {
    display: none;
  }


  .content-with-icon--reversed .content-with-icon__accent {
    display: none;
  }

  .split-header__heading {
    position: static;
  }

  .intro__accent {
    order: -1;
  }

  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250, 250, 246, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border);
  }

  .hero__content {
    padding-top: var(--space-xl);
  }

  .service-item {
    grid-template-columns: 1fr;
  }

  .service-item__icon {
    margin-bottom: var(--space-xs);
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .concepts__grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: var(--space-lg) 0;
  }

  .hero {
    min-height: 90vh;
  }
}
