:root{
  --bg:#07101d;
  --bg-2:#0a1424;
  --panel:#0d1929;
  --panel-2:#101f32;
  --line:rgba(255,255,255,.085);
  --text:#f7fbff;
  --muted:#98a9bd;
  --cyan:#30c8f2;
  --cyan-2:#1aa3d7;
  --purple:#9a3cff;
  --orange:#ff7a19;
  --green:#42d49c;
  --radius:26px;
  --shadow:0 30px 80px rgba(0,0,0,.32);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:"Segoe UI",Tahoma,Arial,sans-serif;overflow-x:hidden;line-height:1.65}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
img{display:block;max-width:100%}
svg{display:block}
::selection{background:rgba(48,200,242,.28);color:#fff}
.page-progress{position:fixed;z-index:9999;top:0;right:0;left:0;height:2px;pointer-events:none}
.page-progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--cyan),var(--purple),var(--orange));box-shadow:0 0 18px rgba(48,200,242,.75)}
.ambient{position:fixed;z-index:-3;border-radius:50%;filter:blur(90px);opacity:.22;pointer-events:none}
.ambient-a{width:42vw;height:42vw;min-width:420px;min-height:420px;top:-16vw;right:-10vw;background:#0b9ed1}
.ambient-b{width:48vw;height:48vw;min-width:520px;min-height:520px;bottom:-24vw;left:-16vw;background:#7f2cf1}
.noise{position:fixed;inset:0;z-index:-2;pointer-events:none;opacity:.035;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E")}
.site-header{position:fixed;z-index:1000;top:14px;right:50%;transform:translateX(50%);width:min(1180px,calc(100% - 28px));height:72px;padding:10px 12px 10px 18px;border:1px solid transparent;border-radius:22px;display:flex;align-items:center;justify-content:space-between;gap:20px;transition:.28s ease}
.site-header.scrolled{background:rgba(7,16,29,.78);border-color:var(--line);backdrop-filter:blur(18px);box-shadow:0 16px 50px rgba(0,0,0,.24)}
.brand{display:flex;align-items:center;gap:11px;min-width:178px}
.brand img{width:48px;height:48px;object-fit:contain}
.brand-copy{display:flex;flex-direction:column;line-height:1.05;direction:ltr;align-items:flex-start}
.brand-copy b{font-size:18px;letter-spacing:.14em}
.brand-copy small{font-size:9px;color:var(--muted);letter-spacing:.18em;margin-top:5px}
.main-nav{display:flex;align-items:center;justify-content:center;gap:28px;color:#c8d4e1;font-weight:700;font-size:14px}
.main-nav a{position:relative;transition:.2s ease}
.main-nav a:after{content:"";position:absolute;right:0;bottom:-9px;width:0;height:2px;background:linear-gradient(90deg,var(--cyan),var(--purple));transition:.2s ease}
.main-nav a:hover{color:#fff}.main-nav a:hover:after{width:100%}
.header-actions{display:flex;align-items:center;gap:10px}
.header-projects-link{height:46px;padding:0 18px;border-radius:14px;background:#fff;color:#08111d;display:flex;align-items:center;gap:10px;font-weight:900;font-size:13px;transition:.2s ease}
.header-projects-link:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(255,255,255,.16)}
.header-projects-link svg,.button svg,.open-project svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;transform:scaleX(-1)}
.menu-button{display:none;width:44px;height:44px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.04);padding:11px;cursor:pointer}
.menu-button span{display:block;height:2px;margin:4px 0;background:#fff;border-radius:99px;transition:.2s ease}
main{position:relative}
.hero{width:min(1180px,calc(100% - 40px));min-height:760px;margin:0 auto;padding:154px 0 80px;display:grid;grid-template-columns:minmax(0,1.02fr) minmax(420px,.98fr);align-items:center;gap:64px}
.eyebrow,.section-kicker{display:inline-flex;align-items:center;gap:9px;color:#83ddf5;font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.eyebrow span{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(66,212,156,.1),0 0 18px rgba(66,212,156,.6)}
.hero h1{margin:20px 0 22px;font-size:clamp(52px,7vw,86px);line-height:.98;letter-spacing:-.045em}
.hero h1 em,.section-heading h2 em{font-style:normal;background:linear-gradient(105deg,var(--cyan) 0%,#74e8ff 32%,#a268ff 63%,#ff8a24 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-copy>p{margin:0;max-width:690px;color:#aebdcd;font-size:18px;line-height:1.9}
.hero-copy>p strong{color:#fff}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.button{min-height:54px;padding:0 21px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;gap:12px;font-weight:900;font-size:14px;transition:.22s ease}
.button.primary{background:linear-gradient(135deg,#f9fdff,#dff8ff);color:#07111e;box-shadow:0 16px 44px rgba(48,200,242,.16)}
.button.primary:hover{transform:translateY(-3px);box-shadow:0 22px 54px rgba(48,200,242,.22)}
.button.ghost{border:1px solid var(--line);background:rgba(255,255,255,.035);color:#e9f4ff}
.button.ghost:hover{background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.16)}
.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:620px;margin-top:38px;padding-top:24px;border-top:1px solid var(--line)}
.hero-stats div{display:flex;flex-direction:column;gap:2px}.hero-stats strong{font-size:27px;line-height:1;color:#fff}.hero-stats span{font-size:11px;color:var(--muted);font-weight:700}
.hero-visual{position:relative;min-height:520px;display:flex;align-items:center;justify-content:center;isolation:isolate}
.hero-visual:before{content:"";position:absolute;width:390px;height:390px;border-radius:50%;background:radial-gradient(circle,rgba(48,200,242,.14),rgba(154,60,255,.055) 46%,transparent 72%);filter:blur(2px)}
.visual-orbit{position:absolute;border:1px solid rgba(255,255,255,.08);border-radius:50%;animation:orbit-spin 22s linear infinite}.orbit-one{width:430px;height:430px}.orbit-two{width:520px;height:520px;border-style:dashed;animation-duration:34s;animation-direction:reverse;opacity:.55}
.logo-core{position:relative;z-index:4;width:236px;height:236px;border-radius:62px;border:1px solid rgba(255,255,255,.12);background:linear-gradient(145deg,rgba(255,255,255,.075),rgba(255,255,255,.022));backdrop-filter:blur(14px);display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 38px 90px rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.12)}
.logo-core:after{content:"";position:absolute;inset:12px;border-radius:52px;border:1px solid rgba(255,255,255,.055);pointer-events:none}.logo-core img{width:132px;height:132px;object-fit:contain;filter:drop-shadow(0 20px 35px rgba(0,0,0,.28))}.logo-core span{margin-top:-7px;font-size:12px;font-weight:900;letter-spacing:.24em;direction:ltr;color:#dff8ff}
.logo-halo{position:absolute;inset:-40px;border-radius:50%;background:radial-gradient(circle,rgba(48,200,242,.12),transparent 68%);z-index:-1}
.mini-project{position:absolute;z-index:5;width:122px;padding:9px;border:1px solid rgba(255,255,255,.11);background:rgba(9,19,33,.82);backdrop-filter:blur(16px);border-radius:18px;box-shadow:0 18px 44px rgba(0,0,0,.28);transition:.25s ease}.mini-project:hover{transform:translateY(-5px) scale(1.03);border-color:rgba(48,200,242,.38)}.mini-project img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:11px}.mini-project b{display:block;margin-top:7px;font-size:10px;text-align:center;direction:ltr;letter-spacing:.05em}
.mini-one{top:32px;right:24px;animation:float-a 5.5s ease-in-out infinite}.mini-two{bottom:46px;right:2px;animation:float-b 6.8s ease-in-out infinite}.mini-three{top:55px;left:5px;animation:float-b 6s ease-in-out infinite reverse}.mini-four{bottom:31px;left:20px;animation:float-a 7.2s ease-in-out infinite reverse}
.visual-badge{position:absolute;bottom:3px;z-index:6;padding:9px 13px;border-radius:999px;background:#0a1728;border:1px solid var(--line);color:#aebdcd;font-size:10px;letter-spacing:.04em;direction:ltr;display:flex;align-items:center;gap:8px;box-shadow:0 12px 30px rgba(0,0,0,.24)}.visual-badge span{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 12px rgba(66,212,156,.75)}
.ticker{overflow:hidden;border-block:1px solid var(--line);background:rgba(255,255,255,.018)}
.ticker-track{width:max-content;height:60px;display:flex;align-items:center;gap:23px;animation:ticker 34s linear infinite;direction:ltr}.ticker span{font-size:11px;font-weight:900;color:#76899f;letter-spacing:.16em}.ticker i{width:5px;height:5px;border-radius:50%;background:linear-gradient(135deg,var(--cyan),var(--purple))}
.projects-section,.about-section,.principles-section{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:110px 0}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:34px}.section-heading h2{margin:9px 0 7px;font-size:clamp(34px,4.8vw,56px);line-height:1.08;letter-spacing:-.035em}.section-heading p{margin:0;color:var(--muted);font-size:15px;max-width:650px}.project-count{display:flex;align-items:center;gap:10px;direction:ltr}.project-count b{font-size:42px;line-height:1}.project-count span{max-width:60px;font-size:10px;line-height:1.35;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.filters{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:28px}.filters button{border:1px solid var(--line);background:rgba(255,255,255,.025);color:#aebdcd;padding:10px 14px;border-radius:999px;font-size:12px;font-weight:800;cursor:pointer;transition:.2s ease}.filters button:hover{background:rgba(255,255,255,.065);color:#fff}.filters button.active{background:#f4fbff;color:#07111e;border-color:#f4fbff}
.projects-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.project-card{min-width:0;border:1px solid var(--line);background:linear-gradient(145deg,rgba(255,255,255,.034),rgba(255,255,255,.014));border-radius:var(--radius);overflow:hidden;box-shadow:0 16px 45px rgba(0,0,0,.13);transition:.28s ease}.project-card:hover{transform:translateY(-6px);border-color:rgba(255,255,255,.16);box-shadow:var(--shadow)}.project-card.hidden{display:none}
.project-visual{position:relative;display:block;aspect-ratio:16/8.4;overflow:hidden;background:#0a1625}.project-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(5,11,20,.25),transparent 50%);pointer-events:none}.project-visual img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}.project-card:hover .project-visual img{transform:scale(1.025)}.card-index{position:absolute;z-index:3;top:14px;right:15px;padding:6px 9px;border-radius:9px;background:rgba(5,12,22,.64);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);font-size:10px;font-weight:900;direction:ltr;letter-spacing:.08em}.open-corner{position:absolute;z-index:3;top:14px;left:15px;width:34px;height:34px;border-radius:10px;background:rgba(255,255,255,.9);color:#07101d;display:grid;place-items:center;opacity:0;transform:translateY(4px);transition:.2s ease}.open-corner svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.project-card:hover .open-corner{opacity:1;transform:none}
.project-body{padding:23px}.project-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}.type-badge{font-size:10px;color:#8bdcf4;font-weight:900;letter-spacing:.04em}.status-badge{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:800;color:#8fa2b8}.status-badge i{width:6px;height:6px;border-radius:50%}.status-badge.live i{background:var(--green);box-shadow:0 0 10px rgba(66,212,156,.6)}.status-badge.building i{background:#ffae43;box-shadow:0 0 10px rgba(255,174,67,.55)}
.project-body h3{margin:0;font-size:25px;letter-spacing:-.02em}.project-body>p{margin:10px 0 15px;min-height:51px;color:#98a9bd;font-size:13px}.tags{display:flex;gap:7px;flex-wrap:wrap}.tags span{padding:5px 8px;border:1px solid var(--line);border-radius:8px;color:#8396ad;font-size:9px;font-weight:700;direction:ltr}.open-project{position:relative;margin-top:20px;padding-top:17px;border-top:1px solid var(--line);display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;transition:.2s ease}.open-project>span{font-size:12px;font-weight:900}.open-project small{direction:ltr;text-align:left;color:#697d94;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.open-project svg{color:#d5e6f8}.project-card:hover .open-project{color:#7ee5ff}
.empty-state{margin-top:20px;padding:30px;border:1px dashed var(--line);border-radius:18px;text-align:center;color:var(--muted)}
.about-section{padding-top:20px}.about-card{position:relative;overflow:hidden;display:grid;grid-template-columns:160px minmax(0,1fr) 220px;align-items:center;gap:34px;padding:38px;border:1px solid rgba(255,255,255,.1);border-radius:32px;background:radial-gradient(circle at 10% 15%,rgba(48,200,242,.12),transparent 28%),radial-gradient(circle at 90% 90%,rgba(154,60,255,.12),transparent 30%),rgba(255,255,255,.026);box-shadow:var(--shadow)}
.about-logo{width:150px;height:150px;border-radius:34px;display:grid;place-items:center;background:rgba(255,255,255,.035);border:1px solid var(--line)}.about-logo img{width:108px;height:108px;object-fit:contain}.about-copy h2{margin:8px 0 11px;font-size:31px;line-height:1.18}.about-copy p{margin:7px 0;color:#9badc0;font-size:13px}.about-copy strong{color:#fff}.about-points{display:grid;gap:9px}.about-points div{padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.035);border:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px}.about-points b{direction:ltr;color:#fff;font-size:12px}.about-points span{font-size:10px;color:#8599b0}
.principles-section{padding-top:70px}.principles-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.principles-grid article{min-height:230px;padding:24px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.022);transition:.24s ease}.principles-grid article:hover{background:rgba(255,255,255,.04);transform:translateY(-4px)}.principles-grid article>span{font-size:10px;font-weight:900;color:#5e748e;letter-spacing:.1em;direction:ltr}.principles-grid h3{margin:48px 0 8px;font-size:19px}.principles-grid p{margin:0;color:#8ea2b9;font-size:12px}
.closing-section{width:min(1000px,calc(100% - 40px));margin:20px auto 120px;padding:78px 30px;text-align:center;border:1px solid var(--line);border-radius:34px;background:radial-gradient(circle at 50% 10%,rgba(48,200,242,.12),transparent 38%),rgba(255,255,255,.02)}.closing-logo{width:72px;height:72px;margin:0 auto 14px;display:grid;place-items:center}.closing-logo img{width:72px}.closing-section>span{font-size:10px;letter-spacing:.22em;direction:ltr;color:#6f849c;font-weight:900}.closing-section h2{margin:15px auto 11px;font-size:clamp(36px,5.2vw,60px);line-height:1.05;letter-spacing:-.035em}.closing-section p{margin:0 0 24px;color:var(--muted)}
.site-footer{width:min(1180px,calc(100% - 40px));min-height:110px;margin:0 auto;padding:28px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;color:#71859c;font-size:11px}.footer-brand{display:flex;align-items:center;gap:9px;justify-self:start}.footer-brand img{width:37px;height:37px}.footer-brand span{display:flex;flex-direction:column;direction:ltr;line-height:1.05}.footer-brand b{color:#e9f5ff;letter-spacing:.12em;font-size:12px}.footer-brand small{margin-top:4px;font-size:7px;letter-spacing:.17em}.site-footer p{margin:0;text-align:center}.site-footer>span{justify-self:end;direction:ltr}
.back-top{position:fixed;z-index:999;left:20px;bottom:20px;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:rgba(12,27,45,.86);border:1px solid var(--line);backdrop-filter:blur(12px);opacity:0;pointer-events:none;transform:translateY(12px);transition:.2s ease}.back-top.show{opacity:1;pointer-events:auto;transform:none}.back-top svg{width:19px;height:19px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.reveal{opacity:0;transform:translateY(20px);transition:opacity .65s ease,transform .65s ease}.reveal.visible{opacity:1;transform:none}
@keyframes orbit-spin{to{transform:rotate(360deg)}}@keyframes float-a{0%,100%{transform:translateY(0)}50%{transform:translateY(-11px)}}@keyframes float-b{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(10px) rotate(1deg)}}@keyframes ticker{to{transform:translateX(-50%)}}
@media (max-width:980px){.main-nav{position:absolute;top:80px;right:0;left:0;display:none;flex-direction:column;align-items:stretch;gap:0;padding:10px;border-radius:20px;background:rgba(7,16,29,.96);border:1px solid var(--line);backdrop-filter:blur(18px);box-shadow:var(--shadow)}.site-header.menu-open .main-nav{display:flex}.main-nav a{padding:13px 14px;border-radius:10px}.main-nav a:hover{background:rgba(255,255,255,.04)}.main-nav a:after{display:none}.menu-button{display:block}.header-projects-link{display:none}.hero{grid-template-columns:1fr;min-height:auto;padding-top:136px;gap:20px}.hero-copy{text-align:center}.eyebrow{justify-content:center}.hero-copy>p{margin-inline:auto}.hero-actions{justify-content:center}.hero-stats{margin-inline:auto}.hero-visual{min-height:530px}.projects-grid{grid-template-columns:1fr}.about-card{grid-template-columns:130px 1fr}.about-logo{width:125px;height:125px}.about-logo img{width:90px}.about-points{grid-column:1/-1;grid-template-columns:repeat(3,1fr)}.principles-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.site-header{top:9px;width:calc(100% - 18px);height:64px;padding:8px 9px 8px 12px;border-radius:18px}.brand{min-width:0}.brand img{width:42px;height:42px}.brand-copy b{font-size:15px}.brand-copy small{font-size:7px}.menu-button{width:42px;height:42px}.hero,.projects-section,.about-section,.principles-section,.site-footer{width:calc(100% - 24px)}.hero{padding-top:112px}.hero h1{font-size:48px}.hero-copy>p{font-size:15px}.hero-actions{display:grid;grid-template-columns:1fr}.button{width:100%}.hero-stats{gap:4px}.hero-stats strong{font-size:22px}.hero-stats span{font-size:9px}.hero-visual{min-height:430px;margin-inline:-4px}.orbit-one{width:320px;height:320px}.orbit-two{width:395px;height:395px}.logo-core{width:176px;height:176px;border-radius:48px}.logo-core:after{border-radius:41px}.logo-core img{width:100px;height:100px}.logo-core span{font-size:9px}.mini-project{width:94px;padding:7px;border-radius:14px}.mini-project img{border-radius:8px}.mini-project b{font-size:8px}.mini-one{top:22px;right:0}.mini-two{bottom:39px;right:0}.mini-three{top:43px;left:0}.mini-four{bottom:25px;left:0}.visual-badge{bottom:-4px}.projects-section{padding:82px 0}.section-heading{align-items:start}.section-heading h2{font-size:35px}.section-heading p{font-size:13px}.project-count{display:none}.filters{flex-wrap:nowrap;overflow:auto;padding-bottom:5px;margin-inline:-12px;padding-inline:12px;scrollbar-width:none}.filters::-webkit-scrollbar{display:none}.filters button{flex:0 0 auto}.project-body{padding:19px}.project-body h3{font-size:22px}.project-body>p{min-height:auto}.open-project small{max-width:140px}.about-card{grid-template-columns:1fr;text-align:center;padding:26px 20px}.about-logo{margin:auto}.about-points{grid-template-columns:1fr}.principles-grid{grid-template-columns:1fr}.principles-grid article{min-height:190px}.principles-grid h3{margin-top:32px}.closing-section{width:calc(100% - 24px);padding:58px 18px;margin-bottom:80px}.site-footer{grid-template-columns:1fr;text-align:center}.footer-brand,.site-footer>span{justify-self:center}.site-footer p{order:2}.site-footer>span{order:3}.back-top{left:12px;bottom:12px}.ticker-track{height:54px}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.visual-orbit,.mini-project,.ticker-track{animation:none}.reveal{opacity:1;transform:none;transition:none}}

/* ===== Mobile stability hardening — 2026-08-29 ===== */
html,body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  overscroll-behavior-x:none;
}
@supports (overflow:clip){
  html,body{overflow-x:clip}
}
body{
  position:relative;
  touch-action:pan-y pinch-zoom;
}
main,.hero,.projects-section,.about-section,.principles-section,.closing-section,.site-footer,.ticker{
  min-width:0;
  max-width:100%;
}
.hero-copy,.hero-visual,.project-card,.project-body,.about-card,.about-copy,.section-heading>div{
  min-width:0;
}
.project-visual img,.mini-project img,.brand img,.logo-core img,.about-logo img,.closing-logo img,.footer-brand img{
  user-select:none;
  -webkit-user-drag:none;
}
.open-project small{min-width:0}

@media (max-width:640px){
  /* Use fixed side insets instead of translated width to avoid sub-pixel horizontal jitter. */
  .site-header{
    right:9px;
    left:9px;
    width:auto;
    max-width:none;
    transform:none;
  }
  .main-nav{
    top:72px;
    right:0;
    left:0;
    max-height:calc(100dvh - 92px);
    overflow:auto;
  }

  .hero,.projects-section,.about-section,.principles-section,.site-footer{
    width:auto;
    margin-right:12px;
    margin-left:12px;
  }
  .hero{
    padding-top:104px;
    padding-bottom:54px;
    gap:12px;
  }
  .hero h1{
    font-size:clamp(38px,12vw,48px);
    line-height:1.02;
    overflow-wrap:anywhere;
  }
  .hero-copy>p{
    font-size:14px;
    line-height:1.85;
  }
  .hero-stats{
    width:100%;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .hero-stats div{min-width:0}
  .hero-stats span{line-height:1.35}

  /* Keep the hero artwork fully inside its own box and stop autonomous movement on touch screens. */
  .hero-visual{
    width:100%;
    min-height:390px;
    margin:0;
    overflow:hidden;
    contain:layout paint;
    isolation:isolate;
  }
  .hero-visual:before{
    width:min(86vw,330px);
    height:min(86vw,330px);
  }
  .visual-orbit{
    top:50%;
    left:50%;
    right:auto;
    bottom:auto;
    animation:none !important;
    transform:translate(-50%,-50%);
  }
  .orbit-one{
    width:min(76vw,296px);
    height:min(76vw,296px);
  }
  .orbit-two{
    width:min(92vw,356px);
    height:min(92vw,356px);
  }
  .logo-core{
    width:min(44vw,168px);
    height:min(44vw,168px);
    border-radius:44px;
  }
  .logo-core:after{border-radius:37px}
  .logo-core img{
    width:min(25vw,94px);
    height:min(25vw,94px);
  }
  .mini-project{
    width:82px;
    padding:6px;
    border-radius:13px;
    animation:none !important;
    transform:none !important;
  }
  .mini-project:hover{transform:none}
  .mini-one{top:22px;right:6px}
  .mini-two{bottom:34px;right:6px}
  .mini-three{top:42px;left:6px}
  .mini-four{bottom:22px;left:6px}
  .visual-badge{
    right:50%;
    bottom:4px;
    transform:translateX(50%);
    white-space:nowrap;
  }

  /* Decorative ticker is removed on phones to prevent continuous horizontal compositing. */
  .ticker{display:none}

  .projects-section{padding-top:64px}
  .section-heading{gap:10px}
  .section-heading h2{
    font-size:clamp(30px,9vw,35px);
    overflow-wrap:anywhere;
  }

  /* Filters wrap instead of creating another horizontal scroller. */
  .filters{
    margin-inline:0;
    padding-inline:0;
    padding-bottom:0;
    overflow:visible;
    flex-wrap:wrap;
    gap:7px;
  }
  .filters button{
    flex:1 1 calc(50% - 7px);
    min-width:0;
    text-align:center;
    white-space:normal;
  }

  .projects-grid{width:100%;min-width:0}
  .project-card{width:100%;overflow:hidden}
  .project-visual{width:100%}
  .project-visual img{width:100%;height:100%;object-fit:cover}
  .project-body{padding:18px}
  .project-meta{align-items:flex-start;flex-wrap:wrap}
  .project-body h3{overflow-wrap:anywhere}
  .tags{max-width:100%}
  .tags span{max-width:100%;overflow-wrap:anywhere}
  .open-project{
    grid-template-columns:auto minmax(0,1fr) auto;
    min-width:0;
  }
  .open-project small{
    width:100%;
    max-width:none;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .about-card,.closing-section{overflow:hidden}
  .about-copy h2,.closing-section h2{overflow-wrap:anywhere}
  .closing-section{
    width:auto;
    margin-right:12px;
    margin-left:12px;
  }

  /* Hover transforms can remain stuck after touch; disable them on phones. */
  .project-card:hover,.principles-grid article:hover,.button.primary:hover,.header-projects-link:hover{
    transform:none;
  }

  .ambient-a,.ambient-b{
    max-width:125vw;
    max-height:125vw;
    opacity:.16;
  }
}

@media (max-width:380px){
  .brand-copy small{display:none}
  .hero h1{font-size:38px}
  .hero-visual{min-height:360px}
  .mini-project{width:74px}
  .visual-badge{font-size:9px;padding:7px 10px}
  .filters button{flex-basis:100%}
}
