/* ==========================================================================
   Korok. One HTML file, two skins.
   Theme is set on <html data-theme="classic|funky">.
   ========================================================================== */

/* ---- Fonts (self-hosted, latin subset) ---- */
@font-face{font-family:"Jost";font-style:normal;font-weight:300;font-display:swap;src:url("../fonts/jost-latin-300-normal.woff2") format("woff2")}
@font-face{font-family:"Jost";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/jost-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Jost";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/jost-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Michroma";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/michroma-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Pacifico";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/pacifico-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Bungee";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/bungee-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Anton";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/anton-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Lexend";font-style:normal;font-weight:300;font-display:swap;src:url("../fonts/lexend-latin-300-normal.woff2") format("woff2")}
@font-face{font-family:"Lexend";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/lexend-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Lexend";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/lexend-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Sacramento";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/sacramento-latin-400-normal.woff2") format("woff2")}

/* ---- Tokens ---- */
:root{
  --gold:#d4b02a;
  --gold-deep:#947735;
  --cyan:#5ce1e6;
  --yellow:#ffde59;
  --yellow-deep:#e3c440;
  --ink:#0c2e31;
  --pad-x:clamp(1.25rem,5vw,4.5rem);
  --header-h:5.5rem;
}

html[data-theme="classic"]{
  --bg:#000;
  --fg:#fff;
  --accent:var(--gold);
  --on-accent:#000;
  --bar:#fff;
  --focus:var(--gold);
  --tile:var(--gold-deep);
  --tile-side:#5c491d;
  --tile-top:#b99a4b;
  --alt-bg:#000;
  --f-body:"Jost","Century Gothic","Avenir Next",system-ui,sans-serif;
  --f-brand:"Michroma","Eurostile","Century Gothic",sans-serif;
  --body-w:300;
}
html[data-theme="funky"]{
  --bg:var(--cyan);
  --fg:var(--ink);
  --accent:var(--yellow);
  --on-accent:var(--ink);
  --bar:var(--ink);
  --focus:var(--ink);
  --tile:var(--yellow-deep);
  --tile-side:var(--ink);
  --tile-top:#fff1a3;
  --alt-bg:var(--yellow);
  --f-body:"Lexend",system-ui,sans-serif;
  --f-brand:"Pacifico","Brush Script MT",cursive;
  --f-display:"Bungee",Impact,"Arial Black",sans-serif;
  --f-cond:"Anton",Impact,"Arial Narrow",sans-serif;
  --f-script:"Sacramento","Brush Script MT",cursive;
  --body-w:300;
  --sec-min-h:auto;
  --sec-pad-y:3rem;
}

/* ---- Base ---- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--f-body);
  font-weight:var(--body-w);
  font-size:clamp(1.05rem,1.4vw,1.25rem);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
html.menu-open,html[data-gate="open"]{overflow:hidden}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
h1,h2,h3,p,ul{margin:0}
ul{padding:0;list-style:none}
:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
[hidden]{display:none!important}

.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip-link{position:fixed;left:1rem;top:-5rem;z-index:300;padding:.75rem 1.25rem;background:var(--accent);color:var(--on-accent);font-weight:700;text-decoration:none}
.skip-link:focus{top:1rem}

/* ---- Sections ---- */
.section{
  position:relative;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:100vh;min-height:var(--sec-min-h,100svh);
  padding:var(--sec-pad-y,calc(var(--header-h) + 1rem)) var(--pad-x) var(--sec-pad-y,4.5rem);
  overflow:hidden;overflow:clip;
}
.section--alt{background:var(--alt-bg)}
.wrap{position:relative;z-index:1;width:100%;max-width:72rem;margin-inline:auto}
html[data-theme="funky"] .section::after{
  content:"";position:absolute;left:0;right:0;bottom:2rem;height:.18rem;
  background:var(--yellow);transform:scaleX(var(--line-progress,0));transform-origin:left center;
}
html[data-theme="funky"] #about::after{display:none}
html[data-theme="funky"] #services::after{display:none}
html[data-theme="funky"] #contact::after{display:none}

/* ---- Header controls ---- */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:60;
  display:flex;align-items:center;justify-content:flex-end;gap:1.25rem;
  padding:1.25rem var(--pad-x);
  pointer-events:none;
}
.site-header>*{pointer-events:auto}
/* Slides out of view while scrolling down, returns when scrolling up (see main.js) */
.site-header{transition:transform .28s ease-out}
.site-header.is-hidden{transform:translateY(-100%)}

.menu-toggle{
  display:grid;place-items:center;width:3.25rem;height:3.25rem;padding:0;
  background:none;border:0;cursor:pointer;color:var(--bar);
}
.bars{position:relative;display:block;width:2.4rem;height:1.5rem}
.bars span{position:absolute;left:0;width:100%;height:.28rem;background:currentColor}
.bars span:nth-child(1){top:0}
.bars span:nth-child(2){top:50%;margin-top:-.14rem}
.bars span:nth-child(3){bottom:0}
html.menu-open .bars span:nth-child(1){top:50%;margin-top:-.14rem;transform:rotate(45deg)}
html.menu-open .bars span:nth-child(2){opacity:0}
html.menu-open .bars span:nth-child(3){bottom:auto;top:50%;margin-top:-.14rem;transform:rotate(-45deg)}

