/* =====================================================================
   Tahiti Constructions: Interior Design & Fit-Out service page
   Loaded after tahiti.css. Everything is namespaced "i-" so nothing leaks
   into the shared header, footer or other pages.
   ===================================================================== */
@keyframes tabfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.i-gold { color: #9a7416; }
.i-gold-dark, .t-dark .i-gold-dark { color: var(--yellow); }
.i-accent { color: #d4a02a; font-weight: 400; }
.i-sand { background: #fff0cf; }
.i-pale { background: #fff8e6; }
.i-grey { background: #f2f2ef; }

.i-title { font-family: var(--head); font-weight: 400; font-size: clamp(34px, 4.6vw, 66px); line-height: 1.05; letter-spacing: -.035em; margin: 0; }
.i-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 60px; flex-wrap: wrap; margin-bottom: clamp(34px, 5vw, 64px); }
.i-head > p { max-width: 400px; font-size: 16px; line-height: 1.7; color: #5b5a56; margin: 0; }
.t-dark .i-head > p { color: rgba(255,255,255,.62); }

/* ---------- hero ---------- */
.i-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 140px var(--pad) 110px; background: #111; isolation: isolate; overflow: hidden; }
.i-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.3) 45%, rgba(10,10,10,.7) 100%); }
.i-hero-bg { position: absolute; inset: -8% 0; z-index: -2; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.i-hero-bg i { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; transform-origin: 50% 40%; animation: kenburns 22s ease-out both; }
.i-hero-inner { max-width: 980px; }
.i-hero .t-eyebrow { justify-content: center; color: rgba(255,255,255,.85); margin-bottom: 22px; }
.i-hero .t-eyebrow::before { display: none; }
.i-hero h1 { margin: 0; font-family: var(--head); font-weight: 500; letter-spacing: -.045em; line-height: 1; font-size: clamp(34px, 6.6vw, 96px); }
.i-hero h1 .line { display: block; overflow: hidden; padding: .04em 0 .12em; margin-bottom: -.12em; }
.i-hero h1 .line > span { display: block; animation: lineUp 1.15s cubic-bezier(.2,.75,.2,1) backwards; animation-delay: calc(var(--l, 0) * .15s + .35s); }
.i-hero [data-a] { animation: fadeUp .95s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--a, 0) * .12s + .3s); }
.i-hero p { max-width: 560px; margin: 34px auto 44px; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.7; color: rgba(255,255,255,.85); }
.i-hero-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px 40px; }
.i-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px; color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.4); transition: color .25s, border-color .25s; }
.i-link svg { width: 12px; height: 12px; transition: transform .3s; }
.i-link:hover { color: var(--yellow); border-color: var(--yellow); }
.i-link:hover svg { transform: translate(3px, -3px); }

