/*
Theme Name: StudioGin
Theme URI: https://studiogin.com
Description: StudioGin Interior Design — Simplicity · Functionality · Aesthetics
Author: StudioGin
Version: 1.0.0
Text Domain: studiogin
*/

/* ─── Design Tokens ─────────────────────────────────── */
:root {
  --p:        #716B5F;
  --p-dark:   #564F45;
  --p-light:  #9A9489;
  --p-10:     rgba(113,107,95,.10);
  --white:    #FFFFFF;
  --off:      #F8F7F5;
  --cream:    #EDEBE7;
  --border:   #E3E0DA;
  --dark:     #28251F;
  --text:     #4A4640;
  --muted:    #9A9489;

  --font:     'Prompt', sans-serif;
  --wrap:     1280px;
  --pad:      0 48px;
  --sec:      108px 0;
  --t:        0.38s ease;
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ─── Layout ─────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: var(--pad); }

/* ─── Image loading ──────────────────────────────────── */
.hero-img, .work-img, .port-img, .intro-single-img {
  content-visibility: auto;
}

/* ════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════ */
.sg-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.sg-nav.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,.055);
}
.sg-logo {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--dark);
  display: flex;
  align-items: center;
}
.sg-logo em { font-style: normal; color: var(--p); }
.sg-nav-menu { display: flex; align-items: center; gap: 40px; }
.sg-nav-menu a {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--text);
  transition: color var(--t);
}
.sg-nav-menu a:hover { color: var(--p); }
.sg-nav-btn {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 26px;
  border: 1px solid var(--p);
  color: var(--p);
  background: transparent;
  transition: var(--t);
  cursor: pointer;
}
.sg-nav-btn:hover { background: var(--p); color: var(--white); }
.sg-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
}
.sg-burger span { display: block; width: 22px; height: 1px; background: var(--dark); transition: var(--t); }
.sg-mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  inset: 68px 0 auto;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 48px 32px;
  z-index: 899;
  flex-direction: column;
  gap: 20px;
}
.sg-mobile-menu.is-open { display: flex; }
.sg-mobile-menu a { font-size: 15px; font-weight: 300; color: var(--text); letter-spacing: .5px; }

/* Language switcher */
.sg-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.sg-lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sg-lang-btn {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--muted);
  transition: color var(--t);
}
.sg-lang-btn:hover,
.sg-lang-btn.is-active { color: var(--p); }
.sg-lang-sep { font-size: 11px; color: var(--border); }
.sg-mobile-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════════
   TYPE
════════════════════════════════════════════════════════ */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--p);
  margin-bottom: 18px;
}
.h-xl {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--dark);
}
.h-lg {
  font-size: clamp(30px, 3.8vw, 56px);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -.5px;
  color: var(--dark);
}
.h-md {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 300;
  line-height: 1.2;
  color: var(--dark);
}
.h-sm { font-size: 18px; font-weight: 400; line-height: 1.3; color: var(--dark); }
.body-lg { font-size: 17px; font-weight: 300; line-height: 1.85; color: var(--text); }
.body-md { font-size: 15px; font-weight: 300; line-height: 1.85; color: var(--text); }
.body-sm { font-size: 14px; font-weight: 300; line-height: 1.8;  color: var(--muted); }
.sec-head        { margin-bottom: 64px; }
.sec-head.center { text-align: center; }
.sec-divider { width: 36px; height: 1px; background: var(--p); margin-top: 28px; }
.sec-divider.center { margin: 28px auto 0; }

/* ════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--t);
}
.btn-primary { background: var(--p); color: var(--white); border-color: var(--p); }
.btn-primary:hover { background: var(--p-dark); border-color: var(--p-dark); }
.btn-outline { background: transparent; color: var(--p); border-color: var(--p); }
.btn-outline:hover { background: var(--p); color: var(--white); }
.btn-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-white:hover { background: var(--white); color: var(--dark); }
.btn-dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-dark:hover { background: var(--p-dark); border-color: var(--p-dark); }
.btn svg { transition: transform var(--t); }
.btn:hover svg { transform: translateX(4px); }

/* ════════════════════════════════════════════════════════
   PAGE HERO (inner pages)
════════════════════════════════════════════════════════ */
.page-hero { padding: 160px 0 80px; background: var(--off); border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 12px; font-weight: 300; color: var(--muted); letter-spacing: 1px; margin-top: 28px; }
.breadcrumb a { color: var(--p); }

