/* tectoar.com/inside-tour/ : visual tour of Inside. Colours = TECTOAR tokens (see .claude/skills/tectoar-design-system). */
/* same as the main site (kimia 2026-12-01): normal text = Jost 300, bold = Jost 400; never 700 */
@font-face{font-family:Jost; src:url(/fonts/jost-300.woff2) format("woff2"); font-weight:400; font-display:swap;}
@font-face{font-family:Jost; src:url(/fonts/jost-400.woff2) format("woff2"); font-weight:700; font-display:swap;}
:root{--ink:#141414; --paper:#f5f4f0; --line:#e6e3dc; --mute:#6b6a66; --acc:#b07a2a; --acc-t:#8a5d1c; --acc-l:#d9b27a; --blue:#2469c3;
    --ease:cubic-bezier(.2,.7,.2,1); --bounce:cubic-bezier(.34,1.25,.64,1);}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0; font-family:Jost, sans-serif; color:var(--ink); background:var(--paper); -webkit-font-smoothing:antialiased;}
svg{display:block; max-width:100%;}
a{color:inherit;}

/* top bar */
.top{position:sticky; top:0; z-index:5; background:rgba(20,20,20,.9); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); color:#fff;
    display:flex; justify-content:space-between; align-items:center; padding:12px clamp(16px,5vw,64px);}
