.tsec{position:relative;overflow:hidden}
.tsec .wrap{position:relative;z-index:2}

.tsec-text{padding:clamp(56px,8vw,104px) 0}
.tsec-text .tsec-head{max-width:62ch;margin:0 auto clamp(20px,3vw,32px)}

.tsec-bg{display:flex;align-items:center;min-height:clamp(340px,52vh,560px);padding:clamp(64px,9vw,120px) 0}
.tsec-bg.no-img.tone-light,.tsec-grid.no-img.tone-light{background:#f4f6f8}
.tsec-bg.no-img.tone-dark,.tsec-grid.no-img.tone-dark{background:#141c22}

.tsec-media{position:absolute;inset:0;z-index:0}
.tsec-img{position:absolute;inset:-12% 0;background-size:cover;background-position:center;will-change:transform}
.tsec-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.tsec-dim{position:absolute;inset:0;background:#0b1116;opacity:var(--tsec-dim,.45)}
.tsec-bg.tone-light .tsec-dim{background:#ffffff}

.tsec-in{width:100%}
.tsec-head{max-width:56ch}
.tsec-head h2{margin:0 0 .4em;font-size:clamp(26px,4.2vw,44px);line-height:1.15;letter-spacing:-.02em;text-wrap:balance}
.tsec-sub{margin:0;font-size:clamp(15px,1.6vw,19px);line-height:1.6;opacity:.86}
.tsec-body{margin-top:clamp(18px,2.6vw,30px);max-width:70ch;line-height:1.75}
.tsec-body > *:first-child{margin-top:0}
.tsec-body > *:last-child{margin-bottom:0}
.tsec-body img{max-width:100%;height:auto}

.tsec-bg.tone-dark{color:#ffffff}
.tsec-bg.tone-dark .tsec-head h2,
.tsec-bg.tone-dark .tsec-body{color:#ffffff}
.tsec-bg.tone-dark a{color:#ffffff;text-decoration:underline}

.tsec-bg.tone-light{color:#12202a}
.tsec-bg.tone-light .tsec-head h2,
.tsec-bg.tone-light .tsec-body{color:#12202a}

@media (max-width:640px){
  .tsec-bg{min-height:280px}
}
@media (prefers-reduced-motion:reduce){
  .tsec-img{transform:none !important;transition:none}
}

.tsec-grid,.tsec-works{padding:clamp(56px,8vw,104px) 0}
.tgrid{display:grid;gap:clamp(16px,2.4vw,28px);margin-top:clamp(22px,3vw,36px)}
.tgrid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tgrid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tgrid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.tgi{display:flex;flex-direction:column;gap:10px;text-decoration:none;color:inherit}
a.tgi:hover .tgi-img img{transform:scale(1.04)}
.tgi-img{overflow:hidden;aspect-ratio:4/3;background:rgba(127,127,127,.14)}
.tgi-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.tgi h3{margin:0;font-size:clamp(16px,1.8vw,20px);line-height:1.3;letter-spacing:-.01em}
.tgi p{margin:0;font-size:14.5px;line-height:1.65;opacity:.82}
.tsec-grid.tone-dark .tgi{color:#fff}
.tsec-grid.tone-light .tgi{color:#12202a}
@media (max-width:900px){
  .tgrid.cols-3,.tgrid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:600px){
  .tgrid.cols-2,.tgrid.cols-3,.tgrid.cols-4{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .tgi-img img{transition:none}
}

.tsec.is-fx{background:var(--ink,#fff)}
.tsec-fx{position:absolute;inset:0;z-index:0;overflow:hidden}
.tsec.is-full{min-height:calc(100svh - 68px);display:flex;align-items:stretch}
.tsec.is-full > .tsec-in{display:flex;flex-direction:column}
.tsec.is-full .tsec-head{margin-top:auto;margin-bottom:auto}
.tsec.is-full .tgrid{margin-top:0}
.tsec-grid.is-full,.tsec-bg.is-full{padding:clamp(48px,7vh,92px) 0 clamp(48px,7vh,92px)}
.tsec.is-fx{color:var(--paper)}
.tsec.is-fx .tsec-head h2{font-size:clamp(32px,5.6vw,62px);line-height:1.18;font-weight:700;margin:0 0 26px;max-width:26ch;
  color:#FFFFFF;text-shadow:0 2px 22px rgba(0,0,0,.62)}
.tsec.is-fx .tsec-head h2 em{font-style:normal;color:#00E0E6;text-shadow:0 2px 22px rgba(0,0,0,.55)}
.tsec.is-fx .tsec-sub{font-size:18.5px;line-height:1.85;color:#DCE4EF;max-width:52ch;opacity:1;
  text-shadow:0 1px 14px rgba(0,0,0,.62)}
.tsec.is-fx .eyebrow{color:#5FE4EA}
.tsec.is-fx .tsec-head .hero-actions{margin-top:34px}
.tsec.is-fx .tgi h3{color:var(--paper)}
.tsec.is-fx .tgi p{color:var(--fog);opacity:1}
@media (max-width:640px){
  .tsec.is-full{min-height:calc(100svh - 60px)}
}

body.thevr-fullpage{overflow:hidden}
body.thevr-fullpage .site-footer{display:none}
body.thevr-fullpage .tsec.is-full{min-height:calc(100svh - 68px)}

.tsec.is-fx .hero-actions{margin-top:30px}
.tsec.is-fx .hero-actions .btn{padding:11px 24px;border-radius:8px;font-size:15px}

.tsec-fx #thevr-field{z-index:0}
.tsec-bfly{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:1;pointer-events:none}

.tsec-cue{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);z-index:3;
  display:flex;flex-direction:column;align-items:center;gap:9px;text-decoration:none;
  color:var(--fog,#56657F);opacity:.85;transition:opacity .2s}
.tsec-cue:hover{opacity:1}
.tsec-cue-arrow{width:22px;height:22px;border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;
  transform:rotate(45deg);animation:tsecCue 1.8s ease-in-out infinite}
.tsec-cue-text{font-family:var(--mono,monospace);font-size:13px;letter-spacing:.24em}
.tsec-fx ~ .tsec-cue,.tsec-media ~ .tsec-cue{color:#fff;opacity:.95;
  filter:drop-shadow(0 1px 6px rgba(0,0,0,.65))}
@keyframes tsecCue{0%,100%{transform:rotate(45deg) translate(0,0)}50%{transform:rotate(45deg) translate(5px,5px)}}
@media (prefers-reduced-motion:reduce){ .tsec-cue-arrow{animation:none} }

.tsec-hint{position:absolute;left:50%;bottom:84px;transform:translateX(-50%);z-index:4;
  display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none;
  color:#fff;opacity:0;transition:opacity .5s ease;
  filter:drop-shadow(0 2px 8px rgba(0,0,0,.7))}
.tsec-splatwrap.hint-on .tsec-hint{opacity:.92}
.tsec-hint-svg{width:96px;height:44px;fill:none;stroke:currentColor;stroke-width:2.2;
  stroke-linecap:round;stroke-linejoin:round}
.tsec-hint-dev{animation:tsecHintSwing 2.6s ease-in-out infinite}
.tsec-hint-ar{opacity:.55}
.tsec-hint-a2{animation:tsecHintPulse 2.6s ease-in-out infinite}
.tsec-hint-touch{display:none}
.tsec-hint-ttxt{display:none}
.tsec-hint-txt{font-family:var(--mono,monospace);font-size:12px;letter-spacing:.14em;white-space:nowrap}
@keyframes tsecHintSwing{0%,100%{transform:translateX(-7px)}50%{transform:translateX(7px)}}
@keyframes tsecHintPulse{0%,100%{opacity:.2}50%{opacity:.75}}
@media (pointer:coarse){
  .tsec-hint-mouse{display:none}
  .tsec-hint-touch{display:block}
  .tsec-hint-mtxt{display:none}
  .tsec-hint-ttxt{display:block}
}
@media (prefers-reduced-motion:reduce){
  .tsec-hint-dev,.tsec-hint-a2{animation:none}
}

.ga-ia{color:var(--cyan,#00898E);margin-left:.14em;letter-spacing:.04em}

.tsec-embed{overflow:hidden;background:#0b1220}
.tsec-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;pointer-events:none}
.tsec-embed .tsec-dim{background:#0b1220;opacity:var(--tsec-dim,.45)}
.tsec.is-fx.tsec-has-embed.tone-dark .tsec-head h2,
.tsec.is-fx.tsec-has-embed.tone-dark .tsec-sub,
.tsec.is-fx.tsec-has-embed.tone-dark .tgi h3,
.tsec.is-fx.tsec-has-embed.tone-dark .tgi p{color:#fff}
.tsec-embed-fallback{position:absolute;inset:0;
  background:linear-gradient(140deg,#0b1220 0%,#14304a 55%,#0e5b63 100%)}

.tsec-veil{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;display:block}

/* 임베드 배경에서는 뷰어 자체 UI가 화면 밖으로 나가도록 키워서 잘라낸다 */
.tsec-embed iframe{width:124%;height:130%;left:-12%;top:-15%;inset:auto}
.tsec.is-fx.tone-dark .hero-actions .btn{color:#fff;border-color:rgba(255,255,255,.45)}
.tsec.is-fx.tone-dark .hero-actions .btn:hover{border-color:#fff}
.tsec.is-fx.tone-dark .eyebrow{color:#5fd8dd}

.tsec-splatwrap{background:#05070a}
.tsec-splat{position:absolute;inset:0;width:100%;height:100%;display:block}
.tsec-splatwrap .tsec-dim{background:#05070a}
.tsec-splatwrap.splat-loading::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:#0d1116 center/cover no-repeat url("hero-modelhouse.jpg?v=2");
  opacity:1;transition:opacity .55s ease}
.tsec-splatwrap.splat-ready::before{opacity:0}
.tsec-splatwrap .tsec-splat{z-index:1}
.tsec-splatbar{position:absolute;left:50%;bottom:clamp(30px,7vh,66px);transform:translateX(-50%);
  z-index:3;width:min(300px,60vw);pointer-events:none;opacity:0;transition:opacity .5s ease}
.tsec-splatwrap.splat-loading .tsec-splatbar{opacity:1}
.tsec-splatwrap.splat-ready .tsec-splatbar{opacity:0}
.tsec-splatbar-trk{height:2px;border-radius:2px;background:rgba(255,255,255,.15);overflow:hidden}
.tsec-splatbar-trk b{display:block;height:100%;width:0;border-radius:2px;
  background:linear-gradient(90deg,#00898E,#00E0E6);
  box-shadow:0 0 14px rgba(0,224,230,.8);transition:width .35s cubic-bezier(.3,.9,.4,1)}
.tsec-splatbar-cap{display:flex;justify-content:space-between;align-items:baseline;
  margin-top:12px;font-size:12px;letter-spacing:.06em;color:rgba(255,255,255,.6)}
.tsec-splatbar-cap i{font-style:normal;font-variant-numeric:tabular-nums;
  color:#00E0E6;text-shadow:0 0 18px rgba(0,224,230,.55)}

.tsec-splat{pointer-events:auto;touch-action:pan-y}
.tsec-splatwrap .tsec-dim{pointer-events:none}
.tsec-splatwrap ~ .tsec-in{pointer-events:none}
.tsec-splatwrap ~ .tsec-in a,
.tsec-splatwrap ~ .tsec-in button,
.tsec-splatwrap ~ .tsec-in input{pointer-events:auto}

.tsec-mesh{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .6s ease;pointer-events:auto;touch-action:pan-y}
.tsec-mesh.is-ready{opacity:1}

.tsec-shotui{position:absolute;right:clamp(14px,2.4vw,34px);top:50%;transform:translateY(-50%);z-index:3;
  display:flex;flex-direction:column;align-items:flex-end;gap:12px}

.tsec-shot{display:flex;align-items:center;gap:9px;padding:11px 17px;
  border:1px solid rgba(255,255,255,.26);border-radius:999px;
  background:rgba(8,14,20,.5);backdrop-filter:blur(6px);
  color:#dce6f0;font:500 13px/1 inherit;letter-spacing:.02em;cursor:pointer;
  transition:border-color .25s ease,color .25s ease,background .25s ease}
.tsec-shot::before{content:"";width:9px;height:9px;border-radius:50%;
  background:rgba(255,255,255,.32);transition:background .25s ease,box-shadow .25s ease}
.tsec-shot:hover{border-color:rgba(255,255,255,.5);color:#fff}
.tsec-shot[aria-pressed="true"]{border-color:var(--cyan,#00c2cb);color:#fff;background:rgba(8,20,26,.62)}
.tsec-shot[aria-pressed="true"]::before{background:var(--cyan,#00c2cb);box-shadow:0 0 11px var(--cyan,#00c2cb)}

.tsec-rig{display:none;flex-direction:column;gap:13px;padding:14px 18px 16px;
  border:1px solid rgba(255,255,255,.14);border-radius:16px;
  background:linear-gradient(180deg,rgba(16,28,36,.66),rgba(5,10,14,.68));
  backdrop-filter:blur(9px);box-shadow:0 14px 34px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.06)}
.tsec-shotui.on .tsec-rig{display:flex}

.tsec-rig-head{display:flex;justify-content:space-between;gap:22px}
.tsec-cap{display:flex;align-items:baseline;gap:8px;
  font-size:10px;letter-spacing:.16em;color:rgba(255,255,255,.44);white-space:nowrap}
.tsec-cap b{font-weight:600;font-size:12px;letter-spacing:0;color:var(--cyan,#00c2cb);
  font-variant-numeric:tabular-nums}

.tsec-rig-body{display:flex;align-items:flex-end;gap:20px}
.tsec-col{flex:1;min-width:118px;display:flex;flex-direction:column;gap:9px}
.tsec-lamps{display:flex;flex-direction:column;gap:7px}
.tsec-lampcap{justify-content:space-between;gap:12px}
.tsec-lampcap .tsec-val-k{font-family:var(--mono,monospace);font-size:11px;font-weight:500;
  letter-spacing:.04em;color:rgba(255,255,255,.5)}
.tsec-lamprow{display:flex;justify-content:space-between;gap:8px}
.tsec-lamp{-webkit-appearance:none;appearance:none;width:26px;height:26px;padding:0;border-radius:50%;cursor:pointer;background:var(--lc);
  border:1px solid rgba(255,255,255,.22);box-shadow:inset 0 1px 2px rgba(255,255,255,.3);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.tsec-lamp:hover{transform:translateY(-1px);border-color:rgba(255,255,255,.55)}
.tsec-lamp[aria-pressed="true"]{border-color:var(--cyan,#00c2cb);
  box-shadow:0 0 0 3px rgba(0,194,203,.22),0 0 12px rgba(0,194,203,.5)}
.tsec-lamp-a{--lc:radial-gradient(circle at 34% 30%,#ffffff,#c9dae6)}
.tsec-lamp-b{--lc:radial-gradient(circle at 34% 30%,#ffdcae,#ef8f22)}
.tsec-lamp-c{--lc:radial-gradient(circle at 34% 30%,#cfe0ff,#3f74d8)}
.tsec-lamp-d{--lc:radial-gradient(circle at 34% 30%,#ffa552,#2f6bff)}
.tsec-track{position:relative;padding-top:10px}
.tsec-track::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.2) 0 1px,transparent 1px 12px)}
.tsec-vwrap{position:relative;flex:none;width:26px;height:104px}
.tsec-vwrap::before{content:"";position:absolute;left:0;top:0;bottom:0;width:1px;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.2) 0 1px,transparent 1px 12px)}

.tsec-rig input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:4px;margin:0;
  border-radius:3px;outline:none;cursor:pointer;
  background:linear-gradient(90deg,var(--cyan,#00c2cb) 0 calc(var(--p,0) * 1%),
    rgba(255,255,255,.14) calc(var(--p,0) * 1%) 100%)}
.tsec-rig .tsec-vwrap input[type=range]{position:absolute;width:104px;height:4px;
  top:calc(50% - 2px);left:calc(50% - 52px);transform:rotate(-90deg);transform-origin:center}
.tsec-rig input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;
  border-radius:50%;background:#eafcfd;border:3px solid var(--cyan,#00c2cb);
  box-shadow:0 0 0 4px rgba(0,194,203,.16),0 0 13px rgba(0,194,203,.7);cursor:grab}
.tsec-rig input[type=range]::-webkit-slider-thumb:active{cursor:grabbing}
.tsec-rig input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;
  background:#eafcfd;border:3px solid var(--cyan,#00c2cb);
  box-shadow:0 0 0 4px rgba(0,194,203,.16),0 0 13px rgba(0,194,203,.7);cursor:grab}

@media (max-width:700px){
  .tsec-shotui{top:auto;bottom:18px;right:14px;transform:none}
  .tsec-shot{padding:9px 14px;font-size:12px}
  .tsec-rig{padding:11px 14px 13px;gap:11px}
  .tsec-col{min-width:96px;gap:7px}
  .tsec-lamp{width:22px;height:22px}
  .tsec-vwrap{height:82px}
  .tsec-rig .tsec-vwrap input[type=range]{width:82px;left:calc(50% - 41px)}
}

.tsec-modal{position:fixed;inset:0;z-index:9999;visibility:hidden;opacity:0;
  transition:opacity .3s ease,visibility 0s linear .3s}
.tsec-modal.on{visibility:visible;opacity:1;transition:opacity .4s ease}
.tsec-modal-bd{position:absolute;inset:0;background:rgba(4,8,12,.86);backdrop-filter:blur(3px)}
.tsec-modal-in{position:absolute;top:clamp(16px,3.2vh,42px);bottom:clamp(16px,3.2vh,42px);
  left:clamp(16px,3.2vw,42px);right:clamp(54px,4.6vw,62px);
  border-radius:14px;overflow:hidden;background:#05070a;
  box-shadow:0 30px 90px rgba(0,0,0,.6)}
.tsec-modal-in iframe{width:100%;height:100%;border:0;display:block}
.tsec-modal-in{transform-origin:50% 50%;transform:scale(.3);opacity:0}
.tsec-modal.on .tsec-modal-in{animation:tsecPop .6s cubic-bezier(.16,.84,.3,1) forwards}
@keyframes tsecPop{
  0%{transform:scale(.34);opacity:0}
  26%{opacity:1}
  100%{transform:scale(1);opacity:1}
}
.tsec-modal-x{opacity:0;transition:opacity .35s ease .3s}
.tsec-modal.on .tsec-modal-x{opacity:1}
.tsec-modal-load{position:absolute;inset:0;z-index:2;display:flex;
  flex-direction:column;align-items:center;justify-content:center;gap:18px;
  color:rgba(255,255,255,.75);font-size:14px;letter-spacing:.04em;
  background:#05070a;opacity:0;pointer-events:none;transition:opacity .45s ease}
.tsec-modal.loading .tsec-modal-load{opacity:1}
.tsec-modal-load i{width:46px;height:46px;border-radius:50%;
  border:3px solid rgba(255,255,255,.18);border-top-color:var(--cyan,#00c2cb);
  animation:tsecSpin .85s linear infinite}
@keyframes tsecSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  .tsec-modal-in{transform:none;opacity:1}
  .tsec-modal.on .tsec-modal-in{animation:none}
}
.tsec-modal-x{position:absolute;top:clamp(16px,3.2vh,42px);right:calc(clamp(54px,4.6vw,62px) - 38px);z-index:3;width:38px;height:38px;
  border:1px solid rgba(255,255,255,.28);border-radius:50%;
  background:rgba(8,14,20,.62);backdrop-filter:blur(6px);
  color:#e6eef6;font:300 24px/1 inherit;cursor:pointer;
  transition:border-color .2s ease,background .2s ease}
.tsec-modal-x:hover{border-color:rgba(255,255,255,.6);background:rgba(8,14,20,.85)}
body.admin-bar .tsec-modal{top:32px}
@media (max-width:782px){body.admin-bar .tsec-modal{top:46px}}
@media (max-width:700px){
  .tsec-modal-in{top:10px;bottom:10px;left:10px;right:52px;border-radius:10px}
  .tsec-modal-x{top:10px;right:14px}
}

/* 포트폴리오 목록 섹션 */
.tw-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:clamp(18px,2.4vw,28px)}
.tw-tab{padding:9px 18px;border:1px solid rgba(127,127,127,.34);border-radius:999px;
  background:transparent;color:inherit;font:500 13.5px/1 inherit;letter-spacing:.01em;
  cursor:pointer;transition:background .2s ease,border-color .2s ease,color .2s ease}
.tw-tab:hover{border-color:currentColor}
.tw-tab.is-on{background:var(--cyan,#00898E);border-color:var(--cyan,#00898E);color:#fff}
.tw-grid{margin-top:clamp(16px,2vw,24px)}
.tw-grid .tw-wide .tgi-img{aspect-ratio:16/9}
@media (max-width:900px){.tw-grid .tw-wide .tgi-img{aspect-ratio:4/3}}
.tw-item[hidden]{display:none !important}
.tw-badge{align-self:flex-start;padding:3px 10px;border-radius:999px;
  font-size:11px;letter-spacing:.06em;background:rgba(127,127,127,.18)}
.tw-tags{display:flex;flex-wrap:wrap;gap:8px;font-size:12.5px;opacity:.62}
.tw-tags i{font-style:normal}
.tw-noimg{display:block;width:100%;height:100%;
  background:repeating-linear-gradient(45deg,rgba(127,127,127,.10) 0 10px,transparent 10px 20px)}
.tw-empty{margin-top:22px;opacity:.6;font-size:14.5px}

.tw-ph{pointer-events:none}
.tw-ph-bar{display:block;border-radius:4px;background:rgba(127,127,127,.16)}
.tw-ph-t{height:17px;width:62%;margin-top:2px}
.tw-ph-a{height:11px;width:92%}
.tw-ph-b{height:11px;width:74%}
.tsec-works.tone-dark .tw-ph-bar,.tsec-works.tone-dark .tw-noimg{background-color:rgba(255,255,255,.10)}

.tsec-modal-note{position:absolute;left:0;right:0;bottom:0;z-index:2;
  padding:14px 20px 16px;text-align:center;font-size:13.5px;line-height:1.5;color:#dbe6ef;
  background:linear-gradient(180deg,rgba(5,8,12,0),rgba(5,8,12,.9) 45%);pointer-events:none}
.tsec-modal-note a{margin-left:12px;color:var(--cyan,#00c2cb);text-decoration:none;
  border-bottom:1px solid currentColor;pointer-events:auto}
.tsec-modal-note[hidden]{display:none !important}