/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; background: var(--dark); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .48; }
.hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(40,37,31,.80) 0%, rgba(40,37,31,.35) 35%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; padding: 0 48px 72px; max-width: 820px; }
.hero-content .label { color: rgba(255,255,255,.55); }
.hero-content .h-xl  { color: var(--white); }
.hero-content .body-lg { color: rgba(255,255,255,.65); margin: 18px 0 36px; max-width: 460px; font-size: 15px; line-height: 1.85; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-white { background: var(--white); color: var(--dark); border-color: var(--white); }
.hero-actions .btn-white:hover { background: transparent; color: var(--white); border-color: rgba(255,255,255,.8); }
.btn-ghost {
  background: rgba(20,18,15,.4);
  border-color: rgba(255,255,255,.6);
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(20,18,15,.65); border-color: var(--white); }
.hero-scroll {
  position: absolute; right: 48px; bottom: 48px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,.3); font-size: 10px; font-weight: 300;
  letter-spacing: 2.5px; text-transform: uppercase; writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 60px; background: rgba(255,255,255,.25);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { transform: scaleY(1);  opacity: .8; transform-origin: top; }
  100% { transform: scaleY(.1); opacity: 0;  transform-origin: top; }
}
.hero-stats { position: absolute; inset: auto 0 0; z-index: 3; }
.hero-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.hero-stat { padding: 14px 28px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.hero-stat:last-child { border-right: none; }
.hero-stat-n { font-size: 24px; font-weight: 200; color: var(--dark); line-height: 1; letter-spacing: -1px; }
.hero-stat-n sup { font-size: 12px; color: var(--p); vertical-align: super; }
.hero-stat-l { font-size: 10px; font-weight: 300; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }

/* ════════════════════════════════════════════════════════
   CONCEPT STRIP
════════════════════════════════════════════════════════ */
.concept-strip { background: var(--p); padding: 22px 0; overflow: hidden; text-align: center; }
.concept-rotator { position: relative; height: 18px; }
.concept-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 300; letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  opacity: 0; transform: translateY(6px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
  padding: 0 20px;
}
.concept-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ════════════════════════════════════════════════════════
   INTRO
════════════════════════════════════════════════════════ */
.intro { padding: 64px 0; background: var(--white); }
.gin-accent { color: var(--dark); font-weight: 400; }
.intro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
.intro-text .h-lg { font-size: clamp(26px, 2.8vw, 40px); margin: 6px 0 26px; }
.intro-text .body-lg { font-size: 15px; line-height: 1.95; }
.intro-text .body-md { font-size: 14px; line-height: 1.95; }
.intro-text p + p { margin-top: 22px; }
.intro-list { margin: 32px 0 40px; display: flex; flex-direction: column; gap: 16px; }
.intro-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 13px; line-height: 1.6; font-weight: 300; color: var(--text); }
.intro-list li::before { content: ''; display: block; width: 24px; height: 1px; background: var(--p); margin-top: 10px; flex-shrink: 0; }
.intro-images { position: relative; height: 820px; overflow: hidden; }
.intro-single-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* ════════════════════════════════════════════════════════
   FEATURED WORKS