.theme-switch{
  display:inline-flex;align-items:center;gap:.7rem;padding:.6rem .25rem;
  background:none;border:0;cursor:pointer;color:var(--bar);
  font-family:var(--f-body);font-weight:400;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;
}
.theme-switch .lbl{opacity:.72}
.theme-switch[aria-checked="false"] .lbl-classic,
.theme-switch[aria-checked="true"] .lbl-funky{opacity:1;font-weight:700}
.track{position:relative;display:block;width:2.9rem;height:1.5rem;border:2px solid currentColor}
.knob{position:absolute;top:2px;left:2px;width:calc(1.5rem - 8px);height:calc(1.5rem - 8px);background:currentColor;transition:transform .18s ease-out}
.theme-switch[aria-checked="true"] .knob{transform:translateX(1.4rem)}
html:not(.js) .theme-switch,html:not(.js) .menu-toggle{display:none}

/* ---- Full-screen menu ---- */
.site-menu{
  position:fixed;inset:0;z-index:55;
  display:none;place-items:center;
  background:var(--bg);overflow:hidden;
}
html.menu-open .site-menu{display:grid}
.site-menu ul{position:relative;z-index:1;display:grid;gap:1.1rem;text-align:center}
.site-menu a{display:inline-block;padding:.35rem 1rem;text-decoration:none}
.site-menu a[aria-current="true"]{color:var(--accent)}
.site-menu a:hover{color:var(--accent)}

