@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  color-scheme: dark;
  --background: #101113;
  --ink: #f4f3ed;
  --muted: #b3b2b2;
  --line: #303134;
  --lime: #d9f782;
  font-family: Geist, Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
img { display: block; max-width: 100%; }
.frame { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: -100px; left: 16px; background: var(--lime); color: #111; padding: 8px; }
.skip:focus { top: 12px; }
.header, .footer { display: flex; justify-content: space-between; align-items: center; min-height: 78px; gap: 16px; }
.header { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .26em; text-decoration: none; white-space: nowrap; font-weight: 800; font-size: 1.27rem; letter-spacing: -.07em; }
.studio-word { font-weight: 500; color: #c4c3c1; }
.spark { color: var(--lime); font-size: 1.17em; margin-right: .18em; }
nav { display: flex; align-items: center; gap: clamp(20px, 4vw, 42px); }
nav a, .footer > a:last-child { font-size: .92rem; text-decoration: none; color: var(--muted); }
nav a:hover, .footer > a:last-child:hover { color: var(--ink); }

.hero { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: 22px; min-height: 560px; padding-block: 38px; }
.intro { position: relative; z-index: 1; }
.kicker, .category { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 600; }
.kicker { display: flex; align-items: center; gap: 9px; color: #d8d9d5; margin: 0 0 25px; }
.kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 15px #d9f78260; }
h1 { font-size: clamp(3.3rem, 7.2vw, 7.8rem); line-height: .88; letter-spacing: -.095em; margin: 0; font-weight: 700; }
h1 em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.065em; color: var(--lime); }
.intro > p:not(.kicker) { font-size: clamp(1rem, 1.55vw, 1.2rem); max-width: 36ch; line-height: 1.55; color: var(--muted); margin: 27px 0 24px; }
.button { text-decoration: none; background: var(--lime); color: #171b10; font-weight: 700; border-radius: 100px; display: inline-flex; align-items: center; gap: 20px; padding: 13px 19px; transition: background .2s; }
.button:hover { background: #ecffb9; }
.showcase { isolation: isolate; position: relative; min-width: 0; aspect-ratio: 1.14; overflow: hidden; border-radius: 26px; border: 1px solid #373a32; background: radial-gradient(ellipse at 55% 80%, #65753c 0%, #303b26 27%, #1b211a 51%, #151719 77%); }
.showcase::before { content: ""; position: absolute; inset: 0; background: radial-gradient(#e2efbc48 .7px, transparent .7px) 0 0 / 19px 19px; mask-image: linear-gradient(#000, transparent 85%); }
.orbit { position: absolute; left: 50%; top: 54%; translate: -50% -50%; border-radius: 50%; width: 86%; aspect-ratio: 1; border: 1px solid #daef9b38; }
.orbit-inner { width: 66%; }
.hero-phone { position: absolute; width: 34%; max-width: none; bottom: -8%; border: clamp(3px, .5vw, 7px) solid #191a1d; border-radius: 12% / 6%; box-shadow: 0 20px 36px #000a, 0 0 0 1px #ffffff35; }
.phone-left { left: 13%; transform: rotate(-17deg); }
.phone-right { right: 10%; transform: rotate(16deg); bottom: -6%; }
.phone-main { left: 34%; bottom: -3%; transform: rotate(-4deg); }

.app-index { display: grid; grid-template-columns: repeat(6, 1fr); border-block: 1px solid var(--line); text-align: center; }
.app-index a { text-decoration: none; padding: 19px 5px; color: #d0cfcf; font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.app-index a + a { border-left: 1px solid var(--line); }
.app-index a:hover { background: #191b1c; color: var(--lime); }
.collection { padding-block: clamp(54px, 8vw, 110px); scroll-margin-top: 12px; }
h2 { font-size: clamp(2.7rem, 5.8vw, 5.5rem); letter-spacing: -.085em; line-height: .95; margin: 0 0 28px; }
.portfolio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.project { border-radius: 22px; overflow: hidden; border: 1px solid #303134; background: #18191c; scroll-margin-top: 20px; display: flex; flex-direction: column; }
.project:target { border-color: var(--lime); }
.visual { aspect-ratio: 1.62; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; position: relative; isolation: isolate; }
.visual img { object-fit: contain; }
.couch .visual { background: radial-gradient(ellipse at 50% 100%, #fee3bb, #df733e 60%, #c85931); }
.couch .visual img { height: 126%; border-radius: 18px; transform: translateY(34%) rotate(-10deg); box-shadow: 0 12px 45px #5c1e2f74; }
.pilot .visual { background: #c0e7dd; }
.pilot .visual img, .kandilj .visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.kandilj .visual { background: #1a2142; }
.morsel .visual { background: radial-gradient(ellipse at 50% 100%, #a591e3, #514282 73%); }
.someday .visual { background: radial-gradient(ellipse at 50% 100%, #fff1bc, #f2bf45 73%); }
.proof .visual { background: radial-gradient(ellipse at 50% 100%, #6b8033, #2a3820 73%); }
.pair img { height: 92%; width: auto; max-width: 45%; border: 5px solid #111215; border-radius: 13% / 6%; box-shadow: 0 10px 34px #1119; transform: translate(4%, 17%) rotate(-13deg); }
.pair img + img { transform: translate(-3%, 24%) rotate(12deg); }
.project-copy { padding: clamp(20px, 3.25vw, 40px); flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.category { color: var(--muted); margin: 0 0 6px; }
h3 { font-size: clamp(2.35rem, 4.5vw, 4.1rem); letter-spacing: -.075em; margin: 0; line-height: 1.08; }
.project-copy > p:not(.category) { margin: 10px 0 18px; max-width: 41ch; line-height: 1.55; color: #c5c5c5; }
.project-copy > p:last-child { margin-bottom: 0; }
.project-link { margin-top: auto; padding-block: 5px; text-decoration: none; font-weight: 600; }
.project-link span { color: var(--lime); padding-left: 5px; }
.project-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.studio { border-top: 1px solid var(--line); padding-block: clamp(38px, 7vw, 90px); display: flex; align-items: flex-start; gap: clamp(20px, 5vw, 65px); }
.studio-mark { font-size: clamp(2.7rem, 8vw, 7rem); line-height: .92; }
.studio h2 { margin: 0 0 15px; }
.studio p { color: var(--muted); font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.55; max-width: 49ch; margin: 0; }
.footer { border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .frame { width: calc(100% - 60px); }
  .hero { min-height: 460px; }
}
@media (max-width: 720px) {
  .frame { width: calc(100% - 36px); }
  .header, .footer { min-height: 64px; }
  .hero { grid-template-columns: 1fr; gap: 28px; justify-items: stretch; padding-block: 44px 26px; }
  h1 { font-size: clamp(3.6rem, 11vw, 6.2rem); }
  .showcase { aspect-ratio: 1.25; }
  .app-index { grid-template-columns: repeat(3, 1fr); }
  .app-index a:nth-child(4) { border-left: 0; }
  .app-index a:nth-child(n+4) { border-top: 1px solid var(--line); }
  .portfolio { grid-template-columns: 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
