/* ===================================================================
   Dimension Designs — Global Stylesheet
=================================================================== */

:root{
  --bg:            #14110f;
  --bg-alt:        #1b1714;
  --bg-card:       #201b17;
  --line:          #322b24;
  --gold:          #c6a664;
  --gold-light:    #e6cf9c;
  --gold-dim:      #8a743f;
  --cream:         #f4ede2;
  --text:          #ece5d8;
  --text-muted:    #a89f91;
  --text-faint:    #6f6759;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;

  --container: 1200px;
  --radius: 4px;
  --ease: cubic-bezier(.25,.8,.25,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--cream);
}
p{ margin: 0 0 1em; color: var(--text-muted); }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section{ position: relative; padding: 120px 0; }
@media (max-width: 768px){ section{ padding: 80px 0; } }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before{
  content:'';
  width: 32px; height: 1px;
  background: var(--gold);
}
.section-head{ max-width: 640px; margin-bottom: 64px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size: clamp(30px, 4vw, 44px); }
.section-head p{ font-size: 17px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 15px 34px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn-primary{ background: var(--gold); color: #14110f; }
.btn-primary:hover{ background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(198,166,100,.5); }
.btn-outline{ border-color: var(--gold-dim); color: var(--cream); }
.btn-outline:hover{ border-color: var(--gold); background: rgba(198,166,100,.08); transform: translateY(-2px); }
.btn-arrow{ transition: transform .3s var(--ease); }
.btn:hover .btn-arrow{ transform: translateX(4px); }

/* ===================================================================
   Scroll-driven background building (homepage)
   Canvas is fixed at z-index -1; when active, body.has-bg3d relaxes
   the opaque section backgrounds so the scene shows through.
=================================================================== */
.bg3d-canvas{
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.bg3d-canvas.active{ opacity: .6; }
body.has-bg3d .hero{
  background:
    radial-gradient(ellipse at 15% 20%, rgba(198,166,100,.08), transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(198,166,100,.05), transparent 50%);
}
body.has-bg3d .projects-strip,
body.has-bg3d .craft-3d{ background: rgba(27,23,20,.86); }
body.has-bg3d .stats-band{ background: linear-gradient(135deg, rgba(32,27,23,.92), rgba(20,17,15,.88)); }
body.has-bg3d .cta-banner{
  background:
    radial-gradient(circle at 30% 20%, rgba(198,166,100,.18), transparent 55%),
    rgba(28,23,18,.85);
}

/* ===================================================================
   Header / Nav
=================================================================== */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 1000;
  padding: 26px 0;
  transition: all .4s var(--ease);
  background: linear-gradient(to bottom, rgba(10,9,8,.65), transparent);
}
.site-header.scrolled{
  padding: 16px 0;
  background: rgba(15,13,11,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; }

.logo{ display:flex; align-items:center; gap:10px; font-family: var(--font-head); font-size: 22px; letter-spacing: 1px; color: var(--cream); }
.logo .mark{
  width: 34px; height: 34px; position: relative;
  perspective: 200px;
}
.logo .mark span{
  position:absolute; inset:0;
  border: 1.5px solid var(--gold);
  transform-style: preserve-3d;
  animation: markSpin 9s linear infinite;
}
.logo .mark span:nth-child(2){ transform: rotateY(60deg); opacity:.6; }
.logo .mark span:nth-child(3){ transform: rotateY(120deg); opacity:.35; }
@keyframes markSpin{ to{ transform: rotateY(360deg); } }
.logo b{ color: var(--gold); font-weight: 600; }

.nav-links{ display:flex; align-items:center; gap: 42px; }
.nav-links a{
  font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--text-muted); position:relative; padding: 6px 0;
  transition: color .3s;
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; height:1px; width:0;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ color: var(--cream); }
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }

.nav-cta{ display:flex; align-items:center; gap: 28px; }
.nav-toggle{ display:none; flex-direction:column; gap:5px; cursor:pointer; z-index:1100; background:none; border:none; }
.nav-toggle span{ width:26px; height:1.5px; background: var(--cream); transition: all .3s; }

@media (max-width: 940px){
  .nav-toggle{ display:flex; }
  .nav-links{
    position: fixed; inset:0; left: auto; width: min(78vw, 340px);
    background: var(--bg-alt); flex-direction:column; justify-content:center; align-items:flex-start;
    padding: 40px; gap: 30px;
    transform: translateX(100%); transition: transform .45s var(--ease);
    border-left: 1px solid var(--line);
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-cta .btn-outline{ display:none; }
}

/* ===================================================================
   Hero + 3D Room Illustration
=================================================================== */
.hero{
  min-height: 100vh;
  display:flex; align-items:center;
  padding-top: 140px;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(198,166,100,.08), transparent 45%),
    radial-gradient(ellipse at 85% 80%, rgba(198,166,100,.05), transparent 50%),
    var(--bg);
  overflow: hidden;
}
.hero .container{
  display:grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items:center;
}
.hero-copy .eyebrow{ margin-bottom: 22px; }
.hero-copy h1{
  font-size: clamp(38px, 5.2vw, 68px);
  margin-bottom: 26px;
}
.hero-copy h1 em{ color: var(--gold); font-style: normal; }
.hero-copy p{ font-size: 18px; max-width: 480px; margin-bottom: 36px; }
.hero-actions{ display:flex; gap:18px; flex-wrap:wrap; margin-bottom: 56px; }

.hero-stats{ display:flex; gap: 46px; }
.hero-stats div strong{ display:block; font-family: var(--font-head); font-size: 30px; color: var(--gold-light); }
.hero-stats div span{ font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); }