.top .logo img{height:16px; display:block;}
.top .r{margin-left:auto; margin-right:clamp(14px,2.4vw,30px); display:flex; gap:clamp(14px,2.4vw,30px); align-items:center; font-size:12px; letter-spacing:.2em; text-transform:uppercase;}
.top .r a{text-decoration:none; opacity:.8; transition:opacity .2s;}
@media (hover:hover){.top .r a:hover{opacity:1;}}
.top .cta{background:#fff; color:var(--ink); padding:7px 16px; border-radius:20px; letter-spacing:.12em; font-size:12px; text-transform:uppercase; text-decoration:none;}
/* keyboard focus: one visible ring everywhere (blue token) */
a:focus-visible, button:focus-visible, .track:focus-visible{outline:3px solid var(--blue); outline-offset:3px; border-radius:6px;}
.dark a:focus-visible, .dark button:focus-visible, .top a:focus-visible{outline-color:#86b6ef;}

/* sections */
section{padding:clamp(64px,8vw,120px) clamp(16px,5vw,64px); text-align:center; overflow:hidden;}
.dark{background:#0d0d0d; color:#f5f4f0;}
/* every light section has the same ground (paper) and white cards; only the hero is dark */
/* section links land below the sticky top bar */
section{scroll-margin-top:56px;}
.kick{font-size:clamp(15px,1.4vw,20px); color:var(--acc-t); margin:0 0 10px;}
.dark .kick{color:var(--acc-l);}
h1{font-size:clamp(64px,11vw,160px); font-weight:400; margin:0; letter-spacing:-.03em; line-height:1; text-wrap:balance;}
h2{font-size:clamp(36px,5.6vw,80px); font-weight:400; margin:0 auto; letter-spacing:-.02em; line-height:1.06; max-width:16ch; text-wrap:balance;}
.sub{font-size:clamp(18px,1.9vw,26px); line-height:1.45; max-width:34ch; margin:22px auto 0; color:#45443f; text-wrap:balance;}
.dark .sub{color:#b9b7b0;}
.vis{margin:clamp(44px,7vw,88px) auto 0; max-width:1100px;}
.vis.narrow{max-width:900px;}
.card{background:#fff; border-radius:24px; box-shadow:0 20px 60px rgba(0,0,0,.08); padding:clamp(14px,3vw,40px);}
.btns{display:flex; gap:14px; justify-content:center; margin-top:34px; flex-wrap:wrap;}
.btn{padding:13px 26px; border-radius:26px; font-size:16px; text-decoration:none; background:var(--blue); color:#fff; transition:transform .16s var(--ease);}
@media (hover:hover){.btn:hover{transform:translateY(-2px);}}
.btn:active{transform:scale(.97);}
/* on black the main button is white, like Log in at the top; blue stays for the light sections */
.dark .btn:not(.o){background:#fff; color:var(--ink);}
.btn.o{background:transparent; color:inherit; border:1px solid currentColor;}

/* hero laptop: tilted back, comes flat while scrolling (tour.js sets --t from 1 to 0) */
.hero{padding-top:clamp(56px,7vw,100px); position:relative;
    /* drafting grid: fine lines every 24px, stronger every 120px */
    background-color:#0d0d0d;
    background-image:linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size:120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position:center top;}
.hero > *:not(.sheet){position:relative; z-index:1;}
.sheet{position:absolute; inset:0; pointer-events:none; color:#8f8d86;}
/* structural grid axes with bubbles, like on a plan */
.sheet .ax{position:absolute; top:24px; bottom:0; width:0; border-left:1px dashed rgba(217,178,122,.35);}
.sheet .ax-a{left:clamp(40px,9vw,150px);} .sheet .ax-b{right:clamp(40px,9vw,150px);}
.sheet .ax b{position:absolute; top:0; left:-17px; width:34px; height:34px; border:1px solid #d9b27a; border-radius:50%; background:#0d0d0d;
    font:400 14px/32px Jost, sans-serif; color:#d9b27a; text-align:center;}
/* level line with its value */
.sheet .lv{position:absolute; left:0; right:0; top:clamp(420px,46vw,560px); border-top:1px dashed rgba(255,255,255,.12);}
.sheet .lv i{position:absolute; left:clamp(48px,9.6vw,160px); top:-22px; font:normal 12px Jost, sans-serif; letter-spacing:.08em; color:#8f8d86;}
.sheet .lv i::before{content:""; position:absolute; left:-14px; top:6px; border:5px solid transparent; border-top:7px solid #8f8d86;}
/* crop marks in the four corners */
.sheet .crop{position:absolute; width:22px; height:22px; border-color:rgba(255,255,255,.35); border-style:solid; border-width:0;}
.sheet .c1{top:14px; left:14px; border-top-width:1px; border-left-width:1px;} .sheet .c2{top:14px; right:14px; border-top-width:1px; border-right-width:1px;}
.sheet .c3{bottom:14px; left:14px; border-bottom-width:1px; border-left-width:1px;} .sheet .c4{bottom:14px; right:14px; border-bottom-width:1px; border-right-width:1px;}
/* title block, like the corner of a drawing sheet */
/* title block: one row sitting on the +0.00 level line at the right (the parties use the space above it) */
.sheet .tblock{position:absolute; right:calc(clamp(40px,9vw,150px) + 16px); top:calc(clamp(420px,46vw,560px) - 44px); display:flex; border:1px solid rgba(255,255,255,.22);
    font:400 13px/1.2 Jost, sans-serif; color:#e9e7e1; text-align:left; background:#0d0d0d;}
.sheet .tblock div{padding:6px 12px; border-left:1px solid rgba(255,255,255,.22);} .sheet .tblock div:first-child{border-left:0;}
.sheet .tblock small{display:block; font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:#8f8d86; margin-bottom:3px;}
@media (max-width:1279px){.sheet .tblock{display:none;}}
/* hero network: parties (Client, Architect, Engineer, Contractor) joined to "Inside" by gold drafting lines */
.hero > svg.net{position:absolute; left:0; top:0; width:100%; height:100%; z-index:0; pointer-events:none; overflow:visible;}
.net .guide{opacity:0; transition:opacity .6s ease var(--d,0s);}
.in .net .guide{opacity:1;}
.net .pkt{opacity:0;}
.slogan b{font-weight:400; color:var(--acc-l);}
.dark .sub.slogan{max-width:26ch;}
/* dimension line under the title: extension lines, 45° ticks and the value */
.h1wrap{display:inline-block; position:relative; padding:0 6px;}
.dim{position:relative; height:30px; margin-top:14px; border-top:1px solid #d9b27a; transform-origin:center;}
.dim::before, .dim::after{content:""; position:absolute; top:-9px; width:1px; height:18px; background:#d9b27a; transform:rotate(45deg);}
.dim::before{left:0;} .dim::after{right:0;}
.dim span{position:absolute; left:50%; top:-26px; transform:translateX(-50%); padding:0 10px; background:transparent; font-size:13px; letter-spacing:.22em; text-transform:uppercase; color:#d9b27a; white-space:nowrap;}
.h1wrap::before, .h1wrap::after{content:""; position:absolute; bottom:6px; width:1px; height:46px; background:rgba(217,178,122,.6);}
.h1wrap::before{left:6px;} .h1wrap::after{right:6px;}
.laptop{--t:1; max-width:1000px; margin:40px auto 0; transform:perspective(1600px) rotateX(calc(var(--t) * 16deg)) scale(calc(1 - var(--t) * .08)); transform-origin:50% 100%;}
.laptop .scr{background:#1c1c1c; border-radius:18px 18px 0 0; padding:14px 14px 18px; border:1px solid #333;}
.laptop .scr svg{border-radius:4px; background:#f5f4f0;}
.laptop .base{height:18px; background:linear-gradient(#cfcdc8,#9c9a95); border-radius:0 0 18px 18px; margin:0 -6%; position:relative;}
.laptop .base::after{content:""; position:absolute; left:42%; right:42%; top:0; height:6px; background:#8a8883; border-radius:0 0 8px 8px;}

/* closing: Inside once more, slogan and the main line */
.end{padding-top:clamp(96px,14vw,200px); padding-bottom:clamp(96px,14vw,200px);}
.end .line{font-size:clamp(16px,1.5vw,20px); color:var(--mute); max-width:40ch; margin:26px auto 0; line-height:1.55; text-wrap:balance;}

/* story */
.story{display:grid; grid-template-columns:repeat(6,1fr); max-width:1150px; margin:80px auto 0; position:relative;}
.story .rail{position:absolute; left:8%; right:8%; top:43px; height:2px; background:var(--line);}
.story .rail i{position:absolute; inset:0; background:linear-gradient(90deg,#c0322f,#9a5c00,#5b6b7f,#1f7a45 70%,#6b6a66); transform-origin:left; transform:scaleX(0); transition:transform 2.4s linear .3s;}
.in .story .rail i{transform:scaleX(1);}
.st{position:relative; padding:0 8px;}
.st .ic{width:88px; height:88px; border-radius:50%; background:#fff; border:2px solid var(--line); margin:0 auto 18px; display:flex; align-items:center; justify-content:center; transition:border-color .6s var(--d);}
.in .st .ic{border-color:var(--c);}
.st .ic svg{width:42px; height:42px; fill:none; stroke:var(--c); stroke-width:1.7;}
.st b{display:block; font-weight:400; font-size:17px; color:var(--ink);}
.st span{font-size:13.5px; color:var(--mute); line-height:1.45; display:block; margin-top:4px;}

/* area carousel: slides scroll sideways; the next one peeks in from the right */
.area{padding-left:0; padding-right:0;}
.area .kick, .area h2, .area .sub{padding:0 clamp(16px,5vw,64px);}
.area h2{max-width:none;}
.car{margin-top:clamp(32px,4vw,56px); --sw:min(1040px, 84vw, max(640px, calc((100svh - 360px) * 1.79)));}
.track{display:flex; gap:clamp(14px,2vw,24px); overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch;
    padding:6px calc((100vw - var(--sw)) / 2) 30px; scroll-padding:0 calc((100vw - var(--sw)) / 2); outline:none;}
.track::-webkit-scrollbar{display:none;}
.pane{flex:0 0 var(--sw); margin:0; scroll-snap-align:center; text-align:left; transition:opacity .5s;}
.pane:not(.cur){opacity:.6;}
.pane .pic{background:#fff; border-radius:28px; box-shadow:0 20px 60px rgba(0,0,0,.08); padding:clamp(10px,2.2vw,28px); overflow:hidden;}
.dark .pane .pic{background:#1a1a1a; box-shadow:none; border:1px solid #2a2a2a;}
.pane .pic{aspect-ratio:1000/560; display:flex; align-items:center; justify-content:center;}
.pane .pic svg{width:100%; height:100%;}
.pane figcaption{padding:18px 6px 0; text-wrap:balance; display:flex; gap:12px; align-items:baseline; flex-wrap:wrap;}
.pane figcaption b{font-size:clamp(18px,1.6vw,22px); font-weight:400;}
.pane figcaption span{font-size:clamp(14px,1.2vw,17px); color:var(--mute);}
.dark .pane figcaption span{color:#9b9992;}
.car .nav{display:flex; justify-content:center; align-items:center; gap:18px; margin-top:4px;}
.car .nav > button{width:44px; height:44px; border-radius:50%; border:0; background:rgba(0,0,0,.07); color:inherit; font:28px/1 Jost, sans-serif; cursor:pointer; transition:background .2s, opacity .2s; padding:0 0 3px;}
.dark .car .nav > button{background:rgba(255,255,255,.1);}
@media (hover:hover){.car .nav > button:hover{background:rgba(0,0,0,.14);} .dark .car .nav > button:hover{background:rgba(255,255,255,.2);}}
.car .nav > button:active{transform:scale(.94);}
.car .nav > button:disabled{opacity:.3; cursor:default;}
/* dots: 24 px tall buttons (WCAG 2.5.8) with a small visible pill inside */
.dots{display:flex; gap:0;}
.dots button{width:24px; height:24px; padding:0; border:0; background:none; color:inherit; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:width .3s var(--ease);}
.dots button::before{content:""; width:8px; height:8px; border-radius:4px; background:currentColor; opacity:.45; transition:width .3s var(--ease), opacity .3s;}
.dots button.on{width:38px;} .dots button.on::before{width:26px; opacity:.9;}

footer{background:#0d0d0d; /* same black as the dark sections */ color:#8f8d86; font-size:13px; padding:26px clamp(16px,5vw,64px); display:flex; justify-content:space-between; border-top:1px solid #222;}
footer a{text-decoration:none;}

/* ---------- motion: elements with .fx wait until their section gets .in (tour.js, on scroll) ---------- */
.fx{opacity:0; transition:opacity .8s ease var(--d,0s), transform 1s var(--ease) var(--d,0s), stroke-dashoffset 1.4s ease var(--d,0s);}
svg .fx{transform-box:fill-box;}
.fx.up{transform:translateY(34px);}
.fx.rise{transform:translateY(90px);}
.fx.gx{opacity:1; transform:scaleX(0); transform-origin:left center;}
.fx.gy{opacity:1; transform:scaleY(0); transform-origin:center bottom;}
.fx.pop{transform:scale(.4); transform-origin:center; transition-timing-function:ease, var(--bounce), ease;}
.fx.drop{transform:translateY(-70px); transition-timing-function:ease, var(--bounce), ease;}
.fx.slide{transform:translate(var(--sx,-80px), var(--sy,0px));}
.fx.draw{opacity:1; stroke-dasharray:1; stroke-dashoffset:1;}
.fx.fill{opacity:1; stroke-dashoffset:var(--from); transition:stroke-dashoffset 1.8s var(--ease) var(--d,0s);}
/* rings: the start angle is a CSS rotation, because CSS transforms on .fx would wipe a transform attribute */
.fx.fill{transform:rotate(var(--rot,0deg)) !important; transform-origin:center;}
/* pictures inside a slide wait for that slide (.pane.on, tour.js) instead of the section */
.in .fx:not(.pane .fx), .pane.on .fx{opacity:1; transform:none;}
.in .fx.draw:not(.pane .fx), .pane.on .fx.draw{stroke-dashoffset:0;}
.in .fx.fill:not(.pane .fx), .pane.on .fx.fill{stroke-dashoffset:var(--to);}
/* .rs = reset to the start state at once (tour.js, when a section leaves the screen) */
.rs .fx, .rs .story .rail i, .rs .st .ic, .pane.rs .fx{transition:none !important;}
/* things that keep moving once shown */
.in .pulse:not(.pane .pulse), .pane.on .pulse{animation:pulse 2.4s ease-out 3 var(--d,0s);}
@keyframes pulse{0%{transform:scale(1); opacity:.55;} 100%{transform:scale(1.9); opacity:0;}}
.pulse{transform-box:fill-box; transform-origin:center; opacity:0;}
.in .blink:not(.pane .blink), .pane.on .blink{animation:blink 1.6s ease-in-out 3 var(--d,0s);}
@keyframes blink{0%,100%{opacity:1;} 50%{opacity:.35;}}
.in .dot3:not(.pane .dot3), .pane.on .dot3{animation:dot3 1.2s ease-in-out 3 var(--d,0s);}
@keyframes dot3{0%,100%{transform:translateY(0);} 50%{transform:translateY(-5px);}}
.flow{opacity:0; transition:opacity .6s 2s;}
.in .flow:not(.pane .flow), .pane.on .flow{opacity:1;}
.in .spin:not(.pane .spin), .pane.on .spin{animation:spin 60s linear 1;}
@keyframes spin{to{transform:rotate(360deg);}}
.spin{transform-box:view-box;}

@media (prefers-reduced-motion: reduce){
    .fx{transition:none !important; opacity:1 !important; transform:none !important; stroke-dashoffset:0 !important;}
    .fx.fill{stroke-dashoffset:var(--to) !important;}
    .pulse, .blink, .dot3, .spin{animation:none !important;}
    .flow{display:none;}
    .pane:not(.cur){opacity:1;}
    .track{scroll-behavior:auto;}
    .story .rail i{transition:none; transform:none;}
    .laptop{transform:none !important;}
    .net .guide{transition:none; opacity:1;}
    html{scroll-behavior:auto;}
}

/* phones */
@media (max-width:760px){
    /* section links: a second row that scrolls sideways */
    .top{flex-wrap:wrap; row-gap:4px; padding-bottom:4px;}
    section{scroll-margin-top:96px;}
    .top .r{order:3; width:100%; margin:0 -16px; padding:4px 16px 6px; overflow-x:auto; scrollbar-width:none; gap:22px; font-size:11px;}
    .top .r::-webkit-scrollbar{display:none;}
    .top .r a{white-space:nowrap; padding:6px 0;}
    /* story: one column with the coloured line running down the left */
    .story{grid-template-columns:1fr; gap:22px; max-width:340px; margin-top:48px; text-align:left;}
    .story .rail{left:43px; right:auto; top:44px; bottom:44px; width:2px; height:auto;}
    .story .rail i{background:linear-gradient(180deg,#c0322f,#9a5c00,#5b6b7f,#1f7a45 70%,#6b6a66); transform-origin:top; transform:scaleY(0);}
    .in .story .rail i{transform:scaleY(1);}
    .st{display:grid; grid-template-columns:88px 1fr; column-gap:16px; align-items:center; padding:0;}
    .st .ic{grid-row:1 / 3; margin:0;}
    .st b{align-self:end;} .st span{align-self:start;}
    .laptop{max-width:290px; transform:none;}
    .sheet .tblock, .sheet .lv{display:none;}
    .hero{padding-top:132px;}
    .dim span{font-size:11px; letter-spacing:.16em; top:-22px;}
    .sheet .ax-a{left:22px;} .sheet .ax-b{right:22px;}
    .sheet .ax b{width:26px; height:26px; left:-13px; font-size:12px; line-height:24px;}
    .laptop .scr{border-radius:40px; padding:10px; border-color:#3a3a3a;}
    .laptop .scr svg{border-radius:30px;}
    .laptop .base{display:none;}
    .laptop{margin-top:48px;}
    .card{border-radius:18px;}
    .car{--sw:88vw;}
    .pane .pic{border-radius:20px; aspect-ratio:600/760; padding:8px;}
    .pane figcaption{flex-direction:column; gap:2px;}
}
