:root {
  color-scheme: dark;
  --surface: #0b0b0e;
  --panel: #131316;
  --raised: #19191e;
  --ink: #f6f4f2;
  --muted: #b2afb7;
  --line: #2b2a31;
  --accent: #ff7855;
  --accent-hover: #ff9478;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(20px, 5vw, 74px);
  font-family: "Inter", "Arial", sans-serif;
  font-synthesis: none;
  background: var(--surface);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--surface); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
section[id] { scroll-margin-top: 34px; }

.shell { width: min(calc(100% - var(--gutter) * 2), 1216px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 12px; left: 12px; padding: 10px 16px; transform: translateY(-150%); background: var(--accent); color: #0b0b0e; }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; justify-self: start; width: fit-content; font-size: 1.32rem; line-height: 1; font-weight: 800; letter-spacing: -.065em; color: var(--ink); }
.brand > span:last-child { color: var(--accent); }
.brand-mark { display: block; position: relative; flex: 0 0 25px; height: 23px; margin-right: 9px; }
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
}
.brand-mark::before { clip-path: polygon(0 4%, 28% 4%, 62% 69%, 48% 98%); }
.brand-mark::after { clip-path: polygon(74% 4%, 100% 4%, 67% 67%, 54% 42%); }
.site-nav { display: flex; align-items: center; gap: clamp(24px, 4vw, 48px); color: var(--muted); font-size: .94rem; font-weight: 600; }
.site-nav a, .back-top { padding-block: 12px; }
.site-nav a:hover, .back-top:hover { color: var(--ink); }
.header-action { justify-self: end; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 19px; border: 1px solid transparent; border-radius: 6px; font-size: .94rem; line-height: 1.27; text-align: center; font-weight: 750; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--accent); color: #180b08; }
.button-primary:hover { background: var(--accent-hover); }
.button-outline { background: rgb(15 14 18 / .55); color: var(--ink); border-color: #45434a; }
.button-outline:hover { border-color: #8b848a; background: #232127; }

.hero { position: relative; display: grid; isolation: isolate; overflow: hidden; min-height: clamp(500px, 46vw, 675px); border-bottom: 1px solid var(--line); background: #101013; }
.hero-image, .hero-shade { position: absolute; z-index: -1; inset: 0; }
.hero-image {
  background:
    url("assets/hero.webp") center 54% / cover no-repeat,
    radial-gradient(ellipse at 80% 56%, #59271e, #161316 28%, #101013 55%);
  animation: fade-in .8s ease-out both;
}
.hero-shade {
  background: linear-gradient(90deg, rgb(11 11 14 / .99) 0%, rgb(11 11 14 / .87) 25%, rgb(11 11 14 / .22) 56%, transparent 80%),
    linear-gradient(0deg, rgb(11 11 14 / .38), transparent 30%);
}
.hero-inner { display: flex; align-items: center; padding-block: 60px; }
.hero-copy { position: relative; width: min(100%, 680px); animation: enter .58s cubic-bezier(.18,.64,.19,1) both; }
.kicker, .eyebrow { color: var(--accent); font: 700 .81rem/1.5 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.kicker { display: flex; align-items: center; gap: 11px; margin-bottom: 23px; }
.kicker span { width: 18px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(4.15rem, 7.7vw, 7.7rem); line-height: .93; letter-spacing: -.082em; font-weight: 800; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-description { max-width: 385px; margin-top: 25px; color: #d0cbd1; font-size: clamp(1.06rem, 1.52vw, 1.25rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }

.studio { border-bottom: 1px solid var(--line); background: #110f13; }
.studio-inner { display: grid; grid-template-columns: minmax(135px, .36fr) 1fr; align-items: start; gap: 22px; padding-block: 35px; }
.studio-inner .eyebrow { padding-top: 5px; }
.studio-inner > p { max-width: 690px; color: #d2cfd4; font-size: clamp(1.06rem, 1.7vw, 1.28rem); line-height: 1.55; letter-spacing: -.02em; }
.section { padding-block: clamp(57px, 7.5vw, 110px); }
.section-heading { margin-bottom: clamp(27px, 4vw, 42px); }
.section-heading .eyebrow, .contact-copy .eyebrow { margin-bottom: 10px; }
.section-heading h2, .contact-copy h2 { font-size: clamp(2.35rem, 5.55vw, 5.3rem); line-height: 1; letter-spacing: -.073em; font-weight: 800; }
.section-heading > p:not(.eyebrow), .contact-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 14px; font-size: clamp(1rem, 1.55vw, 1.12rem); }

.service-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.service-tab { display: flex; justify-content: flex-start; align-items: center; gap: 12px; min-height: 62px; padding: 12px 17px; border: 1px solid var(--line); border-radius: 8px; background: #121216; color: var(--muted); font-weight: 700; text-align: left; cursor: pointer; transition: color .18s, background .18s, border-color .18s; }
.service-tab:hover { color: var(--ink); border-color: #5e5357; }
.service-tab[aria-selected="true"] { background: #241815; border-color: #b95740; color: #ffe2d8; }
.service-icon { position: relative; display: block; flex: 0 0 20px; width: 20px; height: 20px; color: var(--accent); }
.service-icon::before, .service-icon::after { content: ""; position: absolute; }
.icon-motion::before { inset: 3px 4px; border: 1.5px solid currentColor; transform: rotate(40deg); border-radius: 2px; }
.icon-motion::after { inset: 7px 8px; border: 1.5px solid currentColor; transform: rotate(40deg); }
.icon-ai::before { inset: 1px; background: currentColor; clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%); }
.icon-story::before { inset: 3px 1px; border: 1.5px solid currentColor; border-radius: 2px; }
.icon-story::after { top: 7px; left: 7px; width: 6px; height: 6px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

.service-panels { margin-top: 11px; }
.service-panel { display: grid; grid-template-columns: 1.08fr 1fr; align-items: stretch; min-height: 350px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); animation: enter .28s ease-out both; }
.offer { align-self: center; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 4vw, 50px); }
.offer h3 { max-width: 450px; font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: .99; letter-spacing: -.064em; font-weight: 800; }
.offer-description { margin-top: 13px; max-width: 430px; color: var(--muted); }
.deliverables { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 19px 0 23px; }
.deliverables li { padding: 5px 8px; border: 1px solid #3b383f; border-radius: 4px; color: #d7d2d7; font-size: .86rem; line-height: 1.25; background: #1b191d; }
.concept { display: grid; grid-template-rows: minmax(158px, 1fr) auto; overflow: hidden; margin: 12px; border: 1px solid var(--line); border-radius: 7px; background: #15151a; }
.concept-caption { padding: 16px 20px 19px; }
.concept-caption .eyebrow { margin-bottom: 4px; color: #c5bfc9; font-size: .77rem; }
.concept-caption h4 { font-size: 1.34rem; letter-spacing: -.035em; }
.concept-caption > p:last-child { margin-top: 3px; color: var(--muted); line-height: 1.45; }

.concept-art { position: relative; display: grid; place-items: center; isolation: isolate; min-height: 158px; overflow: hidden; }
.concept-art span { position: absolute; display: block; }
[data-service="motion"] .concept-art {
  background: linear-gradient(145deg, rgb(250 100 53 / .08), transparent 70%), radial-gradient(ellipse at 50% 56%, #66291e, #221416 57%, #171115);
}
[data-service="motion"] .concept-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 29px, #ffb09325 30px), repeating-linear-gradient(90deg, transparent 0 29px, #ffb09325 30px);
  mask-image: radial-gradient(ellipse at center, #000, transparent 78%);
}
[data-service="motion"] .concept-art span {
  width: min(49%, 232px);
  aspect-ratio: 1.72;
  border-radius: 50%;
  border: 2px solid #ff9b7d;
  box-shadow: 0 0 16px #ff744b77, inset 0 0 13px #ff744b77;
  rotate: -21deg;
}
[data-service="motion"] .concept-art span:nth-child(2) { scale: 1.13 .74; rotate: 29deg; border-color: #ff6339; }
[data-service="motion"] .concept-art span:nth-child(3) { width: 13px; aspect-ratio: 1; border: none; background: #ffead9; box-shadow: 0 0 22px 7px #ff724d; }
[data-service="ai"] .concept-art {
  background: repeating-linear-gradient(118deg, transparent 0 25px, #b08cff18 26px, transparent 28px), radial-gradient(ellipse at 52% 64%, #3d2a6c, #171327 65%, #111019);
}
[data-service="ai"] .concept-art span {
  width: min(31%, 120px);
  aspect-ratio: 1;
  border: 1px solid #b197f3;
  border-radius: 23%;
  rotate: 29deg;
  transform: skew(-13deg) translate(-40%, 6%);
  background: linear-gradient(138deg, #171223 8%, #7251cb 38%, #f4d9ff 43%, #6241b2 49%, #2b1a53 78%, #a17bf2);
  box-shadow: 4px 5px 0 #141023, 0 0 20px #9062f46b;
}
[data-service="ai"] .concept-art span:nth-child(2) { width: min(28%, 106px); transform: skew(-13deg) translate(38%, -4%); }
[data-service="ai"] .concept-art span:nth-child(3) { width: min(20%, 77px); transform: skew(-13deg) translate(18%, 72%); opacity: .74; }
[data-service="story"] .concept-art { background: radial-gradient(ellipse at 55% 66%, #4b4334, #1a201e 66%, #111817); }
[data-service="story"] .concept-art span {
  width: min(42%, 175px);
  aspect-ratio: 1.72;
  border: 3px solid #bdb29a;
  border-bottom-width: 9px;
  border-radius: 2px;
  rotate: -12deg;
  transform: translateX(-32%);
  background: linear-gradient(24deg, #212724 0 24%, transparent 25%), linear-gradient(-24deg, #343a2f 0 34%, transparent 35%), radial-gradient(circle at 54% 36%, #f1c987 0 10%, #8a826b 11%, #55594f 66%);
  box-shadow: 0 13px 22px #11181799;
}
[data-service="story"] .concept-art span:nth-child(2) { rotate: 11deg; transform: translateX(32%); border-color: #e0ba89; filter: saturate(1.45) hue-rotate(-10deg); }
[data-service="story"] .concept-art span:nth-child(3) { display: none; }
.service-panel .concept-art span { animation: drift 2.3s ease-in-out 2 alternate; }
.service-panel .concept-art span:nth-child(2) { animation-direction: alternate-reverse; }
.service-panel .concept-art span:nth-child(3) { animation-duration: 1.9s; }

.work-section { border-block: 1px solid var(--line); background: #101014; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.work-card {
  --cover: #ed906a;
  --cover-dark: #331d1c;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.work-card[data-cover="ai"] { --cover: #baa1fa; --cover-dark: #26193c; }
.work-card[data-cover="story"] { --cover: #e6b976; --cover-dark: #30261b; }
.work-card[data-cover="product"] { --cover: #cdd7a2; --cover-dark: #242c1c; }
.work-card[data-cover="auto"] { --cover: #91add5; --cover-dark: #1b2538; }
.work-trigger { display: flex; flex: 1; flex-direction: column; min-width: 0; border-radius: inherit; }
.work-art {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  aspect-ratio: 2.15;
  min-height: 112px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: 7px 7px 0 0;
  background: radial-gradient(ellipse at 54% 56%, var(--cover-dark), #101015 80%);
}
.work-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -60% -5%;
  background: repeating-linear-gradient(130deg, transparent 0 19px, var(--cover) 20px, transparent 21px 35px);
  mask-image: radial-gradient(ellipse at 50% 55%, #000, transparent 69%);
  opacity: .27;
  transform: skewX(-14deg);
}
.work-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 67%;
  aspect-ratio: 3;
  border: 1px solid var(--cover);
  border-radius: 50%;
  opacity: .46;
  transform: rotate(-22deg);
  transition: transform .25s ease;
}
.work-trigger:hover .work-art::after { transform: rotate(-12deg) scale(1.16); }
.play-mark {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border: 1px solid var(--cover);
  border-radius: 50%;
  color: var(--cover);
  background: #101015;
  transition: background .2s ease, color .2s ease;
}
.play-mark::before {
  content: "";
  width: 12px;
  height: 14px;
  margin-left: 3px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.work-trigger:hover .play-mark { background: var(--cover); color: #101015; }
.work-copy { display: flex; flex: 1; flex-direction: column; padding: 17px 20px; }
.work-service { color: var(--cover); font-size: .875rem; font-weight: 700; }
.work-copy h3 { margin-block: 4px 12px; font-size: clamp(1.25rem, 2.15vw, 1.62rem); line-height: 1.1; letter-spacing: -.04em; }
.work-watch, .work-drive-link { color: var(--ink); font-size: .94rem; font-weight: 700; text-underline-offset: 5px; text-decoration: underline; text-decoration-color: #7d737d; }
.work-watch { margin-top: auto; }
.work-trigger:hover .work-watch, .work-drive-link:hover { text-decoration-color: var(--accent); color: var(--accent); }

.work-dialog {
  width: min(calc(100% - 24px), 940px);
  max-width: none;
  max-height: calc(100% - 24px);
  padding: 0;
  overflow: auto;
  border: 1px solid #47444c;
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
}
.work-dialog::backdrop { background: rgb(5 5 8 / .87); }
.work-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px clamp(14px, 3vw, 24px); }
.work-dialog-head h2 { font-size: clamp(1.17rem, 3vw, 1.8rem); line-height: 1.13; letter-spacing: -.035em; }
.close-video { min-height: 44px; padding-inline: 13px; }
#work-video-player iframe {
  display: block;
  width: 100%;
  min-height: min(280px, 48svh);
  max-height: 67svh;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #0b0b0e;
}
.work-dialog-footer { display: flex; align-items: center; min-height: 59px; padding: 12px clamp(14px, 3vw, 24px); }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 100px); align-items: start; }
.contact-copy > p:not(.eyebrow) { max-width: 390px; }
.brief-form { display: grid; padding: clamp(20px, 3vw, 33px); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.brief-fields, .copy-fallback { display: grid; }
.brief-fields label, .copy-fallback label { margin-bottom: 7px; font-size: .95rem; font-weight: 700; }
.brief-fields select, .brief-fields textarea, .copy-fallback textarea { width: 100%; min-height: 48px; padding: 11px 12px; border-radius: 5px; border: 1px solid #47444c; color: var(--ink); background: #0d0d10; font-size: 1rem; }
.brief-fields select { appearance: none; padding-right: 38px; margin-bottom: 16px; background-image: conic-gradient(from -45deg at 50% 75%, #b2afb7 0deg 90deg, transparent 90deg); background-repeat: no-repeat; background-size: 12px 9px; background-position: right 14px center; }
.brief-fields textarea, .copy-fallback textarea { resize: vertical; }
.brief-fields textarea::placeholder { color: #99949e; }
.brief-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 15px; margin-top: 15px; }
.brief-status { color: #ffd2c5; font-size: .88rem; }
.brief-status:empty { display: none; }
.copy-fallback { margin-top: 15px; }
.site-footer { border-top: 1px solid var(--line); background: #101014; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 76px; }
.back-top { color: var(--muted); font-size: .91rem; }

@keyframes enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drift {
  from { translate: 0 -3px; }
  to { translate: 0 5px; }
}

@media (max-width: 820px) {
  .work-grid { gap: 9px; }
  .work-copy { padding: 15px; }
}
@media (max-width: 690px) {
  .header-inner { min-height: 66px; grid-template-columns: 1fr auto; gap: 12px; }
  .header-action { min-height: 44px; padding-inline: 13px; white-space: nowrap; }
  .site-nav { display: none; }
  .hero { min-height: clamp(560px, 108vw, 675px); }
  .hero-inner { align-items: flex-start; padding-block: 45px 240px; }
  .hero-shade { background: linear-gradient(180deg, #0b0b0e 4%, rgb(11 11 14 / .98) 25%, rgb(11 11 14 / .84) 45%, rgb(11 11 14 / .28) 62%, transparent 80%, rgb(11 11 14 / .64)); }
  .hero-image { top: 215px; background-position: 84% 50%, center; }
  .hero h1 { font-size: clamp(3.3rem, 11.7vw, 5.4rem); }
  .hero-description { margin-top: 17px; }
  .kicker { margin-bottom: 17px; }
  .actions { margin-top: 20px; gap: 8px; }
  .actions .button { padding-inline: 14px; }
  .studio-inner { grid-template-columns: 1fr; gap: 8px; padding-block: 24px; }
  .studio-inner .eyebrow { padding-top: 0; }
  .service-tabs { gap: 6px; }
  .service-tab { justify-content: center; flex-direction: column; gap: 6px; min-height: 71px; padding: 8px 5px; text-align: center; font-size: .89rem; line-height: 1.16; }
  .service-panel { grid-template-columns: 1fr; }
  .concept { margin: 0 10px 10px; }
  .concept-caption { padding-inline: 15px; }
  .work-grid, .contact-layout { grid-template-columns: 1fr; gap: 15px; }
  .work-art { max-height: 185px; }
  .work-copy { padding: 17px; }
  .contact-layout { gap: 22px; }
}
@media (max-width: 370px) {
  .actions { gap: 8px; }
  .actions .button { padding-inline: 9px; font-size: .87rem; }
  .service-tab { font-size: .83rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.founder-section { border-bottom: 1px solid var(--line); background: #101014; }
.founder-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding-block: clamp(35px, 5vw, 72px); }
.founder-inner .section-heading { margin: 0; }
.founder-inner .work-drive-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; }
.founder-video { display: block; width: min(100%, 290px); aspect-ratio: 9 / 16; object-fit: contain; background: #000; border: 1px solid var(--line); border-radius: 9px; }
.contact-links { display: grid; gap: 8px; margin: 17px 0 0; padding: 0; list-style: none; }
.contact-links li { display: grid; }
.contact-links span { color: var(--muted); font-size: .875rem; }
.contact-links a { display: flex; align-items: center; width: fit-content; min-height: 44px; color: var(--accent); overflow-wrap: anywhere; }
.contact-links a:hover { text-decoration: underline; }

@media (max-width: 690px) {
  .founder-inner { grid-template-columns: 1fr; gap: 16px; }
}