html[data-theme="classic"] .site-menu a{font-size:clamp(.95rem,2vw,1.25rem);letter-spacing:.5em;text-indent:.5em;text-transform:uppercase;font-weight:300}
html[data-theme="funky"] .site-menu a{font-family:var(--f-display);font-size:clamp(2.25rem,8vw,4.5rem);line-height:1.1;text-transform:uppercase;color:#fff}
html[data-theme="funky"] .site-menu a[aria-current="true"],
html[data-theme="funky"] .site-menu a:hover{color:var(--yellow)}
@supports (paint-order:stroke fill){
  html[data-theme="funky"] .site-menu a{-webkit-text-stroke:.085em var(--ink);paint-order:stroke fill}
}

/* no-JS fallback: menu is a plain list at the top of the page */
html:not(.js) .site-menu{display:block;position:static;padding:1.25rem var(--pad-x);background:transparent}
html:not(.js) .site-menu ul{display:flex;flex-wrap:wrap;justify-content:center;gap:.25rem 1rem}
html:not(.js) .site-menu .ring{display:none}

/* ---- Decorative rings (classic only) ---- */
.ring{display:none;position:absolute;aspect-ratio:1;pointer-events:none}
html[data-theme="classic"] .ring{display:block}
/* Three concentric rings, each turning about a different axis. */
.ring i{position:absolute;border:3px solid var(--gold);border-radius:50%}
.ring i:nth-child(1){inset:0;transform:perspective(1200px) rotateY(calc(var(--spin,0) * 1deg + 24deg))}
.ring i:nth-child(2){inset:8%;transform:perspective(1200px) rotateX(calc(var(--spin,0) * .7deg + 52deg))}
.ring i:nth-child(3){inset:16%;transform:perspective(1200px) rotateZ(40deg) rotateY(calc(var(--spin,0) * .7deg + 34deg))}
.ring--hero{transform-style:preserve-3d;animation:hero-ring-drift 6s ease-in-out infinite alternate;transform:perspective(1200px) rotateX(12deg) rotateY(-20deg)}
@keyframes hero-ring-drift{
  from{transform:perspective(1200px) rotateX(12deg) rotateY(-20deg) translate3d(0,0,0)}
  to{transform:perspective(1200px) rotateX(12deg) rotateY(-20deg) translate3d(2vw,1.5vw,0) rotateZ(8deg)}
}
html[data-theme="classic"] .ring i:nth-child(1){animation:classic-ring-y 7s ease-in-out infinite alternate}
html[data-theme="classic"] .ring i:nth-child(2){animation:classic-ring-x 6s ease-in-out infinite alternate-reverse}
html[data-theme="classic"] .ring i:nth-child(3){animation:classic-ring-z 8s ease-in-out infinite alternate}
@keyframes classic-ring-y{
  from{transform:perspective(1200px) rotateY(12deg)}
  to{transform:perspective(1200px) rotateY(42deg)}
}
@keyframes classic-ring-x{
  from{transform:perspective(1200px) rotateX(40deg)}
  to{transform:perspective(1200px) rotateX(64deg)}
}
@keyframes classic-ring-z{
  from{transform:perspective(1200px) rotateZ(28deg) rotateY(24deg)}
  to{transform:perspective(1200px) rotateZ(52deg) rotateY(44deg)}
}
@media (prefers-reduced-motion:reduce){
  html[data-theme="classic"] .ring--hero,
  html[data-theme="classic"] .ring i{animation:none}
}
.ring--hero{width:max(40vw,16rem);top:-15vw;left:-14vw}
.ring--about{width:max(36vw,16rem);left:-24vw;top:12%}
.ring--menu{width:max(40vw,16rem);left:-12.5vw;bottom:-16vw}
.ring--portfolio{width:max(36vw,16rem);right:-24vw;top:12%}
.ring--services{position:relative;width:min(40vw,26rem);margin:0 auto 3.5rem}
.ring--cta{position:relative;width:100%}

/* Bubbles - Funky */
html[data-theme="funky"] .hero-bubbles span:nth-child(1){left:8%;top:24%;animation-delay:0s;}
html[data-theme="funky"] .hero-bubbles span:nth-child(2){left:22%;top:68%;width:clamp(7px,1vw,16px);animation-delay:1.4s;}
html[data-theme="funky"] .hero-bubbles span:nth-child(3){left:76%;top:22%;width:clamp(14px,2vw,30px);animation-delay:2.7s;}
html[data-theme="funky"] .hero-bubbles span:nth-child(4){left:88%;top:62%;width:clamp(8px,1.2vw,18px);animation-delay:.8s;}
html[data-theme="funky"] .hero-bubbles span:nth-child(5){left:65%;top:72%;width:clamp(6px,.9vw,14px);animation-delay:3.5s;}
html[data-theme="funky"] .hero-bubbles span:nth-child(6){left:38%;top:18%;width:clamp(8px,1.1vw,17px);animation-delay:4.2s;}
html[data-theme="funky"] .hero-bubbles span:nth-child(7){left:52%;top:82%;width:clamp(12px,1.6vw,24px);animation-delay:2s;}

html[data-theme="funky"] .hero-bubbles{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden;}
html[data-theme="funky"] .hero-bubbles span{position:absolute;display:block;width:clamp(10px,1.4vw,22px);aspect-ratio:1;border-radius:50%;background:#fff1a3;opacity:0;transform:scale(.2);animation:bubble-dissolve 5s ease-in-out infinite;}

@keyframes bubble-dissolve{0%{opacity:0;transform:translateY(14px) scale(.2);}18%{opacity:.9;transform:translateY(0) scale(1);}55%{opacity:.65;transform:translateY(-12px) scale(1.08);}100%{opacity:0;transform:translateY(-30px) scale(.15);}}

/* ---- Display type (headings, wordmark) ---- */
.section-title{text-align:center;margin-bottom:clamp(2rem,5vw,3.5rem)}

html[data-theme="classic"] .section-title{
  font-weight:700;font-size:.95rem;letter-spacing:.5em;text-indent:.5em;text-transform:uppercase;
}
html[data-theme="funky"] .display{font-family:var(--f-display);font-weight:400;text-transform:uppercase;color:#fff;line-height:1.05}
html[data-theme="funky"] .section-title{font-size:clamp(2.75rem,9vw,6rem)}
html[data-theme="funky"] .display--logo{font-family:var(--f-brand);text-transform:none;color:var(--yellow)}

/* Outline keeps light display type legible on cyan without using a shadow */
@supports (paint-order:stroke fill){
  html[data-theme="funky"] .display{-webkit-text-stroke:.085em var(--ink);paint-order:stroke fill}
}

/* Yellow marker chip: ink text on yellow, so it stays readable */
.chip{color:inherit}
html[data-theme="classic"] .chip{color:var(--gold)}
html[data-theme="funky"] .chip{
  display:inline;padding:.05em .45em;background:var(--yellow);color:var(--ink);
  -webkit-box-decoration-break:clone;box-decoration-break:clone;
}

/* Alternating letter weight (funky only). Spans are added by main.js. */
.mx{font-weight:inherit}
html[data-theme="funky"] .mx{font-weight:700}

/* ---- Hero ---- */
.hero{text-align:center;min-height:100svh;padding-top:calc(var(--header-h) + 1rem)}
.hero h1{position:relative;z-index:1;outline:none}
.wordmark,.tagline{display:block}
.classic-wordmark,.classic-tagline{display:none}
html[data-theme="classic"] .funky-wordmark,
html[data-theme="classic"] .funky-tagline{display:none}
html[data-theme="classic"] .classic-wordmark,
html[data-theme="classic"] .classic-tagline{display:block}

html[data-theme="classic"] .wordmark{
  font-family:var(--f-brand);font-weight:400;text-transform:uppercase;color:#fff;
  font-size:clamp(1.9rem,5vw,3.75rem);letter-spacing:.8em;text-indent:.8em;line-height:1.2;
}
html[data-theme="classic"] .hero .classic-letter{
  opacity:0;filter:blur(14px);animation:classic-letter-in 3.2s cubic-bezier(.22,.75,.3,1) infinite;
}
html[data-theme="classic"] .hero .classic-character{
  opacity:0;animation:classic-character-in 6s cubic-bezier(.22,.75,.3,1) infinite;
}
@keyframes classic-letter-in{
  0%,18%{opacity:0;filter:blur(14px)}
  44%,100%{opacity:1;filter:blur(0)}
}
@keyframes classic-character-in{
  0%,18%{opacity:0}
  44%,100%{opacity:1}
}
html[data-theme="classic"] .tagline{
  margin-top:1.75rem;color:var(--gold);font-weight:400;text-transform:uppercase;
  font-size:clamp(.68rem,1.25vw,.95rem);letter-spacing:.55em;text-indent:.55em;line-height:1.9;
  text-wrap:balance;
}
html[data-theme="funky"] .wordmark{font-size:clamp(5rem,19vw,13rem);line-height:1.1;padding-inline:.15em}

/* Funky hero: solid extruded letters. main.js stacks copies behind the real text along Z
   (aria-hidden, funky only). --p is scroll progress through the first screen. */
html[data-theme="funky"] .hero .wordmark{
  position:relative;transform-style:preserve-3d;
  animation:hero-korok 7s ease-in-out infinite alternate;
}
@keyframes hero-korok{
  from{transform:perspective(1400px) rotateX(11deg) rotateY(-24deg)}
  to{transform:perspective(1400px) rotateX(-5deg) rotateY(30deg)}
}
@media (prefers-reduced-motion:reduce){html[data-theme="funky"] .hero .wordmark{animation:none;transform:perspective(1400px) rotateX(11deg) rotateY(-24deg)}}
.ext{position:absolute;inset:0;padding-inline:.15em;color:var(--ink);pointer-events:none;user-select:none;-webkit-user-select:none;
  transform:translateZ(calc(var(--i) * -.0155em))}
html[data-theme="classic"] .ext{display:none}
html[data-theme="funky"] .tagline{
  margin-top:.5rem;font-size:clamp(1rem,2.6vw,1.9rem);letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink);font-weight:300;text-wrap:balance;
}

/* ---- About ---- */
.about{max-width:50rem;text-align:center}
.about-line{font-size:clamp(1.1rem,2vw,1.5rem);line-height:1.8;text-wrap:balance}
.about-line+.about-line{margin-top:.15rem}
.about-line:last-child{margin-top:2.25rem}
html[data-theme="classic"] .about-line{font-weight:300}

/* ---- Services ---- */
.services-list{display:grid;gap:2.25rem 2.5rem;margin-bottom:3.5rem}
@media (min-width:560px){.services-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1000px){html[data-theme="classic"] .services-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
html[data-theme="funky"] .services-list{max-width:48rem;margin-inline:auto;gap:2.5rem 3rem}
@media (max-width:559px){html[data-theme="funky"] .services-list{grid-template-columns:1fr}}
html[data-theme="funky"] .services-list{margin-bottom:3rem;row-gap:2.5rem}

.service h3{margin-bottom:.7rem;line-height:1.5}
.service p{max-width:22rem;line-height:1.55}
html[data-theme="classic"] .service h3{font-weight:700;font-size:.95rem;letter-spacing:.02em;text-transform:uppercase;color:var(--gold)}
html[data-theme="classic"] .service p{font-weight:300;font-size:1rem}
html[data-theme="funky"] .service h3{font-family:var(--f-cond);font-weight:400;font-size:1.65rem;text-transform:uppercase;letter-spacing:.01em}
html[data-theme="funky"] .service p{font-weight:400;font-size:1rem}
html[data-theme="funky"] .service:nth-child(3) p{margin-bottom:0}

.statement-block{display:grid;gap:3rem;grid-template-areas:"main" "promises";position:relative}
html[data-theme="funky"] .statement-block::after{
  content:"";position:absolute;pointer-events:none;width:.08rem;height:3.8rem;left:50%;top:-3.1rem;
  background:var(--ink);transform:rotate(4deg);transform-origin:top center;
}
.funky-tictactoe{display:none}
html[data-theme="funky"] .funky-tictactoe{
  display:block;position:absolute;z-index:1;left:50%;top:clamp(-10.4rem,-14vw,-7.8rem);
  transform:translateX(-50%) rotate(-4deg);font-family:var(--f-cond);text-transform:uppercase;
}
/* Board: equal 3x3 tracks so every row/column is the same size regardless of cell content */
html[data-theme="funky"] .ttt-board{
  position:relative;display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(3,minmax(0,1fr));
  width:clamp(8.5rem,17vw,11rem);aspect-ratio:1;
  padding:.32rem;border:.18rem solid var(--ink);background:var(--yellow);box-shadow:.35rem .35rem 0 var(--ink);
}
html[data-theme="funky"] .ttt-cell{
  display:grid;place-items:center;min-width:0;min-height:0;overflow:hidden;border:.1rem solid var(--ink);color:var(--ink);
  font-family:var(--f-display);font-size:clamp(1.25rem,3vw,2rem);line-height:1;
}
html[data-theme="funky"] .ttt-cell.is-x{color:var(--ink)}
html[data-theme="funky"] .ttt-cell.is-o{color:var(--cyan)}
html[data-theme="funky"] .ttt-win-line{
  position:absolute;z-index:2;display:block;width:90%;height:.22rem;left:5%;top:16.7%;
  background:var(--ink);transform-origin:left center;clip-path:inset(0 100% 0 0);
}
html[data-theme="funky"] .ttt-win-line.row-middle{top:50%}
html[data-theme="funky"] .ttt-win-line.row-bottom{top:83.3%}
html[data-theme="funky"] .ttt-win-line.col-left{left:16.7%;top:5%;transform:rotate(90deg)}
html[data-theme="funky"] .ttt-win-line.col-middle{left:50%;top:5%;transform:rotate(90deg)}
html[data-theme="funky"] .ttt-win-line.col-right{left:83.3%;top:5%;transform:rotate(90deg)}
html[data-theme="funky"] .ttt-win-line.diagonal-down{left:7%;top:7%;width:122%;transform:rotate(45deg)}
html[data-theme="funky"] .ttt-win-line.diagonal-up{left:93%;top:7%;width:122%;transform:rotate(135deg)}
html[data-theme="funky"] .ttt-win-line.row-top,
html[data-theme="funky"] .ttt-win-line.row-middle,
html[data-theme="funky"] .ttt-win-line.row-bottom,
html[data-theme="funky"] .ttt-win-line.col-left,
html[data-theme="funky"] .ttt-win-line.col-middle,
html[data-theme="funky"] .ttt-win-line.col-right,
html[data-theme="funky"] .ttt-win-line.diagonal-down,
html[data-theme="funky"] .ttt-win-line.diagonal-up{
  animation:ttt-strike .42s cubic-bezier(.2,.8,.25,1) forwards;
}
@keyframes ttt-strike{to{clip-path:inset(0 0 0 0)}}
@media (prefers-reduced-motion:reduce){html[data-theme="funky"] .funky-tictactoe{transform:translateX(-50%) rotate(-4deg)}}
@media (min-width:860px){
  .statement-block{grid-template-columns:minmax(11rem,1fr) 2fr;grid-template-areas:"promises main";align-items:end}
}
.statement-main{grid-area:main}
html[data-theme="funky"] .statement-main{padding-top:clamp(2rem,4vw,4rem)}
.promises{grid-area:promises;font-size:.82rem;text-transform:uppercase;line-height:1.75;letter-spacing:.03em}
html[data-theme="funky"] .promises{font-weight:400}
html[data-theme="funky"] #services{padding-top:2.5rem;padding-bottom:3rem}
/* Top margin is larger than the board's upward offset (up to 10.4rem + height of the tilt),
   so the board never overlaps the service descriptions above it. */
html[data-theme="funky"] .statement-block{gap:2.5rem;margin-top:clamp(11rem,14vw,12.5rem)}

.lede{margin-bottom:2rem;max-width:44rem;line-height:1.7}
html[data-theme="classic"] .lede>span{display:block}
html[data-theme="classic"] .lede{color:var(--gold);font-weight:400;font-size:.95rem}
html[data-theme="funky"] .lede{font-size:clamp(1.15rem,2.2vw,1.6rem);line-height:1.75}

.statement span{display:block}
.statement .plus{margin:.15em 0}
html[data-theme="classic"] .statement{
  font-weight:700;text-transform:uppercase;line-height:1.15;font-size:clamp(2rem,5.2vw,3.9rem);color:#fff;
}
/* Outlined look: stroke first, then fill in the background color on top. This hides the
   overlapping inner contours this font has. Without support, the text is simply solid white. */
@supports (paint-order:stroke fill){
  html[data-theme="classic"] .statement{color:var(--bg);-webkit-text-stroke:3px #fff;paint-order:stroke fill}
}
html[data-theme="funky"] .statement{
  font-family:var(--f-cond);font-size:clamp(2.75rem,8vw,6rem);line-height:1.05;color:var(--yellow);
}
html[data-theme="funky"] .statement{-webkit-text-stroke:0}
@supports (paint-order:stroke fill){
  html[data-theme="funky"] .statement{-webkit-text-stroke:.07em var(--ink);paint-order:stroke fill}
}

/* ---- Portfolio ---- */
.portfolio{max-width:60rem}
.portfolio-note{text-align:center;max-width:40rem;margin:-1rem auto 2.5rem;text-wrap:balance}

.tiles{display:grid;gap:1.25rem;grid-template-columns:repeat(2,minmax(0,1fr));perspective:1500px;perspective-origin:50% 30%}
@media (min-width:720px){.tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:2.4rem 2.6rem}}

/* Each tile is a slab: a front face plus a right side and a top, in flat tones.
   --sweep (set by main.js, -1 to 1) turns the whole wall slightly as it scrolls past. */
.tile{
  --depth:clamp(.7rem,1.8vw,1.5rem);
  position:relative;aspect-ratio:17/12;transform-style:preserve-3d;
  transform:rotateX(calc(-11deg + var(--sweep,0) * -3deg)) rotateY(calc(-20deg - var(--sweep,0) * 10deg));
}
.tile::before,.tile::after{content:"";position:absolute}
.tile::before{left:100%;top:0;width:var(--depth);height:100%;background:var(--tile-side);transform-origin:left center;transform:rotateY(90deg)}
.tile::after{left:0;bottom:100%;width:100%;height:var(--depth);background:var(--tile-top);transform-origin:center bottom;transform:rotateX(90deg)}
.face{position:absolute;inset:0;display:block;overflow:hidden;background:var(--tile);text-decoration:none}
.face img{width:100%;height:100%;object-fit:cover}
.tile-title{position:absolute;left:0;right:0;bottom:0;padding:.6rem .85rem;background:var(--bg);color:var(--fg);font-size:.9rem;font-weight:400}

/* Skeleton loader: the face pulses between its two tones until its image has arrived */
.tile.is-loading .face::after{content:"";position:absolute;inset:0;background:var(--tile-top);animation:skeleton 1.3s ease-in-out infinite}
.tile.is-loading img{opacity:0}
@keyframes skeleton{0%,100%{opacity:0}50%{opacity:1}}
html:not(.js) .tile.is-loading .face::after{display:none}
html:not(.js) .tile.is-loading img{opacity:1}

/* ---- Contact ---- */
.contact{min-height:var(--sec-min-h,calc(100svh - 7.5rem));padding-bottom:2rem}
.contact-grid{display:grid;gap:3.5rem;align-items:center}
@media (min-width:860px){.contact-grid{grid-template-columns:1fr 1fr;gap:4rem}}
.contact-info .section-title{text-align:left;margin-bottom:2rem}
html[data-theme="classic"] .contact-info .section-title{text-indent:0}
.contact-links{display:grid;gap:.6rem;justify-items:start}
.contact-links a{display:inline-block;padding:.3rem 0;text-decoration-thickness:1px;font-size:clamp(1.15rem,2vw,1.5rem)}
html[data-theme="classic"] .contact-links a{text-decoration:none;font-weight:300}
html[data-theme="funky"] .contact-links a{padding:.35rem .9rem;background:var(--yellow);color:var(--ink);text-decoration:none;font-weight:400}

.cta-wrap{position:relative;display:grid;place-items:center;text-align:center;max-width:36rem;width:100%;justify-self:center}
.cta{display:block}
html[data-theme="classic"] .cta-wrap .cta{position:absolute;inset:0;display:grid;place-content:center}
html[data-theme="classic"] .cta span{display:block;justify-self:center;padding:0 .6em;background:var(--bg);text-transform:uppercase;font-weight:300;font-size:clamp(1rem,2.2vw,1.6rem);line-height:1.75}
html[data-theme="funky"] .cta{font-family:var(--f-script);color:var(--ink);line-height:1;text-align:center;word-spacing:.2em}
html[data-theme="funky"] .cta span{display:inline;font-size:clamp(3.25rem,9vw,6.5rem)}
html[data-theme="funky"] .cta span:nth-child(3){display:block;font-size:clamp(2.5rem,7vw,5rem);margin-block:.1em .3em}
html[data-theme="funky"] .cta span:nth-child(4){display:inline-block;font-size:clamp(4.5rem,13vw,9.5rem);padding:0 .25em}

/* ---- Timeless continuous writing reveal (Funky only) ---- */
html[data-theme="funky"] .cta .timeless-word{
  display:inline-block;
  width:auto;
  max-width:none;
  padding:0;
  background:transparent;
  border:0;
  white-space:nowrap;
  vertical-align:bottom;
  clip-path:inset(0 100% 0 0);
}
html[data-theme="funky"] .cta .timeless-word.is-typing{
  animation:timeless-write 2.5s linear forwards;
}
@keyframes timeless-write{
  from{clip-path:inset(0 100% 0 0)}
  to{clip-path:inset(0 0 0 0)}
}

/* ---- Footer ---- */
.site-footer{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2rem;
  padding:1.5rem var(--pad-x) 2.25rem;font-size:.9rem;
}
.site-footer ul{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem}
.site-footer a{display:inline-block;padding:.4rem 0}
.site-footer .copyright{opacity:.8}
.wordmark-small{text-decoration:none}
html[data-theme="classic"] .wordmark-small{font-family:var(--f-brand);font-size:1rem;letter-spacing:.7em;text-transform:uppercase;color:#fff}
html[data-theme="funky"] .wordmark-small{font-size:2.6rem;line-height:1.1}
@supports (paint-order:stroke fill){
  html[data-theme="funky"] .wordmark-small{-webkit-text-stroke:.09em var(--ink)}
}
.site-footer a{text-decoration:none}

/* =========================================================
   FIRST LOAD — KOROK STYLE SELECTOR
   Independent visual theme
   ========================================================= */

.gate{position:fixed;inset:0;z-index:100;display:none;place-items:center;padding:2rem;overflow:hidden;background:#111;color:#f5f3ed;font-family:"Jost","Century Gothic","Avenir Next",system-ui,sans-serif;opacity:1;visibility:visible;transition:opacity .45s ease,visibility .45s ease}
html[data-gate="open"] .gate{display:grid}
.gate::before{content:"";position:absolute;width:42rem;height:42rem;border:1px solid rgba(255,255,255,.08);border-radius:50%;top:-25rem;left:-18rem;pointer-events:none}
.gate::after{content:"";position:absolute;width:32rem;height:32rem;border:1px solid rgba(255,255,255,.05);border-radius:50%;right:-18rem;bottom:-20rem;pointer-events:none}
.gate-inner{position:relative;z-index:2;width:min(900px,92vw);display:flex;flex-direction:column;align-items:center;text-align:center}
.gate-brand{margin-bottom:2.5rem;font-family:"Michroma",sans-serif;font-size:.7rem;letter-spacing:.42em;text-transform:uppercase;opacity:.7}
.gate-title{margin:0;font-family:"Jost",sans-serif;font-size:clamp(2.4rem,5vw,4.5rem);font-weight:300;line-height:1.05;letter-spacing:-.035em}
.gate-title span{display:block;margin-top:.15em;font-weight:400}
.gate-subtitle{margin-top:1.25rem;font-size:.75rem;letter-spacing:.22em;text-transform:uppercase;color:rgba(255,255,255,.45)}
.gate-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem;width:100%;margin-top:3.5rem;perspective:1500px;perspective-origin:50% 30%}
.gate-choice{position:relative;min-height:300px;padding:0;border:1px solid rgba(255,255,255,.2);background:#181818;color:#fff;cursor:pointer;overflow:hidden;text-align:left;transform-style:preserve-3d;transform:perspective(1200px) rotateX(-8deg) rotateY(-12deg) translateZ(0);transition:transform .55s cubic-bezier(.22,1,.36,1),border-color .35s ease,box-shadow .35s ease}
.gate-choice:hover{transform:perspective(1200px) rotateX(2deg) rotateY(-18deg) translateY(-10px) translateZ(20px);border-color:rgba(255,255,255,.75);box-shadow:1.5rem 2rem 3rem rgba(0,0,0,.35)}
.gate-choice:focus-visible{outline:2px solid #fff;outline-offset:5px}
.gate-choice .gate-preview{transform:translateZ(0);transition:transform .55s cubic-bezier(.22,1,.36,1)}
.gate-choice:hover .gate-preview{transform:translateZ(30px)}
.gate-preview{position:relative;height:220px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.gate-choice--classic .gate-preview{background:#000;color:#fff}
.gate-choice--classic .gate-preview::before{content:"";position:absolute;width:260px;height:260px;border:1px solid #d4b02a;border-radius:50%;top:-135px;left:-80px;transform:rotate(-18deg)}
.gate-choice--classic .preview-logo{position:relative;z-index:1;font-family:"Michroma",sans-serif;font-size:clamp(1.5rem,3vw,2.3rem);letter-spacing:.45em;text-indent:.45em;color:#fff;white-space:nowrap}
.gate-choice--classic .preview-accent{position:absolute;width:90px;height:2px;background:#d4b02a;bottom:28px}
.gate-classic-letter{display:inline-block;opacity:1;filter:none}
.gate-choice--funky .gate-preview{background:#5ce1e6;color:#0c2e31}
.gate-choice--funky .gate-preview::before{content:"";position:absolute;width:190px;height:190px;background:#ffde59;border-radius:50%;top:-85px;right:-55px;transform:rotate(12deg)}
.gate-choice--funky .preview-logo{position:relative;z-index:1;font-family:"Pacifico",cursive;font-size:clamp(2.7rem,5vw,4rem);color:#ffde59;-webkit-text-stroke:.055em #0c2e31;paint-order:stroke fill;transform-style:preserve-3d;white-space:nowrap}
.gate-choice--funky .gate-ext{position:absolute;inset:0;padding:0;color:#0c2e31;pointer-events:none;user-select:none;-webkit-user-select:none;transform:translateZ(calc(var(--i) * -.055em));display:block}
.gate-choice--funky .preview-accent{display:none}
.gate-choice-content{display:flex;flex-direction:column;gap:.35rem;padding:1.25rem 1.5rem 1.4rem;transform:translateZ(0);transition:transform .55s cubic-bezier(.22,1,.36,1)}
.gate-choice:hover .gate-choice-content{transform:translateZ(18px)}
.gate-choice-content strong{font-family:"Jost",sans-serif;font-size:.75rem;font-weight:700;letter-spacing:.22em;text-transform:uppercase}
.gate-choice-content small{font-size:.7rem;letter-spacing:.04em;opacity:.5}
.gate-choice-arrow{position:absolute;right:1.4rem;bottom:1.3rem;font-size:1.1rem;opacity:.35;transform:translateZ(0);transition:opacity .35s ease,transform .55s cubic-bezier(.22,1,.36,1)}
.gate-choice:hover .gate-choice-arrow{opacity:1;transform:translateX(8px) translateZ(20px)}
.gate-footer{margin-top:2rem;font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.3)}

@media (hover:none){
.gate-choice:active{transform:perspective(1200px) rotateX(2deg) rotateY(-10deg) translateZ(14px) scale(.985);box-shadow:1rem 1.5rem 2.5rem rgba(0,0,0,.3)}
.gate-choice:active .gate-preview{transform:translateZ(24px)}
.gate-choice:active .gate-choice-content{transform:translateZ(14px)}
.gate-choice:active .gate-choice-arrow{transform:translateX(6px) translateZ(16px);opacity:1}
}

@media (max-width:680px){
.gate{height:100dvh;min-height:100dvh;padding:.75rem;overflow:hidden}
.gate-inner{width:min(94vw,520px);height:100%;min-height:0;padding:.5rem 0;justify-content:center}
.gate-brand{margin-bottom:.7rem;font-size:.55rem;letter-spacing:.35em}
.gate-title{font-size:clamp(1.9rem,8vw,2.8rem);line-height:.98;letter-spacing:-.04em}
.gate-title span{margin-top:.08em}
.gate-subtitle{margin-top:.65rem;font-size:.52rem;letter-spacing:.14em}
.gate-choices{grid-template-columns:1fr;gap:.9rem;margin-top:1.35rem;width:100%;perspective:none}
.gate-choice{min-height:0;height:clamp(160px,22vh,200px);transform:none}
.gate-choice:hover{transform:translateY(-3px)}
.gate-preview{height:clamp(92px,12vh,115px)}
.gate-choice--classic .gate-preview::before{width:150px;height:150px;top:-78px;left:-48px}
.gate-choice--classic .preview-logo{font-size:clamp(1.25rem,6vw,1.8rem);letter-spacing:.4em;text-indent:.4em}
.gate-choice--classic .preview-accent{width:65px;height:2px;bottom:16px}
.gate-choice--funky .gate-preview::before{width:125px;height:125px;top:-55px;right:-38px}
.gate-choice--funky .preview-logo{font-size:clamp(2rem,10vw,3rem)}
.gate-choice-content{gap:.2rem;padding:.65rem .85rem .7rem}
.gate-choice-content strong{font-size:.62rem;letter-spacing:.18em}
.gate-choice-content small{font-size:.56rem;letter-spacing:.02em}
.gate-choice-arrow{right:.85rem;bottom:.75rem;font-size:.9rem}
.gate-footer{margin-top:1rem;font-size:.5rem;letter-spacing:.16em}
}

@media (max-width:680px) and (max-height:700px){
.gate-inner{padding:.25rem 0}
.gate-title{font-size:1.8rem}
.gate-subtitle{margin-top:.45rem}
.gate-choices{margin-top:1rem;gap:.75rem}
.gate-choice{height:clamp(145px,20vh,170px)}
.gate-preview{height:clamp(78px,10vh,90px)}
.gate-choice-content{padding:.5rem .75rem .55rem}
.gate-footer{margin-top:.65rem}
}

@media (prefers-reduced-motion:reduce){
.gate-choice,.gate-choice .gate-preview,.gate-choice .gate-choice-content,.gate-choice .gate-choice-arrow{transition:none}
.gate-choice:hover,.gate-choice:active{transform:none}
.gate-choice:hover .gate-preview,.gate-choice:active .gate-preview,.gate-choice:hover .gate-choice-content,.gate-choice:active .gate-choice-content,.gate-choice:hover .gate-choice-arrow,.gate-choice:active .gate-choice-arrow{transform:none}
.gate-classic-letter{opacity:1;filter:none}
.gate-choice--funky .preview-logo{animation:none!important}
}

/* ---- Small screens ---- */
@media (max-width:719px){
  :root{--header-h:5rem}
  .ring--hero{width:70vw;top:-28vw;left:-24vw}
  .ring--about{width:70vw;left:-52vw;top:6%}
  .ring--menu{width:70vw;left:-24vw;bottom:-26vw}
  .ring--portfolio{width:70vw;right:-52vw;top:6%}
  .ring--services{width:min(64vw,20rem)}
  .ring--cta{width:min(78vw,22rem)}
  .contact-info .section-title{text-align:center}
  .contact-links{justify-items:center}
  .site-footer{flex-direction:column;align-items:center;justify-content:center;text-align:center}
  .site-footer ul{flex-wrap:nowrap;justify-content:center}
}

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .knob{transition:none}
  .site-header{transition:none}
  .tile.is-loading .face::after{animation:none;opacity:.6}
}

/* ---- 404 page ---- */
.notfound{text-align:center}
.notfound .inner{position:relative;z-index:1;max-width:34rem}
.err-code{line-height:1;margin-bottom:1rem}
html[data-theme="classic"] .err-code{font-family:var(--f-brand);font-size:clamp(3rem,10vw,6rem);letter-spacing:.3em;text-indent:.3em;color:var(--gold)}
html[data-theme="funky"] .err-code{font-family:var(--f-brand);font-size:clamp(5rem,20vw,11rem);color:var(--yellow);-webkit-text-stroke:0}
@supports (paint-order:stroke fill){html[data-theme="funky"] .err-code{-webkit-text-stroke:.07em var(--ink);paint-order:stroke fill}}
.notfound h1{margin-bottom:1rem;font-size:clamp(1.4rem,3.4vw,2rem);line-height:1.3}
html[data-theme="classic"] .notfound h1{font-weight:300;letter-spacing:.2em;text-indent:.2em;text-transform:uppercase}
html[data-theme="funky"] .notfound h1{font-family:var(--f-cond);font-weight:400;text-transform:uppercase;font-size:clamp(2rem,5vw,3rem)}
.notfound p{margin-bottom:2rem}
.notfound .back{display:inline-block;padding:.7rem 1.4rem;background:var(--accent);color:var(--on-accent);font-weight:700;text-decoration:none}
.notfound .more{margin:2rem auto 0;display:flex;flex-wrap:wrap;justify-content:center;gap:.25rem 1.5rem}
.notfound .more a{display:inline-block;padding:.4rem 0}