════════════════════════════════════════════════════════ */
.featured { padding: var(--sec); background: var(--off); }
.works-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 16px;
}
.work-item { position: relative; overflow: hidden; cursor: pointer; background: var(--cream); aspect-ratio: 4/3; }
.work-img,
.work-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.work-item:hover .work-img,
.work-item:hover img { transform: scale(1.05); }
.work-overlay {
  position: absolute; inset: 0; background: rgba(40,37,31,0);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px 32px; transition: background .38s ease;
}
.work-item:hover .work-overlay { background: rgba(40,37,31,.60); }
.work-info { transform: translateY(10px); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.work-item:hover .work-info { transform: translateY(0); opacity: 1; }
.work-info .label { color: rgba(255,255,255,.55); margin-bottom: 4px; }
.work-info .work-title { font-size: 18px; font-weight: 300; color: var(--white); }
.works-more { margin-top: 48px; padding-bottom: 108px; }

/* ════════════════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════════════════ */
.services { padding: var(--sec); background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); }
.svc-card {
  padding: 48px 40px 52px; border-right: 1px solid var(--border);
  position: relative; overflow: hidden; transition: background var(--t);
}
.svc-card:last-child { border-right: none; }
.svc-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--p); transition: width .45s ease; }
.svc-card:hover::after { width: 100%; }
.svc-card:hover { background: var(--off); }
.svc-num { font-size: 56px; font-weight: 200; color: var(--cream); line-height: 1; margin-bottom: 28px; }
.svc-icon { width: 40px; height: 40px; color: var(--p); margin-bottom: 20px; }
.svc-card .h-sm { margin-bottom: 14px; }
.svc-card p { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.85; }
.svc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 12px; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; color: var(--p); transition: gap var(--t); }
.svc-card:hover .svc-link { gap: 14px; }

/* ════════════════════════════════════════════════════════
   PROCESS
════════════════════════════════════════════════════════ */
.process { padding: var(--sec); background: var(--dark); }
.process .label { color: var(--p-light); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.07); margin-top: 16px; }
.process-step { padding: 40px 32px; border-right: 1px solid rgba(255,255,255,.07); }
.process-step:last-child { border-right: none; }
.step-n { font-size: 11px; font-weight: 300; letter-spacing: 3px; color: var(--p); margin-bottom: 24px; }
.process-step .h-sm { color: var(--white); font-size: 17px; font-weight: 300; margin-bottom: 14px; }
.process-step p { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.38); line-height: 1.85; }

