/* ===================================================================
   Heartism — shared stylesheet
   =================================================================== */
:root{
  --black:#0d0d0d;
  --ink:#1a1a1a;
  --muted:#6b6b6b;
  --line:#e6e6e6;
  --bg:#ffffff;
  --soft:#f6f5f2;
  --accent:#b89464;
  --max:1280px;
  --pad:clamp(20px,5vw,80px);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:"DM Sans","Nunito Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  color:var(--ink);background:var(--bg);line-height:1.6;-webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.wrap{max-width:var(--max);margin:0 auto;padding-left:var(--pad);padding-right:var(--pad)}
.eyebrow{text-transform:uppercase;letter-spacing:.28em;font-size:12px;font-weight:600;color:var(--accent);display:inline-block;margin-bottom:18px}
h1,h2,h3,h4,h5{font-weight:500;line-height:1.15;letter-spacing:-.01em}
h2{font-size:clamp(28px,4vw,46px)}
.section{padding:clamp(64px,9vw,120px) 0}
.lead{color:var(--muted);font-size:18px;max-width:640px;margin-top:16px}

.btn{display:inline-flex;align-items:center;gap:10px;border:1px solid var(--ink);border-radius:40px;padding:13px 28px;font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:.12em;transition:.25s ease;background:transparent;color:var(--ink);cursor:pointer}
.btn:hover{background:var(--ink);color:#fff}
.btn--light{border-color:#fff;color:#fff}
.btn--light:hover{background:#fff;color:var(--ink)}

/* ---------- Header ---------- */
header{position:fixed;top:0;left:0;right:0;z-index:50;transition:.35s ease}
.nav{display:flex;align-items:center;justify-content:space-between;padding:22px var(--pad)}
.logo{font-size:22px;font-weight:700;letter-spacing:.02em;color:#fff;transition:.35s ease;display:block}
.logo b{color:var(--accent)}
.logo img{height:46px;width:auto;display:block}
.nav--center .logo img{height:54px}
.menu{display:flex;gap:34px;list-style:none}
.menu a{font-size:14px;font-weight:500;color:#fff;letter-spacing:.02em;transition:.35s ease;position:relative}
.menu a::after{content:"";position:absolute;left:0;bottom:-6px;height:1px;width:0;background:currentColor;transition:.3s}
.menu a:hover::after,.menu a.active::after{width:100%}
header.scrolled{background:#fff;box-shadow:0 4px 30px rgba(0,0,0,.06)}
header.scrolled .logo{color:var(--ink)}
header.scrolled .menu a{color:var(--ink)}
/* solid header variant for inner pages */
header.solid{background:#fff;box-shadow:0 4px 30px rgba(0,0,0,.06)}
header.solid .logo{color:var(--ink)}
header.solid .menu a{color:var(--ink)}
header.solid .burger span{background:var(--ink)}
.burger{display:none;flex-direction:column;gap:5px;background:none;border:0;cursor:pointer;z-index:60}
.burger span{width:26px;height:2px;background:#fff;transition:.3s}
header.scrolled .burger span{background:var(--ink)}

/* Centered header variant — logo on top, menu beneath */
.nav--center{flex-direction:column;justify-content:center;align-items:center;gap:14px;position:relative}
.nav--center .logo{font-size:26px}
.nav--center .menu{justify-content:center}

/* ---------- Hero (home) ---------- */
.hero{position:relative;height:100vh;min-height:620px;overflow:hidden}
/* Starts below the fixed header instead of underneath it.
   --header-h is measured at runtime in main.js */
.hero--offset{margin-top:var(--header-h,116px);height:calc(100vh - var(--header-h,116px));min-height:520px}
.hero__slide{position:absolute;inset:0;opacity:0;transition:opacity 1.2s ease;background-size:cover;background-position:center;transform:scale(1.05)}
.hero__slide.active{opacity:1;transform:scale(1)}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,.15) 40%,rgba(0,0,0,.5))}
/* Text-free hero — lighter veil so the artwork reads cleanly */
.hero--plain::after{background:linear-gradient(180deg,rgba(0,0,0,.28),rgba(0,0,0,.05) 45%,rgba(0,0,0,.25))}
.hero__inner{position:relative;z-index:2;height:100%;display:flex;flex-direction:column;justify-content:flex-end;padding:0 var(--pad) clamp(60px,10vh,120px);max-width:var(--max);margin:0 auto}
.hero h1{color:#fff;font-size:clamp(34px,6vw,72px);font-weight:400;max-width:900px}
.hero p{color:rgba(255,255,255,.85);margin-top:22px;max-width:520px;font-size:18px}
.hero__cta{margin-top:34px}
.dots{position:absolute;bottom:38px;right:var(--pad);z-index:3;display:flex;gap:10px}
.dots button{width:10px;height:10px;border-radius:50%;border:0;background:rgba(255,255,255,.45);cursor:pointer;transition:.3s}
.dots button.active{background:#fff;width:26px;border-radius:6px}

/* ---------- Page banner (inner pages) ---------- */
.banner{position:relative;min-height:56vh;display:flex;align-items:flex-end;color:#fff;overflow:hidden;background-size:cover;background-position:center}
.banner--offset{margin-top:var(--header-h,74px)}
.banner::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.6))}
.banner__inner{position:relative;z-index:2;max-width:var(--max);margin:0 auto;width:100%;padding:0 var(--pad) clamp(50px,8vw,90px)}
.banner h1{font-size:clamp(34px,5.5vw,64px);font-weight:400;max-width:900px}
.banner p{margin-top:18px;max-width:620px;color:rgba(255,255,255,.85);font-size:18px}
.crumb{font-size:13px;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);margin-bottom:16px;font-weight:600}

/* ---------- Services: expanding tab panels ---------- */
.tabs{display:flex;gap:10px;height:clamp(440px,62vh,600px)}
.tab{
  position:relative;flex:1 1 0;min-width:86px;border-radius:14px;overflow:hidden;cursor:pointer;
  display:flex;align-items:flex-end;color:#fff;
  transition:flex-grow .7s cubic-bezier(.2,.7,.2,1);
}
.tab.active{flex-grow:3.6}
.tab__img{position:absolute;inset:0}
.tab__img img{width:100%;height:100%;object-fit:cover;transition:transform 1s cubic-bezier(.2,.7,.2,1)}
.tab.active .tab__img img{transform:scale(1.05)}
.tab::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.1) 25%,rgba(0,0,0,.82));transition:.5s}
.tab.active::after{background:linear-gradient(180deg,rgba(0,0,0,.15) 15%,rgba(0,0,0,.8))}
.tab__body{position:relative;z-index:2;padding:30px;width:100%;min-width:0}
.tab__title{
  writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;
  font-size:20px;font-weight:500;letter-spacing:.01em;transition:font-size .4s ease;
}
.tab.active .tab__title{writing-mode:horizontal-tb;transform:none;font-size:28px}
.tab__desc{
  width:min(430px,34vw);opacity:0;visibility:hidden;max-height:0;overflow:hidden;
  transition:opacity .35s ease,max-height .6s ease,margin .6s ease;
}
.tab.active .tab__desc{opacity:1;visibility:visible;max-height:320px;margin-top:16px;transition-delay:.18s}
.tab__desc p{font-size:15px;color:rgba(255,255,255,.85);margin-bottom:20px}
.tab__link{
  display:inline-block;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.14em;
  border-bottom:1px solid rgba(255,255,255,.6);padding-bottom:3px;
}
.tab__link:hover{border-color:#fff}

/* ---------- Section heads ---------- */
.head--split{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:20px;margin-bottom:48px}
.soft{background:var(--soft)}

/* ---------- Project grid ---------- */
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.project{cursor:pointer}
.project__img{border-radius:12px;overflow:hidden;aspect-ratio:16/11;margin-bottom:18px}
.project__img img{width:100%;height:100%;object-fit:cover;transition:.6s ease}
.project:hover .project__img img{transform:scale(1.06)}
.project h4{font-size:21px;font-weight:500}
.project .tag{display:inline-block;margin-top:8px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);font-weight:600}
.project .sub{color:var(--muted);font-size:14px;margin-top:6px}

/* ---------- Testimonials ---------- */
.quotes{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-top:52px}
.quote{border:1px solid var(--line);border-radius:14px;padding:38px 32px;background:#fff}
.quote__mark{font-size:60px;line-height:.4;color:var(--accent);font-family:Georgia,serif;display:block;height:34px}
.quote p{font-size:16px;color:var(--ink);margin:18px 0 26px;font-style:italic}
.quote h6{font-size:15px;font-weight:600;letter-spacing:.02em}
.quote small{display:block;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.12em;margin-top:4px}

/* ---------- Expertise ---------- */
.expertise{background:var(--ink);color:#fff}
.exp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;margin-top:52px;border:1px solid rgba(255,255,255,.12)}
.exp{padding:44px 30px;background:var(--ink);transition:.35s;min-height:180px;display:flex;flex-direction:column;justify-content:space-between}
.exp:hover{background:#161616}
.exp .num{font-size:13px;color:var(--accent);letter-spacing:.1em}
.exp h4{font-size:22px;font-weight:400}

/* ---------- Why ---------- */
.why-layout{display:grid;grid-template-columns:0.85fr 1.15fr;gap:56px;align-items:start;margin-top:52px}
.why-media{position:sticky;top:120px;border-radius:16px;overflow:hidden;aspect-ratio:3/4}
.why-media img{width:100%;height:100%;object-fit:cover}
.why-list{border-top:1px solid var(--line)}
.why-list .why{padding:30px 0;border-bottom:1px solid var(--line)}
.why-list .why:last-child{border-bottom:0}
.why h4{font-size:22px;font-weight:500;margin-bottom:10px}
.why p{color:var(--muted);font-size:16px}

/* ---------- CTA ---------- */
.cta{text-align:center;color:#fff;position:relative;overflow:hidden;background:url("assets/img/2024/08/02-66c08f1d98673.webp") center/cover fixed}
.cta::after{content:"";position:absolute;inset:0;background:rgba(10,10,10,.6)}
.cta .wrap{position:relative;z-index:2;padding-top:clamp(90px,12vw,150px);padding-bottom:clamp(90px,12vw,150px)}
.cta h2{font-size:clamp(30px,5vw,56px);font-weight:400;max-width:760px;margin:0 auto 34px}

/* ---------- Story ---------- */
.two-col{display:grid;grid-template-columns:1.1fr .9fr;gap:60px;align-items:center}
.two-col p{color:var(--muted);font-size:17px;margin-top:18px}
.gallery4{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.gallery4 img{width:100%;height:100%;object-fit:cover;border-radius:10px;aspect-ratio:4/3}
.statement{font-size:clamp(26px,3.4vw,40px);font-weight:400;max-width:920px;line-height:1.25}
.team-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:52px}
.member img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px;background:var(--soft)}
.member .ph{width:100%;aspect-ratio:1/1;border-radius:12px;background:var(--soft);display:flex;align-items:center;justify-content:center;font-size:34px;color:var(--accent);font-weight:600}
.member h4{font-size:18px;font-weight:500;margin-top:16px}
.member span{color:var(--muted);font-size:14px}

/* ---------- Future opus ---------- */
.opus-row{display:grid;grid-template-columns:1fr 1fr;min-height:70vh}
.opus-row.rev .opus-txt{order:2}
.opus-img{background-size:cover;background-position:center;min-height:340px}
.opus-txt{display:flex;flex-direction:column;justify-content:center;padding:clamp(40px,6vw,90px)}
.opus-txt h2{font-size:clamp(26px,3.4vw,42px);font-weight:400;margin-bottom:16px}
.opus-txt.dark{background:var(--ink);color:#fff}
.opus-txt cite{display:block;margin-top:24px;color:var(--muted);font-style:normal;font-size:15px}
.opus-txt.dark cite{color:#9a9a9a}

/* ---------- Contact ---------- */
.contact-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:60px}
.info-list{list-style:none;margin-top:30px}
.info-list li{display:flex;gap:16px;padding:22px 0;border-bottom:1px solid var(--line)}
.info-list .ic{width:44px;height:44px;border-radius:50%;background:var(--soft);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--accent);font-size:18px}
.info-list h5{font-size:13px;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);margin-bottom:4px;font-weight:600}
.info-list p{font-size:16px}
form.cf{display:grid;gap:18px;background:var(--soft);padding:clamp(28px,4vw,48px);border-radius:16px}
form.cf .row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
form.cf input,form.cf textarea{width:100%;border:1px solid var(--line);background:#fff;border-radius:10px;padding:14px 16px;font:inherit;font-size:15px;color:var(--ink)}
form.cf textarea{min-height:140px;resize:vertical}
form.cf input:focus,form.cf textarea:focus{outline:none;border-color:var(--accent)}
.map{margin-top:0;border:0;width:100%;height:420px;border-radius:16px;filter:grayscale(.2)}
/* Zoho CRM embedded web form — keep it inside the column and tidy */
.zoho-form{background:var(--soft);border-radius:16px;padding:clamp(20px,3vw,32px);overflow:hidden}
.zoho-form #crmWebToEntityForm,.zoho-form form{max-width:100%!important;margin:0!important;background:transparent!important}
.zoho-form img{max-width:100%}
.zoho-form table{width:100%!important}
.zoho-form input[type=text],.zoho-form input[type=email],.zoho-form input[type=tel],
.zoho-form textarea,.zoho-form select{max-width:100%}

/* ---------- Project detail ---------- */
.proj-detail{margin-top:var(--header-h,116px)}
.proj-hero{position:relative;min-height:64vh;display:flex;align-items:flex-end;color:#fff;overflow:hidden;background-size:cover;background-position:center}
.proj-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,.65))}
.proj-hero__inner{position:relative;z-index:2;max-width:var(--max);margin:0 auto;width:100%;padding:0 var(--pad) clamp(46px,7vw,84px)}
.proj-hero h1{font-size:clamp(32px,5vw,60px);font-weight:400;max-width:900px}
.proj-hero .tag{display:inline-block;margin-bottom:16px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);font-weight:600}
.proj-intro{max-width:760px}
.proj-intro p{font-size:19px;color:var(--muted);margin-top:16px}
.proj-meta{display:flex;gap:48px;flex-wrap:wrap;margin-top:36px;border-top:1px solid var(--line);padding-top:28px}
.proj-meta div h5{font-size:12px;text-transform:uppercase;letter-spacing:.14em;color:var(--muted);margin-bottom:6px;font-weight:600}
.proj-meta div p{font-size:17px;color:var(--ink);margin:0}
.proj-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:12px}
.proj-gallery a{display:block;border-radius:12px;overflow:hidden;aspect-ratio:4/3}
.proj-gallery a:first-child{grid-column:1 / -1;aspect-ratio:16/8}
.proj-gallery img{width:100%;height:100%;object-fit:cover;transition:.6s ease}
.proj-gallery a:hover img{transform:scale(1.04)}
.proj-nav{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:60px;border-top:1px solid var(--line);padding-top:34px}
.proj-nav a{font-weight:600;font-size:15px}
.proj-nav a .lbl{display:block;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.proj-nav a:hover{color:var(--accent)}
/* lightbox */
.lb{position:fixed;inset:0;background:rgba(8,8,8,.92);z-index:200;display:none;align-items:center;justify-content:center;padding:30px}
.lb.open{display:flex}
.lb img{max-width:92vw;max-height:88vh;border-radius:8px}
.lb__close{position:absolute;top:22px;right:28px;color:#fff;font-size:34px;background:none;border:0;cursor:pointer;line-height:1}
.lb__nav{position:absolute;top:50%;transform:translateY(-50%);color:#fff;font-size:40px;background:none;border:0;cursor:pointer;padding:10px 18px}
.lb__nav.prev{left:8px}.lb__nav.next{right:8px}
@media(max-width:760px){
  .proj-gallery{grid-template-columns:1fr}
  .proj-gallery a:first-child{aspect-ratio:4/3}
}

/* ---------- Footer ---------- */
footer{background:#0a0a0a;color:#cfcfcf;padding:80px var(--pad) 34px}
.foot{max-width:var(--max);margin:0 auto;display:grid;grid-template-columns:1.4fr 1fr 1.2fr;gap:50px}
.foot__logo{font-size:26px;font-weight:700;color:#fff;margin-bottom:18px}
.foot__logo b{color:var(--accent)}
.foot__logo img{height:62px;width:auto;display:block}
.foot h5{color:#fff;font-size:13px;text-transform:uppercase;letter-spacing:.18em;margin-bottom:22px;font-weight:600}
.foot ul{list-style:none}
.foot li{margin-bottom:12px;font-size:15px}
.foot a:hover{color:#fff}
.foot__bottom{max-width:var(--max);margin:60px auto 0;padding-top:26px;border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:13px;color:#8a8a8a}

/* ---------- Reveal ---------- */
.reveal{opacity:0;transform:translateY(28px);transition:.8s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}

/* ---------- Responsive ---------- */
@media(max-width:1024px){
  .tab__desc{width:auto}
  .grid3,.quotes,.team-grid{grid-template-columns:1fr 1fr}
  .exp-grid{grid-template-columns:repeat(2,1fr)}
  .cta{background-attachment:scroll}
  .two-col,.contact-grid,.opus-row,.why-layout{grid-template-columns:1fr}
  .why-media{position:relative;top:0;aspect-ratio:16/10}
  .opus-row.rev .opus-txt{order:0}
}
/* Tablet & touch: the services accordion expands on hover, which
   doesn't work on touch — stack it with every panel open instead. */
@media(max-width:900px){
  .tabs{flex-direction:column;height:auto;gap:14px}
  .tab,.tab.active{flex:none;min-height:300px}
  .tab__title,.tab.active .tab__title{writing-mode:horizontal-tb;transform:none;font-size:26px}
  .tab__desc{opacity:1;visibility:visible;max-height:none;margin-top:16px;width:auto}
  /* testimonials read better one-per-row on tablet than 2 + orphan */
  .quotes{grid-template-columns:1fr}
  /* Hero banners have text baked into the image (1920x1024). A full-height
     hero center-crops a narrow slice and slices through that text. Instead
     size the hero to the image's own aspect ratio so the whole banner —
     text and all — is shown, uncropped. */
  .hero,.hero--offset{height:auto;min-height:0;aspect-ratio:1920/1024}
  .hero__slide{background-position:center}
}
@media(max-width:760px){
  .menu{position:fixed;inset:0 0 0 auto;width:78%;max-width:340px;background:#fff;flex-direction:column;padding:100px 34px;gap:26px;transform:translateX(100%);transition:.4s ease;box-shadow:-10px 0 40px rgba(0,0,0,.1)}
  .menu.open{transform:none}
  .menu a{color:var(--ink)!important;font-size:18px}
  .burger{display:flex}
  /* centered header: keep logo centred, park the burger on the right */
  .nav--center .burger{position:absolute;right:var(--pad);top:50%;transform:translateY(-50%)}
  .grid3,.quotes,.exp-grid,.why-grid,.foot,.team-grid{grid-template-columns:1fr}
  .why:nth-child(odd),.why:nth-child(even){padding:32px 0;border-left:0}
  .foot__bottom{flex-direction:column}
  form.cf .row{grid-template-columns:1fr}
  .team-grid{grid-template-columns:1fr 1fr}
}