/* ---------- art of sanctuary living ---------- */
.i-art { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; max-width: 1240px; margin: 0 auto; }
.i-art .i-title { font-size: clamp(34px, 4.2vw, 58px); font-weight: 500; }
.i-art .lead { margin: 28px 0 16px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; }
.i-art .small { max-width: 520px; margin: 0 0 36px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.i-art-img { position: relative; }
.i-art-img .img-wrap { aspect-ratio: 1 / 1.04; overflow: hidden; background: #cfc8ba; }
.i-art-img img { width: 100%; height: 100%; object-fit: cover; }
.i-art-img blockquote { position: absolute; left: -12%; bottom: 8%; width: min(330px, 72%); margin: 0; padding: 28px 30px; background: #fceecb; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.js .reveal[data-reveal="fade"] { transform: none; }

/* ---------- expertise ---------- */
.i-exp-list { border-top: 1px solid var(--line); }
.i-exp-row { position: relative; display: grid; grid-template-columns: 44px minmax(200px, 1fr) 1.3fr minmax(150px, .7fr) 24px; gap: clamp(16px, 2.4vw, 36px); align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); }
.i-exp-row::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.i-exp-row:hover::after { transform: scaleX(1); }
.i-exp-row .n { font-size: 12px; color: #9a7416; }
.i-exp-row h3 { margin: 0; font-family: var(--head); font-weight: 500; font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -.02em; line-height: 1.2; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.i-exp-row p { margin: 0; font-size: 14px; line-height: 1.7; color: #6b6a66; }
.i-exp-row .where { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #9a7416; }
.i-exp-row svg { width: 16px; justify-self: end; opacity: .45; transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.i-exp-row:hover h3 { transform: translateX(8px); }
.i-exp-row:hover svg { opacity: 1; transform: translateX(5px); }

/* ---------- difference ---------- */
.i-diff { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(40px, 5vw, 64px) 0 clamp(50px, 6vw, 90px); }
.i-diff > div { padding: 0 clamp(20px, 3vw, 48px); border-left: 1px solid var(--line); }
.i-diff > div:first-child { padding-left: 0; border-left: 0; }
.i-diff .dia { width: 30px; height: 30px; margin-bottom: 20px; color: var(--gold); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.i-diff > div:hover .dia { transform: rotate(90deg); }
.i-diff h3 { margin: 0 0 10px; font-family: var(--head); font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.i-diff p { margin: 0; max-width: 300px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.js .i-diff .dia path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.i-diff.in .dia path { animation: draw 1.6s calc(var(--i, 0) * .18s + .3s) cubic-bezier(.4,0,.2,1) forwards; }
.i-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.i-stats > div { display: flex; align-items: center; gap: 16px; }
.i-stats .big { font-family: var(--head); font-weight: 300; font-size: clamp(44px, 5.4vw, 80px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.i-stats .lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }

/* ---------- signature showcase ---------- */
.i-sig { padding-bottom: 0; }
.i-show { max-width: 100%; }
.i-stage { position: relative; aspect-ratio: 16 / 8.2; overflow: hidden; background: #1a1a1a; touch-action: pan-y; }
.i-pane { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.i-pane.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.i-pane > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 7s ease-out; -webkit-user-drag: none; }
.i-pane.on > img { transform: scale(1); }
.i-pane::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); pointer-events: none; }
.i-pane .meta { position: absolute; z-index: 2; left: clamp(20px, 3vw, 44px); right: clamp(20px, 3vw, 44px); bottom: clamp(20px, 3vw, 40px); }
.i-pane .meta > * { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .8s cubic-bezier(.2,.7,.2,1); }
.i-pane.on .meta > * { opacity: 1; transform: none; }
.i-pane.on .meta > :nth-child(1) { transition-delay: .35s; }
.i-pane.on .meta > :nth-child(2) { transition-delay: .45s; }
.i-pane.on .meta > :nth-child(3) { transition-delay: .55s; }
.i-pane small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.i-pane h3 { margin: 8px 0 12px; font-family: var(--head); font-weight: 400; font-size: clamp(28px, 4.4vw, 64px); letter-spacing: -.04em; line-height: 1; }
.i-pane p { margin: 0; max-width: 480px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.78); }
.i-tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: #161616; }
.i-tabs button { position: relative; display: flex; align-items: baseline; gap: 14px; padding: 24px 26px; background: none; border: 0; color: rgba(255,255,255,.5); text-align: left; font: 500 14px/1.4 var(--body); cursor: pointer; transition: color .3s, background .3s; }
.i-tabs button small { font-size: 11px; color: var(--yellow); }
.i-tabs button:hover { color: #fff; }
.i-tabs button.on { color: #fff; background: #202020; }
.i-tabs button::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; }
.i-tabs button.on::after { animation: tabfill var(--dur, 6.5s) linear forwards; animation-play-state: paused; }
.i-show.in:not(.is-paused) .i-tabs button.on::after { animation-play-state: running; }

/* ---------- principles + journey ---------- */
.i-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 100px); max-width: 1240px; margin: 0 auto; align-items: start; }
.i-sub { margin: 28px 0 0; max-width: 400px; font-size: 16px; line-height: 1.7; color: #5b5a56; }
.i-prin-list { padding-top: 10px; }
.i-prin { display: grid; grid-template-columns: 44px 1fr; padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.i-prin:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.i-prin .n { padding-top: 4px; font-size: 12px; color: #9a7416; }
.i-prin h3 { margin: 0 0 8px; font-family: var(--head); font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.i-prin p { margin: 0; max-width: 480px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.i-calm-list { border-top: 1px solid var(--line); }
.i-calm-row { position: relative; display: grid; grid-template-columns: 40px 1fr 1.5fr; gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.i-calm-row .n { font-size: 12px; color: #9a7416; }
.i-calm-row h3 { margin: 0; font-family: var(--head); font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em; transition: color .3s, transform .4s cubic-bezier(.2,.7,.2,1); }
.i-calm-row p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.i-calm-row:hover h3 { color: #9a7416; transform: translateX(6px); }

/* ---------- before / after ---------- */
.i-ba { position: relative; width: 100%; max-width: 1240px; margin: 0 auto; aspect-ratio: 1120 / 560; overflow: hidden; cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y; background: #222; }
.i-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.i-ba-top { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.i-ba .tag { position: absolute; top: 22px; z-index: 2; padding: 9px 16px; border-radius: 30px; background: rgba(17,17,17,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.i-ba .tag.l { left: 22px; } .i-ba .tag.r { right: 22px; }
.i-ba .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; z-index: 3; transition: box-shadow .25s; }
.i-ba .handle:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--yellow); }
.i-ba .handle i { position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-style: normal; font-size: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: ew-resize; }
.i-ba .handle i::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--yellow); animation: pulse 2.2s ease-out infinite; pointer-events: none; }
.i-ba.touched .handle i::after, .t-ba.touched .handle i::after { display: none; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1000px) {
  .i-art, .i-split { grid-template-columns: 1fr; }
  .i-art-img blockquote { left: 16px; bottom: -28px; width: min(340px, calc(100% - 32px)); }
  .i-art-img { margin-bottom: 28px; }
  .i-exp-row { grid-template-columns: 34px 1fr 24px; row-gap: 10px; padding: 26px 0; }
  .i-exp-row h3 { grid-column: 2; }
  .i-exp-row svg { grid-column: 3; grid-row: 1; }
  .i-exp-row p, .i-exp-row .where { grid-column: 2 / 4; }
  .i-exp-row:hover h3 { transform: none; }
  .i-stage { aspect-ratio: 16 / 10; }
  .i-calm-row { grid-template-columns: 34px 1fr; row-gap: 8px; }
  .i-calm-row p { grid-column: 2; }
}
@media (max-width: 860px) {
  .i-hero { padding: 120px var(--pad) 90px; }
  .i-hero-cta { flex-direction: column; align-items: stretch; gap: 22px; }
  .i-hero-cta .t-btn { justify-content: space-between; min-height: 54px; }
  .i-hero-cta .i-link { align-self: center; }
  .i-head > p { max-width: none; }
  .i-diff { grid-template-columns: 1fr; gap: 0; }
  .i-diff > div, .i-diff > div:first-child { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .i-diff > div:first-child { border-top: 0; padding-top: 0; }
  .i-stats { grid-template-columns: 1fr; gap: 0; }
  .i-stats > div { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .i-stats > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .i-tabs { grid-template-columns: 1fr; }
  .i-tabs button { padding: 18px 22px; border-top: 1px solid rgba(255,255,255,.06); }
  .i-ba { aspect-ratio: 4 / 3; }
  .i-ba .tag { top: 14px; padding: 8px 12px; font-size: 10px; }
  .i-ba .tag.l { left: 14px; } .i-ba .tag.r { right: 14px; }
}
@media (max-width: 560px) {
  .i-title, .i-art .i-title { font-size: clamp(31px, 9vw, 42px); }
  .i-stage { aspect-ratio: 4 / 5; }
  .i-pane p { display: none; }
  .i-pane h3 { font-size: clamp(26px, 8vw, 36px); }
  .i-art .t-btn { width: 100%; justify-content: space-between; }
  .i-art-img blockquote { padding: 22px 22px; }
  .i-ba { aspect-ratio: 4 / 5; }
  .i-prin { grid-template-columns: 36px 1fr; }
  .i-stats .big { font-size: 56px; }
}

/* =====================================================================
   Reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .i-hero-bg i, .i-hero [data-a], .i-hero h1 .line > span, .i-ba .handle i::after { animation: none; }
  .i-pane, .i-pane > img, .i-pane .meta > * { transition: none; }
  .i-pane > img { transform: none; }
  .i-tabs button.on::after { animation: none; transform: scaleX(1); }
  .js .i-diff .dia path { stroke-dashoffset: 0; }
  .i-diff.in .dia path { animation: none; }
}