/* --- 3D isometric room, pure CSS --- */
.hero-stage{
  position: relative;
  perspective: 1400px;
  display:flex; align-items:center; justify-content:center;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-canvas{
  position:absolute; inset:0; width:100%; height:100%;
  opacity: 0; transition: opacity 1.4s var(--ease);
  cursor: grab;
}
.hero-canvas.active{ opacity: 1; }
.room3d{
  position: relative;
  width: 340px; height: 340px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(45deg);
  animation: roomFloat 7s ease-in-out infinite;
}
@keyframes roomFloat{
  0%,100%{ transform: rotateX(58deg) rotateZ(45deg) translateY(0); }
  50%{ transform: rotateX(58deg) rotateZ(45deg) translateY(-22px); }
}
.room3d .face{
  position:absolute; inset:0;
  border: 1px solid rgba(198,166,100,.35);
}
.room3d .floor{
  background: linear-gradient(135deg, #23201b, #17140f);
  transform: translateZ(0);
  box-shadow: 0 0 90px rgba(198,166,100,.12) inset;
}
.room3d .wall-back{
  background: linear-gradient(180deg, #2a251e, #1b1713);
  width: 340px; height: 170px;
  transform-origin: top;
  transform: rotateX(-90deg) translateY(-170px);
}
.room3d .wall-side{
  background: linear-gradient(180deg, #221e18, #17140f);
  width: 170px; height: 170px;
  transform-origin: left;
  transform: rotateY(90deg) translateX(0) translateY(0);
  left: 0;
}
.room3d .block{
  position:absolute;
  transform-style: preserve-3d;
}
.room3d .block .bf{ position:absolute; }
.b-sofa{ left:40px; top:190px; width:150px; height:70px; }
.b-sofa .bf-top{ width:150px; height:70px; background: linear-gradient(135deg,#c6a664,#8a743f); transform: translateZ(38px); }
.b-sofa .bf-side{ width:150px; height:38px; background:#6b592f; transform: rotateX(-90deg) translateY(-38px); transform-origin: top; }
.b-sofa .bf-front{ width:70px; height:38px; background:#4d3f24; transform: rotateY(90deg) translateZ(150px) translateX(-38px); }

.b-table{ left:210px; top:120px; width:80px; height:80px; }
.b-table .bf-top{ width:80px; height:80px; background: linear-gradient(135deg,#e6cf9c,#c6a664); transform: translateZ(20px); }
.b-table .bf-side{ width:80px; height:20px; background:#8a743f; transform: rotateX(-90deg) translateY(-20px); transform-origin: top; }

.b-shelf{ left:30px; top:40px; width:60px; height:120px; }
.b-shelf .bf-top{ width:60px; height:120px; background: linear-gradient(135deg,#2f2a22,#1b1713); transform: translateZ(60px); }
.b-shelf .bf-side{ width:60px; height:60px; background:#171310; transform: rotateX(-90deg) translateY(-60px); transform-origin: top; }

.hero-stage::after{
  content:''; position:absolute; width: 420px; height:420px;
  background: radial-gradient(circle, rgba(198,166,100,.18), transparent 70%);
  filter: blur(10px); z-index:-1;
}

@media (max-width: 940px){
  .hero .container{ grid-template-columns: 1fr; text-align:center; }
  .hero-copy p{ margin-left:auto; margin-right:auto; }
  .hero-actions, .hero-stats{ justify-content:center; }
  .hero-stage{ height: 340px; }
  .room3d{ transform: rotateX(58deg) rotateZ(45deg) scale(.8); }
}

/* ===================================================================
   Tilt Cards (generic 3D hover, used across site)
=================================================================== */
.tilt{ transform-style: preserve-3d; will-change: transform; transition: transform .25s var(--ease), box-shadow .25s; }
.tilt-inner{ transform: translateZ(30px); }

/* ---------- Services (home preview) ---------- */
.services-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card{
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 34px;
  perspective: 900px;
}
.service-card .icon{
  width: 56px; height:56px; margin-bottom: 26px;
  border: 1px solid var(--gold-dim); border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--gold); font-family: var(--font-head); font-size: 22px;
  transform: translateZ(20px);
  overflow: hidden;
}
.icon-canvas{ width:100%; height:100%; display:block; }
.service-card h3{ font-size: 21px; transform: translateZ(15px); }
.service-card p{ font-size: 15px; margin-bottom: 20px; }
.service-card .more{ font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.service-card:hover{ box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); border-color: var(--gold-dim); }

@media (max-width: 940px){ .services-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .services-grid{ grid-template-columns: 1fr; } }

/* ---------- Featured Projects (home) ---------- */
.projects-strip{ background: var(--bg-alt); }
.projects-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom: 60px; gap: 20px; flex-wrap:wrap; }
.projects-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.project-card{
  position:relative; border-radius: var(--radius); overflow:hidden;
  aspect-ratio: 4/5; perspective: 900px;
  border: 1px solid var(--line);
}
.project-card .thumb{
  position:absolute; inset:0;
  transform: translateZ(0);
}
.project-canvas{ position:absolute; inset:0; width:100%; height:100%; z-index:1; cursor: grab; }
.project-card .thumb::before{
  content: attr(data-tag);
  position:absolute; top:18px; left:18px; z-index:2;
  font-size: 11px; letter-spacing: 1.5px; text-transform:uppercase;
  color: var(--gold-light); border:1px solid rgba(198,166,100,.4);
  padding: 5px 10px; border-radius: 30px; background: rgba(20,17,15,.5);
}
.project-card .info{
  position:absolute; left:0; right:0; bottom:0; padding: 26px; z-index:2;
  background: linear-gradient(to top, rgba(10,8,7,.92), transparent);
  transform: translateZ(35px);
}
.project-card .info h4{ margin-bottom:4px; font-size: 19px; }
.project-card .info span{ font-size: 13px; color: var(--text-faint); }

@media (max-width: 940px){ .projects-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .projects-grid{ grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; counter-reset: step; }
.process-step{ position:relative; padding-top: 20px; border-top: 1px solid var(--line); }
.process-step::before{
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-size: 15px; color: var(--gold);
  display:block; margin-bottom: 16px;
}
.process-step h4{ font-size: 18px; }
.process-step p{ font-size: 14.5px; }
@media (max-width: 940px){ .process-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .process-grid{ grid-template-columns: 1fr; } }

/* ---------- Craft / Materials 3D showcase ---------- */
.craft-3d{ background: var(--bg-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.craft-3d-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items:center; }
.craft-copy ul{ margin-top: 24px; }
.craft-stage{
  position:relative; aspect-ratio: 1 / 1; border-radius: var(--radius);
  border: 1px solid var(--line); overflow:hidden;
  background: radial-gradient(circle at 50% 50%, rgba(198,166,100,.08), transparent 70%);
}
.craft-canvas{ position:absolute; inset:0; width:100%; height:100%; opacity:0; transition: opacity 1.2s var(--ease); cursor: grab; }
.craft-canvas.active{ opacity:1; }
@media (max-width: 860px){ .craft-3d-grid{ grid-template-columns: 1fr; } .craft-stage{ max-width: 420px; margin: 0 auto; } }

/* ---------- Stats band ---------- */
.stats-band{
  padding: 70px 0;
  background: linear-gradient(135deg, #201b17, #14110f);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats-grid{ display:grid; grid-template-columns: repeat(4,1fr); text-align:center; }
.stats-grid div + div{ border-left: 1px solid var(--line); }
.stat-num{ font-family: var(--font-head); font-size: 42px; color: var(--gold-light); }
.stat-label{ font-size: 12.5px; letter-spacing: 1.5px; text-transform:uppercase; color: var(--text-faint); }
@media (max-width: 700px){ .stats-grid{ grid-template-columns: 1fr 1fr; row-gap: 34px; } .stats-grid div:nth-child(2n){ border-left:none; } .stats-grid div:nth-child(3), .stats-grid div:nth-child(4){ border-top:1px solid var(--line); padding-top:30px; } }

/* ---------- Testimonials ---------- */
.testi-track{ display:grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.testi-card{
  background: var(--bg-card); border:1px solid var(--line); border-radius: var(--radius);
  padding: 36px; perspective: 900px;
}
.testi-card .stars{ color: var(--gold); letter-spacing: 3px; margin-bottom: 18px; transform: translateZ(15px); }
.testi-card p{ font-style: italic; font-size: 15.5px; color: var(--text); }
.testi-who{ display:flex; align-items:center; gap: 12px; margin-top: 22px; }
.testi-avatar{ width:42px; height:42px; border-radius:50%; background: linear-gradient(135deg,var(--gold),var(--gold-dim)); }
.testi-who strong{ display:block; font-size: 14px; color: var(--cream); }
.testi-who span{ font-size: 12.5px; color: var(--text-faint); }
@media (max-width: 940px){ .testi-track{ grid-template-columns: 1fr; } }

/* ---------- CTA banner ---------- */
.cta-banner{
  border-radius: var(--radius);
  margin: 0 32px;
  padding: 80px 60px;
  text-align:center;
  background:
    radial-gradient(circle at 30% 20%, rgba(198,166,100,.18), transparent 55%),
    #1c1712;
  border: 1px solid var(--line);
}
.cta-banner h2{ font-size: clamp(28px,4vw,40px); max-width: 640px; margin: 0 auto 18px; }
.cta-banner p{ max-width: 520px; margin: 0 auto 34px; }

/* ===================================================================
   Footer
=================================================================== */
.site-footer{ background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 90px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.footer-grid h5{ color: var(--cream); font-family: var(--font-body); font-size: 13px; letter-spacing:1.5px; text-transform:uppercase; margin-bottom: 22px; }
.footer-grid li{ margin-bottom: 12px; }
.footer-grid a{ color: var(--text-muted); font-size: 14.5px; transition: color .25s; }
.footer-grid a:hover{ color: var(--gold); }
.footer-brand p{ max-width: 300px; font-size: 14.5px; }
.social-row{ display:flex; gap: 12px; margin-top: 20px; }
.social-row a{
  width:36px; height:36px; border:1px solid var(--line); border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-size:13px;
}
.social-row a:hover{ border-color: var(--gold); color: var(--gold); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap: 12px;
  padding: 26px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-faint);
}
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ===================================================================
   Reveal-on-scroll
=================================================================== */
.reveal{ opacity:0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in{ opacity:1; transform: translateY(0); }

/* ===================================================================
   Inner page header (Services / Portfolio / About / Contact)
=================================================================== */
.page-header{
  padding: 190px 0 90px;
  text-align:center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(198,166,100,.1), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow{ justify-content:center; }
.page-header h1{ font-size: clamp(32px,5vw,54px); }
.breadcrumb{ font-size: 13px; color: var(--text-faint); letter-spacing: 1px; }
.breadcrumb .gold{ color: var(--gold); }

/* ---------- Services page ---------- */
.service-detail{ display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center; }
.service-detail:nth-child(even){ direction: rtl; }
.service-detail:nth-child(even) > *{ direction: ltr; }
.service-detail + .service-detail{ margin-top: 130px; }
.service-visual{ perspective: 1000px; }
.service-panel{
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--bg-card), #14110f);
  display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
  transform-style: preserve-3d;
}
.service-panel .glyph{ font-family: var(--font-head); font-size: 90px; color: var(--gold); opacity:.85; transform: translateZ(50px); }
.service-panel::after{
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 70% 30%, rgba(198,166,100,.15), transparent 60%);
}
.service-list-icon{ list-style:none; margin: 26px 0; padding:0; }
.service-list-icon li{ padding-left: 26px; position:relative; margin-bottom:10px; font-size:14.5px; color: var(--text-muted); }
.service-list-icon li::before{ content:'—'; position:absolute; left:0; color: var(--gold); }
@media (max-width: 860px){ .service-detail, .service-detail:nth-child(even){ grid-template-columns: 1fr; direction: ltr; } }

/* ---------- Portfolio page ---------- */
.filter-bar{ display:flex; gap: 14px; justify-content:center; flex-wrap:wrap; margin-bottom: 56px; }
.filter-btn{
  padding: 10px 22px; font-size: 12.5px; letter-spacing: 1.5px; text-transform:uppercase;
  border: 1px solid var(--line); border-radius: 30px; background:transparent; color: var(--text-muted); cursor:pointer;
  transition: all .3s;
}
.filter-btn:hover{ border-color: var(--gold-dim); color: var(--cream); }
.filter-btn.active{ background: var(--gold); border-color: var(--gold); color: #14110f; }
.portfolio-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.portfolio-grid .project-card{ cursor: pointer; }
.portfolio-grid .project-card.hide{ display:none; }
@media (max-width: 940px){ .portfolio-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .portfolio-grid{ grid-template-columns: 1fr; } }

.lightbox{
  position: fixed; inset:0; z-index: 2000; display:none;
  align-items:center; justify-content:center;
  background: rgba(10,8,7,.92); backdrop-filter: blur(6px);
  padding: 40px;
}
.lightbox.open{ display:flex; }
.lightbox-inner{
  max-width: 720px; width:100%; background: var(--bg-card); border:1px solid var(--line); border-radius: var(--radius);
  overflow:hidden;
}
.lightbox-visual{ aspect-ratio: 16/9; display:flex; align-items:center; justify-content:center; position:relative; }
.lightbox-visual .glyph{ font-family: var(--font-head); font-size: 110px; color: var(--gold); opacity:.85; }
.lightbox-body{ padding: 30px 34px; }
.lightbox-close{
  position:absolute; top:22px; right:26px; font-size: 26px; color: var(--text-muted); cursor:pointer; z-index:5;
  background:none; border:none;
}
.lightbox-close:hover{ color: var(--gold); }

/* ---------- About page ---------- */
.about-story{ display:grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items:center; }
.values-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.value-card{ padding: 32px 26px; border:1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); }
.value-card .num{ font-family: var(--font-head); color: var(--gold-dim); font-size: 14px; }
.value-card h4{ font-size: 17px; margin-top: 10px; }
.value-card p{ font-size: 14px; }
@media (max-width: 940px){ .about-story{ grid-template-columns:1fr; } .values-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .values-grid{ grid-template-columns: 1fr; } }

.team-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.team-card{ text-align:center; }
.team-photo{
  aspect-ratio: 3/4; border-radius: var(--radius); margin-bottom: 18px;
  background: linear-gradient(150deg, var(--bg-card), #221d18);
  display:flex; align-items:center; justify-content:center;
  border: 1px solid var(--line);
}
.team-photo span{ font-family: var(--font-head); font-size: 44px; color: var(--gold); }
.team-card h4{ font-size: 17px; margin-bottom: 2px; }
.team-card span.role{ font-size: 13px; color: var(--gold); letter-spacing: .5px; }
@media (max-width: 860px){ .team-grid{ grid-template-columns: 1fr 1fr; } }

.timeline{ position:relative; max-width: 760px; margin: 0 auto; }
.timeline::before{ content:''; position:absolute; left: 90px; top:0; bottom:0; width:1px; background: var(--line); }
.timeline-item{ position:relative; display:grid; grid-template-columns: 90px 1fr; gap: 30px; margin-bottom: 46px; }
.timeline-item .year{ font-family: var(--font-head); color: var(--gold); font-size: 18px; text-align:right; }
.timeline-item::after{ content:''; position:absolute; left: 86px; top:6px; width:9px; height:9px; border-radius:50%; background: var(--gold); }
.timeline-item h4{ font-size: 17px; }
.timeline-item p{ font-size: 14.5px; }
@media (max-width: 620px){ .timeline::before{ left: 50px; } .timeline-item{ grid-template-columns: 50px 1fr; } .timeline-item::after{ left:46px; } }

/* ---------- Contact page ---------- */
.contact-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: 60px; }
.contact-info-card{
  background: var(--bg-card); border:1px solid var(--line); border-radius: var(--radius); padding: 40px;
}
.contact-info-card .row{ display:flex; gap: 16px; margin-bottom: 28px; }
.contact-info-card .row .ico{
  width:42px; height:42px; border:1px solid var(--gold-dim); border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; color: var(--gold);
}
.contact-info-card .row h5{ font-size:14px; color: var(--cream); margin-bottom:4px; text-transform:uppercase; letter-spacing:1px; }
.contact-info-card .row p{ font-size: 14.5px; margin:0; }
.map-plate{
  margin-top: 30px; aspect-ratio: 16/9; border-radius: var(--radius); border:1px solid var(--line);
  background: linear-gradient(135deg, #221d18, #14110f);
  display:flex; align-items:center; justify-content:center; color: var(--text-faint); font-size:13px; letter-spacing:1px; text-transform:uppercase;
}

.form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid .full{ grid-column: 1 / -1; }
.field label{ display:block; font-size: 12.5px; letter-spacing:1.5px; text-transform:uppercase; color: var(--text-faint); margin-bottom: 10px; }
.field input, .field select, .field textarea{
  width:100%; background: var(--bg-card); border:1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; color: var(--text); font-family: var(--font-body); font-size: 14.5px;
  transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color: var(--gold-dim); }
.field textarea{ resize: vertical; min-height: 130px; }
.form-msg{ margin-top: 18px; font-size: 14px; color: var(--gold-light); display:none; }
.form-msg.show{ display:block; }
@media (max-width: 760px){ .contact-grid{ grid-template-columns: 1fr; } .form-grid{ grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
.to-top{
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 46px; height:46px; border-radius:50%;
  background: var(--gold); color:#14110f; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center; font-size:16px;
  opacity:0; pointer-events:none; transform: translateY(10px);
  transition: all .35s var(--ease);
}
.to-top.show{ opacity:1; pointer-events:auto; transform: translateY(0); }