/* ════════════════════════════════════════════════════════
   CTA
════════════════════════════════════════════════════════ */
.cta-section { position: relative; overflow: hidden; min-height: 520px; display: flex; align-items: center; }
.cta-bg { position: absolute; inset: 0; background: linear-gradient(135deg,#B0AA9E 0%,#8A8378 100%); }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta-overlay { position: absolute; inset: 0; background: rgba(113,107,95,.55); }
.cta-content { position: relative; z-index: 2; padding: 80px 48px; }
.cta-content .label { color: rgba(255,255,255,.6); }
.cta-content .h-lg  { color: var(--white); max-width: 560px; margin: 8px 0 24px; }
.cta-content .body-lg { color: rgba(255,255,255,.65); max-width: 420px; margin-bottom: 44px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════
   PORTFOLIO PAGE
════════════════════════════════════════════════════════ */
.portfolio-section { padding: 72px 0 120px; background: var(--white); }
.filter-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 52px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 22px; font-family: var(--font); font-size: 12px; font-weight: 300;
  letter-spacing: 1.5px; text-transform: uppercase; background: none;
  border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: var(--t);
}
.filter-btn.active, .filter-btn:hover { background: var(--p); border-color: var(--p); color: var(--white); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.port-item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; }
.port-item:nth-child(4n+1) { background: linear-gradient(135deg,#DEDAD5,#C8C3BB); }
.port-item:nth-child(4n+2) { background: linear-gradient(135deg,#E5E2DD,#D0CBC3); }
.port-item:nth-child(4n+3) { background: linear-gradient(135deg,#D8D4CE,#C2BEB7); }
.port-item:nth-child(4n+4) { background: linear-gradient(135deg,#E0DDD7,#CDCAC3); }
.port-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.port-item:hover .port-img { transform: scale(1.05); }
.port-overlay {
  position: absolute; inset: 0; background: rgba(40,37,31,0);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px 28px; transition: background .38s ease;
}
.port-item:hover .port-overlay { background: rgba(40,37,31,.62); }
.port-info { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.port-item:hover .port-info { opacity: 1; transform: translateY(0); }
.port-info .label { color: rgba(255,255,255,.55); margin-bottom: 4px; }
.port-info .port-name { font-size: 17px; font-weight: 300; color: var(--white); }
.port-info .port-area { font-size: 12px; font-weight: 300; color: rgba(255,255,255,.5); margin-top: 2px; }

/* ════════════════════════════════════════════════════════
   PUBLICATION PAGE
════════════════════════════════════════════════════════ */
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 28px; }
.pub-card { display: flex; flex-direction: column; cursor: pointer; }
.pub-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; margin-bottom: 22px; background: linear-gradient(135deg,#DEDAD5,#C8C3BB); }
.pub-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.pub-card:hover .pub-img-wrap img { transform: scale(1.05); }
.pub-play-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(40,37,31,.18); transition: background var(--t);
}
.pub-play-icon svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); transition: transform var(--t); }
.pub-card:hover .pub-play-icon { background: rgba(40,37,31,.32); }
.pub-card:hover .pub-play-icon svg { transform: scale(1.08); }
.pub-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pub-tag { font-size: 10px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: var(--p); }
.pub-date { font-size: 11px; font-weight: 300; color: var(--muted); }
.pub-title { font-size: 17px; font-weight: 400; color: var(--dark); line-height: 1.45; margin-bottom: 10px; transition: color var(--t); }
.pub-card:hover .pub-title { color: var(--p); }
.pub-excerpt { font-size: 13px; font-weight: 300; color: var(--text); line-height: 1.8; margin-bottom: 16px; }
.pub-link, .pub-outlet { font-size: 11px; font-weight: 400; letter-spacing: 1px; text-transform: uppercase; color: var(--p); display: inline-flex; align-items: center; gap: 6px; }
.pub-outlet { color: var(--muted); }

/* ════════════════════════════════════════════════════════
   TEAM PAGE
════════════════════════════════════════════════════════ */
.team-section { padding: 72px 0 120px; background: var(--white); }
.team-intro { max-width: 600px; margin-bottom: 72px; }
.team-intro .h-lg { margin: 8px 0 24px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { display: flex; flex-direction: column; }
.team-photo { width: 100%; aspect-ratio: 3/4; overflow: hidden; position: relative; margin-bottom: 20px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-card:nth-child(4n+1) .team-photo { background: linear-gradient(160deg,#E8E4DE,#D4CFC8); }
.team-card:nth-child(4n+2) .team-photo { background: linear-gradient(160deg,#DDD9D3,#C9C5BE); }
.team-card:nth-child(4n+3) .team-photo { background: linear-gradient(160deg,#E4E0DA,#D0CCC5); }
.team-card:nth-child(4n+4) .team-photo { background: linear-gradient(160deg,#DAD6D0,#C6C2BB); }
.team-photo-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 200; color: rgba(113,107,95,.35); letter-spacing: 2px; }
.team-name { font-size: 16px; font-weight: 400; color: var(--dark); margin-bottom: 4px; }
.team-role { font-size: 12px; font-weight: 300; letter-spacing: 1.5px; text-transform: uppercase; color: var(--p); margin-bottom: 10px; }
.team-bio  { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.8; }
.team-social { display: flex; gap: 10px; margin-top: 14px; }
.team-social a { width: 32px; height: 32px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 300; color: var(--muted); transition: var(--t); }
.team-social a:hover { border-color: var(--p); color: var(--p); }
.values-strip { background: var(--off); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 0; margin-bottom: 72px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.value-item { padding: 0 48px; border-right: 1px solid var(--border); }
.value-item:first-child { padding-left: 0; }
.value-item:last-child  { border-right: none; }
.value-item .label { margin-bottom: 10px; }
.value-item p { font-size: 14px; font-weight: 300; color: var(--muted); }

/* ════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
.sg-footer { background: var(--dark); padding: 80px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-brand p { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.3); line-height: 1.9; max-width: 240px; margin-top: 18px; }
.footer-social { display: flex; gap: 10px; margin-top: 28px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 300; color: rgba(255,255,255,.3); transition: var(--t); }
.footer-social a:hover { border-color: var(--p); color: var(--p); }
.footer-col h5 { font-size: 11px; font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase; color: var(--white); margin-bottom: 22px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.3); transition: color var(--t); }
.footer-links a:hover { color: var(--p-light); }
.footer-contact-items { display: flex; flex-direction: column; gap: 11px; }
.footer-contact-items p,
.footer-contact-items a { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.3); line-height: 1.7; transition: color var(--t); }
.footer-contact-items a:hover { color: var(--p-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; }
.footer-bottom p { font-size: 12px; font-weight: 300; color: rgba(255,255,255,.18); }

/* ════════════════════════════════════════════════════════
   REUSABLE SPLIT LAYOUTS (about / team / greenbox / project pages)
════════════════════════════════════════════════════════ */
.sg-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.sg-2col-asym { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: center; }
.sg-4col { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.sg-strip-between { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  :root { --pad: 0 32px; }
  .sg-nav { padding: 0 32px; }
  .hero-content { padding: 0 32px 72px; }
  .hero-scroll { right: 32px; }
  .cta-content { padding: 72px 32px; }
  .intro-grid { gap: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .svc-card { border-right: none; border-bottom: 1px solid var(--border); }
  .svc-card:last-child { border-bottom: none; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: none; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --pad: 0 20px; --sec: 72px 0; }
  .sg-nav { padding: 0 20px; }
  .sg-nav-menu, .sg-nav-right { display: none; }
  .sg-burger { display: flex; }
  .sg-mobile-menu { padding: 24px 20px 28px; }
  .hero-content { padding: 0 20px 120px; }
  .hero-scroll { display: none; }
  .hero-stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero-stat:nth-child(2) { border-right: none; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-images { height: 320px; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; gap: 32px; }
  .value-item { padding: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 28px; }
  .value-item:last-child { border-bottom: none; padding-bottom: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .page-hero { padding: 120px 0 56px; }
  .cta-content { padding: 56px 20px; }
  .sg-2col, .sg-2col-asym { grid-template-columns: 1fr !important; gap: 40px !important; }
  .sg-4col { grid-template-columns: repeat(2, 1fr) !important; }
  .sg-strip-between { flex-direction: column; align-items: flex-start; text-align: left; }
  .sg-svc-row { grid-template-columns: 44px 1fr 20px !important; gap: 0 16px !important; }
  .pub-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 360px; }
  .pub-grid { grid-template-columns: 1fr; }
  .sg-gallery-grid { grid-template-columns: 1fr !important; }
}

/* ════════════════════════════════════════════════════════
   DESIGN SYSTEM PAGE
════════════════════════════════════════════════════════ */
.ds-wrap { padding-top: 68px; }

/* Header */
.ds-header {
  background: var(--dark);
  padding: 80px 0 72px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ds-header-inner { max-width: var(--wrap); margin: 0 auto; padding: var(--pad); }
.ds-eyebrow {
  font-size: 11px; font-weight: 300; letter-spacing: 4px;
  text-transform: uppercase; color: var(--p-light);
  margin-bottom: 20px;
}
.ds-eyebrow em { font-style: normal; color: var(--p); }
.ds-title {
  font-size: clamp(40px,5vw,72px); font-weight: 200;
  color: var(--white); line-height: 1.08; letter-spacing: -1px;
  margin-bottom: 12px;
}
.ds-subtitle {
  font-size: 14px; font-weight: 300; letter-spacing: 3px;
  text-transform: uppercase; color: rgba(255,255,255,.3);
  margin-bottom: 36px;
}
.ds-concept-row {
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; font-weight: 300; letter-spacing: 4px;
  text-transform: uppercase; color: rgba(255,255,255,.18);
}
.ds-dot { color: var(--p); opacity: .6; }

/* Body */
.ds-body { max-width: var(--wrap); margin: 0 auto; padding: 0 48px; }
.ds-divider { height: 1px; background: var(--border); margin: 0; }

/* Section */
.ds-section { padding: 72px 0; }
.ds-sec-label {
  font-size: 11px; font-weight: 300; letter-spacing: 4px;
  color: var(--p); text-transform: uppercase; margin-bottom: 12px;
}
.ds-sec-title {
  font-size: clamp(24px,2.5vw,36px); font-weight: 200;
  color: var(--dark); margin-bottom: 10px; line-height: 1.2;
}
.ds-sec-desc {
  font-size: 14px; font-weight: 300; color: var(--muted);
  line-height: 1.8; margin-bottom: 48px; max-width: 600px;
}
.ds-sec-desc code {
  font-family: 'Courier New', monospace; font-size: 12px;
  background: var(--cream); padding: 1px 6px; color: var(--p);
}

/* Colors */
.ds-color-group { margin-bottom: 40px; }
.ds-group-label {
  font-size: 11px; font-weight: 400; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
.ds-swatches { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.ds-swatch { display: flex; flex-direction: column; }
.ds-swatch-block { height: 80px; width: 100%; margin-bottom: 12px; }
.ds-swatch-info { display: flex; flex-direction: column; gap: 3px; }
.ds-swatch-name { font-size: 13px; font-weight: 400; color: var(--dark); font-family: 'Courier New', monospace; }
.ds-swatch-hex  { font-size: 12px; font-weight: 300; color: var(--p); font-family: 'Courier New', monospace; }
.ds-swatch-use  { font-size: 11px; font-weight: 300; color: var(--muted); }

/* Typography */
.ds-type-stack { display: flex; flex-direction: column; }
.ds-type-row {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 32px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--border);
}
.ds-type-row:first-child { border-top: 1px solid var(--border); }
.ds-type-meta { display: flex; flex-direction: column; gap: 4px; }
.ds-type-class { font-size: 12px; font-weight: 400; color: var(--p); font-family: 'Courier New', monospace; }
.ds-type-spec   { font-size: 10px; font-weight: 300; color: var(--muted); letter-spacing: .5px; }
.ds-type-preview { flex: 1; }

/* Buttons */
.ds-btn-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 32px;
}
.ds-btn-item {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px; padding: 32px; background: var(--off);
  border: 1px solid var(--border);
}
.ds-btn-item--dark { background: var(--dark); border-color: rgba(255,255,255,.08); }
.ds-code {
  font-family: 'Courier New', monospace; font-size: 11px;
  background: var(--cream); padding: 2px 8px; color: var(--p);
}
.ds-code--dark { background: rgba(255,255,255,.06); color: var(--p-light); }
.ds-btn-desc  { font-size: 12px; font-weight: 300; color: var(--muted); }
.ds-btn-desc--dark { color: rgba(255,255,255,.25); }

/* Components */
.ds-comp-block { margin-bottom: 56px; }
.ds-comp-name {
  font-size: 12px; font-weight: 400; letter-spacing: 2px;
  text-transform: uppercase; color: var(--p); margin-bottom: 16px;
}
.ds-comp-preview {
  border: 1px solid var(--border); padding: 40px;
  background: var(--white); margin-bottom: 12px;
}
.ds-comp-preview--flush { padding: 0; overflow: hidden; }
.ds-comp-code code {
  font-family: 'Courier New', monospace; font-size: 11px;
  color: var(--muted); background: var(--off);
  padding: 6px 12px; display: inline-block;
}

/* Tokens */
.ds-token-grid { margin-bottom: 48px; }
.ds-token-row {
  display: grid; grid-template-columns: 140px 200px 1fr;
  gap: 24px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.ds-token-row:first-child { border-top: 1px solid var(--border); }
.ds-token-var {
  font-family: 'Courier New', monospace; font-size: 12px;
  font-style: normal; color: var(--p); background: var(--cream);
  padding: 2px 8px;
}
.ds-token-val  { font-size: 13px; font-weight: 300; color: var(--dark); }
.ds-token-desc { font-size: 12px; font-weight: 300; color: var(--muted); }
.ds-token-desc code { font-size: 11px; background: var(--cream); padding: 1px 5px; color: var(--p); }

.ds-spacing-scale { margin-top: 8px; }
.ds-space-items { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.ds-space-item { display: flex; align-items: center; gap: 16px; }
.ds-space-bar { height: 8px; background: var(--p-10); border-left: 2px solid var(--p); }
.ds-space-val { font-size: 11px; font-weight: 300; color: var(--muted); font-family: 'Courier New', monospace; min-width: 40px; }

/* Language */
.ds-lang-demo { display: grid; grid-template-columns: 200px 1fr 1fr; gap: 32px; align-items: start; }
.ds-lang-card {
  background: var(--off); border: 1px solid var(--border);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.ds-lang-label { font-size: 11px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.ds-lang-switch-demo { display: flex; align-items: center; gap: 8px; }
.ds-lang-example, .ds-lang-code { padding: 28px; border: 1px solid var(--border); }
.ds-code-block { margin-top: 12px; background: var(--dark); padding: 20px; overflow: auto; }
.ds-code-block pre { margin: 0; }
.ds-code-block code {
  font-family: 'Courier New', monospace; font-size: 12px;
  color: rgba(255,255,255,.6); line-height: 1.9;
  background: none; padding: 0;
}

/* Navigation Anatomy */
.ds-nav-anatomy { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); }
.ds-anatomy-item {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.ds-anatomy-item:last-child { border-bottom: none; }
.ds-anatomy-n {
  width: 28px; height: 28px; flex-shrink: 0;
  border: 1px solid var(--p); color: var(--p);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 400; letter-spacing: 1px;
}
.ds-anatomy-title {
  font-size: 14px; font-weight: 400; color: var(--dark);
  margin-bottom: 4px;
}
.ds-anatomy-title code { font-size: 12px; background: var(--cream); padding: 1px 6px; color: var(--p); }
.ds-anatomy-desc { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.7; }

/* Footer Index */
.ds-footer-index {
  background: var(--off); border-top: 1px solid var(--border);
  padding: 40px 0;
}
.ds-footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.ds-footer-brand {
  font-size: 16px; font-weight: 400; letter-spacing: 3px;
  text-transform: uppercase; color: var(--dark);
}
.ds-footer-brand em { font-style: normal; color: var(--p); }
.ds-toc { display: flex; gap: 28px; flex-wrap: wrap; }
.ds-toc a {
  font-size: 12px; font-weight: 300; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted);
  transition: color var(--t);
}
.ds-toc a:hover { color: var(--p); }
.ds-footer-note {
  font-size: 10px; font-weight: 300; letter-spacing: 3px;
  text-transform: uppercase; color: var(--muted);
}

/* Design System Responsive */
@media (max-width: 1100px) {
  .ds-body { padding: 0 32px; }
  .ds-swatches { grid-template-columns: repeat(2,1fr); }
  .ds-btn-grid { grid-template-columns: repeat(2,1fr); }
  .ds-lang-demo { grid-template-columns: 1fr 1fr; }
  .ds-lang-code { grid-column: span 2; }
}
@media (max-width: 768px) {
  .ds-body { padding: 0 20px; }
  .ds-section { padding: 48px 0; }
  .ds-type-row { grid-template-columns: 1fr; gap: 12px; }
  .ds-swatches { grid-template-columns: repeat(2,1fr); }
  .ds-btn-grid { grid-template-columns: 1fr; }
  .ds-token-row { grid-template-columns: 1fr 1fr; }
  .ds-token-desc { display: none; }
  .ds-lang-demo { grid-template-columns: 1fr; }
  .ds-lang-code { grid-column: span 1; }
  .ds-footer-inner { flex-direction: column; gap: 20px; }
}
