:root {
  --paper: #f4f1eb;
  --paper-2: #ebe7df;
  --white: #fff;
  --ink: #171716;
  --ink-soft: #5d5b56;
  --line: rgba(23, 23, 22, 0.13);
  --blue: #376be8;
  --coral: #e36f52;
  --forest: #3d5240;
  --gold: #d6a144;
  --radius: 34px;
  --max: 1320px;
  --header: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.work-intro, .product, .telos-devices, .next-product, .studio, .closing { scroll-margin-top: calc(var(--header) + 18px); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 16px; background: var(--ink); color: white; border-radius: 10px; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 64px);
  transition: background .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { background: rgba(244,241,235,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: clamp(176px, 16vw, 210px); height: auto; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 600; }
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .2s ease; }
.site-nav a:hover::after { right: 0; }
.menu-button { display: none; border: 0; padding: 10px; background: transparent; }
.menu-button span:not(.sr-only) { display: block; width: 23px; height: 1.5px; margin: 6px 0; background: var(--ink); }

.eyebrow { margin: 0 0 20px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Inter Tight", Inter, sans-serif; margin: 0; letter-spacing: -.045em; }
p { line-height: 1.62; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: transform .2s var(--ease), background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #30302e; }
.button-light { background: white; color: var(--ink); }
.button-light:hover { background: #f2f2ef; }
.text-link { font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

.hero {
  min-height: 100svh;
  padding: calc(var(--header) + 68px) clamp(22px, 4vw, 64px) 36px;
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(560px, 1.22fr);
  grid-template-rows: 1fr auto;
  gap: 54px clamp(34px, 5vw, 90px);
  align-items: center;
  overflow: hidden;
}
.hero-copy { max-width: 620px; }
.hero h1 { font-size: clamp(58px, 6.4vw, 104px); line-height: .94; max-width: 800px; }
.hero-lede { max-width: 540px; margin: 28px 0 32px; color: var(--ink-soft); font-size: clamp(18px, 1.6vw, 23px); }
.hero-stage { min-height: 560px; display: grid; place-items: center; }
.hero-brand-art { position: relative; width: min(100%, 640px); margin: 0; padding: clamp(40px, 4.8vw, 64px); border: 1px solid rgba(23,23,21,.08); border-radius: clamp(30px, 4vw, 52px); background: rgba(247,242,234,.82); box-shadow: 0 34px 90px rgba(23,23,21,.12); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.hero-brand-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.hero-brand-art img { width: 100%; }
.hero-brand-art:hover { transform: translateY(-4px); box-shadow: 0 42px 100px rgba(23,23,21,.16); }
.product-index { grid-column: 1/-1; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.product-index-item { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: 1fr 1fr; column-gap: 12px; align-items: end; padding: 22px 18px 6px; border-right: 1px solid var(--line); transition: background .2s ease; }
.product-index-item:first-child { padding-left: 0; }
.product-index-item:last-child { border-right: 0; }
.product-index-item:hover { background: rgba(255,255,255,.38); }
.product-index-item img { grid-row: 1/3; width: 44px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 20px rgba(30,30,28,.12); }
.product-index-item span { align-self: end; font-size: 13px; font-weight: 700; }
.product-index-item small { align-self: start; color: var(--ink-soft); font-size: 11px; }

.work-intro, .next-heading { max-width: var(--max); margin: 0 auto; padding: 150px clamp(22px, 4vw, 64px) 76px; }
.work-intro h2, .next-heading h2, .studio-intro h2 { max-width: 850px; font-size: clamp(48px, 6vw, 88px); line-height: .98; }
.work-intro > p:last-child, .next-heading > p:last-child, .studio-intro > p:last-child { max-width: 650px; margin: 26px 0 0; color: var(--ink-soft); font-size: 18px; }

.product { width: min(calc(100% - 48px), 1500px); min-height: 740px; margin: 0 auto 28px; padding: clamp(36px, 5vw, 82px); border-radius: var(--radius); display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(38px, 6vw, 96px); align-items: center; overflow: hidden; }
.product-telos { background: #101114; color: white; }
.product-habitios { background: #eaded2; grid-template-columns: 1.18fr .82fr; }
.product-copy { max-width: 520px; }
.product-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; }
.product-heading.compact { margin-bottom: 40px; }
.app-icon { width: 68px; height: 68px; object-fit: cover; border-radius: 18px; box-shadow: 0 13px 30px rgba(0,0,0,.16); }
.product-heading h2 { margin-top: 2px; font-size: 24px; letter-spacing: -.03em; }
.status { margin: 0 0 4px; color: rgba(255,255,255,.64); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.product-habitios .status, .next-kalos .status, .next-rocky .status { color: var(--ink-soft); }
.status-live { color: #75d4a4; }
.product h3 { font-size: clamp(44px, 4.2vw, 72px); line-height: .98; }
.product-copy > p { margin: 26px 0 0; color: rgba(255,255,255,.68); font-size: 17px; }
.product-copy > .product-assurance { margin-top: 18px; color: rgba(255,255,255,.9); font-weight: 650; }
.product-habitios .product-copy > p { color: var(--ink-soft); }
.product-actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.product-visual { margin: 0; overflow: hidden; border-radius: 25px; box-shadow: 0 34px 70px rgba(0,0,0,.28); transform: translateZ(0); }
.product-visual img { width: 100%; transition: transform .65s var(--ease); }
.product-visual:hover img, [data-visual]:hover img { transform: scale(1.018); }
.product-habitios .product-visual { box-shadow: 0 32px 68px rgba(90,55,38,.2); }

.telos-devices { max-width: var(--max); margin: 0 auto; padding: 96px clamp(22px, 4vw, 64px) 170px; }
.telos-devices-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(42px, 8vw, 120px); align-items: end; }
.telos-devices-head h2 { max-width: 780px; font-size: clamp(48px, 6vw, 88px); line-height: .98; }
.telos-devices-head > p { max-width: 510px; margin: 0 0 6px; color: var(--ink-soft); font-size: 18px; }
.telos-device-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 42px); align-items: start; }
.telos-device-card { margin: 0; }
.telos-device-card-raised { transform: translateY(-34px); }
.telos-phone-shot { overflow: hidden; border-radius: 32px; background: #f7f4ee; box-shadow: 0 28px 64px rgba(43,39,33,.16); }
.telos-phone-shot img { width: 100%; transition: transform .65s var(--ease); }
.telos-device-card figcaption { display: grid; gap: 7px; padding: 22px 6px 0; }
.telos-device-card strong { font-family: "Inter Tight", Inter, sans-serif; font-size: 18px; letter-spacing: -.02em; }
.telos-device-card span { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }

.next { padding-bottom: 120px; }
.next-heading { padding-top: 160px; }
.next-product { width: min(calc(100% - 48px), var(--max)); margin: 0 auto 24px; min-height: 620px; border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; }
.next-copy { padding: clamp(38px, 6vw, 86px); max-width: 650px; }
.next-product h3 { font-size: clamp(44px, 5vw, 76px); line-height: .98; }
.next-copy > p { margin: 26px 0 0; max-width: 540px; font-size: 17px; color: var(--ink-soft); }
.next-kalos { grid-template-columns: .72fr 1.28fr; background: #e6e8df; color: var(--ink); }
.kalos-gallery { position: relative; min-height: 620px; align-self: stretch; overflow: hidden; background: radial-gradient(circle at 52% 42%, rgba(255,255,255,.88), rgba(232,234,226,.46) 50%, transparent 72%); }
.kalos-phone { position: absolute; bottom: -12%; width: 36%; margin: 0; filter: drop-shadow(0 28px 30px rgba(35,45,35,.19)); transition: transform .55s var(--ease); }
.kalos-phone img { width: 100%; }
.kalos-phone-time { left: 2%; transform: rotate(-6deg) translateY(5%); z-index: 1; }
.kalos-phone-home { left: 32%; transform: translateY(-2%); z-index: 3; }
.kalos-phone-training { right: 2%; transform: rotate(6deg) translateY(5%); z-index: 2; }
.kalos-gallery:hover .kalos-phone-time { transform: rotate(-4deg) translate(-2%, 2%); }
.kalos-gallery:hover .kalos-phone-home { transform: translateY(-4%); }
.kalos-gallery:hover .kalos-phone-training { transform: rotate(4deg) translate(2%, 2%); }
.next-cue { grid-template-columns: .85fr 1.15fr; background: #0c0b0a; color: white; }
.next-cue .next-copy > p { color: rgba(255,255,255,.62); }
.cue-media { position: relative; min-height: 620px; align-self: stretch; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.2vw, 34px); padding: 42px 32px; background: radial-gradient(circle at 48% 42%, #393735 0, #161514 50%, #0c0b0a 78%); }
.cue-media figure { margin: 0; transition: transform .55s var(--ease); }
.cue-media img { width: 100%; height: auto; }
.cue-phone-shot { width: min(46%, 360px); min-width: 240px; border-radius: 34px; overflow: hidden; box-shadow: 0 34px 72px rgba(0,0,0,.55); }
.cue-media:hover .cue-phone-shot { transform: translateY(-6px); }
.next-rocky { min-height: 560px; background: #f2dfcb; }
.rocky-live { position: relative; align-self: stretch; min-height: 560px; margin: 0; overflow: hidden; isolation: isolate; background: linear-gradient(#f2d4ae 0 62%, #c28e65 62% 100%); }
.rocky-live::before { content: ""; position: absolute; inset: 61% 0 auto; height: 10px; z-index: -1; background: #f8e4c6; border-block: 1px solid rgba(122,73,39,.14); }
.rocky-room-window { position: absolute; top: 10%; left: 8%; width: 32%; height: 38%; border: 12px solid #f8ecd2; border-radius: 8px; background: linear-gradient(145deg, #fff6dc, #ffd98c); box-shadow: inset -8px -8px 0 rgba(166,116,72,.12), 0 15px 45px rgba(112,70,39,.1); }
.rocky-room-window::before, .rocky-room-window::after { content: ""; position: absolute; background: rgba(248,236,210,.9); }
.rocky-room-window::before { inset: 0 calc(50% - 4px); }
.rocky-room-window::after { inset: calc(50% - 4px) 0; }
.rocky-room-art { position: absolute; top: 13%; right: 10%; width: 19%; aspect-ratio: .82; padding: 9px; border: 7px solid #f8ecd2; background: #f5d8b4; box-shadow: 0 12px 30px rgba(84,49,26,.12); }
.rocky-room-art span { display: block; height: 100%; background: radial-gradient(circle at 55% 35%, #7b9863 0 7%, transparent 8%), linear-gradient(35deg, transparent 44%, #7b9863 45% 49%, transparent 50%); opacity: .72; }
.rocky-room-plant { position: absolute; left: 6%; bottom: 26%; width: 15%; height: 25%; border-bottom: 34px solid #b85f3f; border-inline: 13px solid transparent; }
.rocky-room-plant i { position: absolute; left: 50%; bottom: 16px; width: 34px; height: 17px; border-radius: 100% 0 100% 0; background: #7b9863; transform-origin: 0 100%; }
.rocky-room-plant i:nth-child(1) { transform: rotate(-58deg) translate(5px,-6px); }
.rocky-room-plant i:nth-child(2) { transform: rotate(-24deg) translate(3px,-38px); }
.rocky-room-plant i:nth-child(3) { transform: scaleX(-1) rotate(-56deg) translate(-5px,-16px); }
.rocky-room-plant i:nth-child(4) { transform: scaleX(-1) rotate(-22deg) translate(-3px,-54px); }
.rocky-room-rug { position: absolute; left: 23%; right: 5%; bottom: -12%; height: 38%; border-radius: 50%; background: repeating-radial-gradient(ellipse at center, #f2ddb9 0 22px, #d07453 23px 43px, #a7b58a 44px 61px); opacity: .92; transform: perspective(500px) rotateX(58deg); }
.rocky-label { position: absolute; top: 24px; left: 28px; z-index: 4; color: #6b4a38; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.rocky-bubble { position: absolute; top: 25px; right: 28px; z-index: 4; max-width: 49%; padding: 11px 16px; border: 1px solid rgba(107,74,56,.16); border-radius: 16px 16px 5px 16px; background: rgba(255,255,255,.9); color: #3a2418; box-shadow: 0 14px 30px rgba(78,42,20,.10); font-family: Georgia, serif; font-size: clamp(13px, 1.4vw, 18px); font-style: italic; }
.rocky-character { position: absolute; z-index: 3; width: min(45%, 330px); height: auto; left: 50%; bottom: 2%; transform: translateX(-50%); overflow: visible; filter: drop-shadow(0 24px 18px rgba(74,38,17,.2)); }
.r-body, .r-tail, .r-eyes, .r-ear-l, .r-ear-r { transform-box: fill-box; }
.r-body { transform-origin: 50% 100%; animation: rocky-breathe 1.3s ease-in-out infinite; }
.r-tail { transform-origin: 0 100%; animation: rocky-wag .3s ease-in-out infinite; }
.r-eyes { transform-origin: 50% 50%; animation: rocky-blink 4s ease-in-out infinite; }
.r-ear-l, .r-ear-r { transform-origin: 50% 0%; animation: rocky-ear 2.4s ease-in-out infinite; }
.r-ear-r { animation-delay: -.7s; }
@keyframes rocky-breathe { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.025); } }
@keyframes rocky-wag { 0%,100% { transform: rotate(-22deg); } 50% { transform: rotate(22deg); } }
@keyframes rocky-blink { 0%,93%,100% { transform: scaleY(1); } 95%,97% { transform: scaleY(.08); } }
@keyframes rocky-ear { 0%,90%,100% { transform: rotate(0); } 92%,94% { transform: rotate(-5deg); } 96% { transform: rotate(3deg); } }

.studio { background: white; padding: 150px clamp(22px, 4vw, 64px); }
.studio-intro, .principles { max-width: var(--max); margin: 0 auto; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 100px; border-top: 1px solid var(--line); }
.principles > div { padding-top: 26px; }
.principles span { font-size: 11px; color: var(--ink-soft); }
.principles h3 { margin-top: 50px; font-size: 26px; }
.principles p { margin: 16px 0 0; max-width: 340px; color: var(--ink-soft); }
.closing { padding: 160px clamp(22px, 4vw, 64px); background: var(--ink); color: white; text-align: center; }
.closing h2 { font-size: clamp(56px, 8vw, 118px); line-height: .92; }
.closing-purpose { max-width: 690px; margin: 34px auto 0; color: rgba(255,255,255,.66); font-size: clamp(17px, 1.6vw, 21px); }
.closing .button { margin-top: 44px; }
.site-footer { padding: 42px clamp(22px, 4vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; font-weight: 600; }
.site-footer > p { grid-column: 1/-1; margin: 12px 0 0; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding-top: calc(var(--header) + 70px); }
  .hero-copy { max-width: 800px; }
  .hero h1 { font-size: clamp(64px, 10vw, 100px); }
  .hero-stage { min-height: 500px; }
  .product-index { grid-template-columns: repeat(3, 1fr); }
  .product-index-item:nth-child(3) { border-right: 0; }
  .product-index-item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .product, .product-habitios { min-height: auto; grid-template-columns: 1fr; }
  .product-habitios .product-visual { order: 2; }
  .product-copy { max-width: 760px; }
  .next-product, .next-cue, .next-kalos { grid-template-columns: 1fr; }
  .telos-devices-head { grid-template-columns: 1fr; }
  .kalos-gallery { min-height: 650px; }
  .cue-media { min-height: 560px; }
  .next-rocky .rocky-live { min-height: 500px; }
}

@media (max-width: 720px) {
  :root { --header: 68px; --radius: 24px; }
  .site-header { padding-inline: 20px; }
  .brand-logo { width: 170px; }
  .menu-button { display: block; z-index: 2; }
  .site-nav { position: fixed; inset: 0 0 auto; height: 100dvh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px; padding: 28px; background: var(--paper); font-family: "Inter Tight", Inter, sans-serif; font-size: 38px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-100%); transition: transform .35s var(--ease), opacity .2s ease, visibility 0s linear .35s; }
  .site-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
  .hero { padding: calc(var(--header) + 44px) 20px 24px; gap: 34px; }
  .hero h1 { font-size: clamp(52px, 15vw, 72px); }
  .hero-lede { margin-top: 22px; font-size: 17px; }
  .hero-stage { min-height: 0; }
  .hero-brand-art { width: min(100%, 540px); padding: 32px 24px; border-radius: 26px; }
  .hero-brand-art:hover { transform: translateY(-2px); }
  .product-index { grid-template-columns: 1fr; }
  .product-index-item, .product-index-item:first-child { padding: 14px 2px; border-right: 0; border-top: 1px solid var(--line); }
  .product-index-item:first-child { border-top: 0; }
  .product-index-item:nth-child(3) { border-right: 0; }
  .work-intro, .next-heading { padding: 110px 20px 52px; }
  .work-intro h2, .next-heading h2, .studio-intro h2 { font-size: 50px; }
  .product { width: calc(100% - 24px); margin-bottom: 12px; padding: 30px 22px; gap: 34px; }
  .product-heading { margin-bottom: 34px; }
  .product h3, .next-product h3 { font-size: 46px; }
  .product-actions { align-items: flex-start; flex-direction: column; }
  .product-visual { border-radius: 16px; }
  .telos-devices { padding: 76px 20px 120px; }
  .telos-devices-head h2 { font-size: 50px; }
  .telos-devices-head > p { font-size: 16px; }
  .telos-device-gallery { grid-template-columns: 1fr; gap: 54px; }
  .telos-device-card, .telos-device-card-raised { width: min(100%, 430px); margin-inline: auto; transform: none; }
  .telos-phone-shot { border-radius: 24px; }
  .next { padding-bottom: 70px; }
  .next-product { width: calc(100% - 24px); margin-bottom: 12px; min-height: auto; }
  .next-copy { padding: 34px 22px; }
  .kalos-gallery { min-height: 500px; }
  .kalos-phone { bottom: -4%; width: 42%; }
  .kalos-phone-time { left: -7%; }
  .kalos-phone-home { left: 29%; }
  .kalos-phone-training { right: -7%; }
  .cue-media { min-height: 530px; padding: 34px 18px; }
  .cue-phone-shot { position: static; width: min(66%, 270px); min-width: 0; border-radius: 26px; }
  .next-rocky .rocky-live { min-height: 430px; }
  .rocky-character { width: min(55%, 250px); }
  .rocky-room-window { width: 38%; height: 35%; border-width: 8px; }
  .rocky-bubble { top: 22px; right: 18px; max-width: 56%; }
  .studio { padding: 110px 20px; }
  .principles { grid-template-columns: 1fr; gap: 42px; margin-top: 70px; }
  .principles h3 { margin-top: 28px; }
  .closing { padding: 120px 20px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { gap: 16px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .r-body, .r-tail, .r-eyes, .r-ear-l, .r-ear-r { animation: none !important; }
}
