:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
img{max-width:100%}
[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}
.sprite{position:absolute;width:0;height:0;overflow:hidden}

@font-face{font-family:"Departure Mono";src:url("../fonts/DepartureMono-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
/* The film of a Mac at work, its rail and the try-it desktop. The page around it is assets/site.css, which sets the
   color-scheme: the desktop, the menu bar and the app follow the page (light-dark(light, dark)); the terminals stay dark,
   as terminals usually are, and so do the Beam opening and ending and the end choice over them. */
:root{
  --night:#0c0d0f;   /* page ground */
  --soot:#16171a;    /* raised surface on the page */
  --rule:light-dark(#dce0e6,#27292e);    /* hairlines */
  --paper:light-dark(#212934,#edeef0);   /* primary text */
  --ash:light-dark(#636d7b,#8d9096);     /* secondary text */
  --dim:light-dark(#7a8391,#5e6167);     /* tertiary text */
  --nest-hi:light-dark(#295dce,#9dbfff); /* Docnest accent */
  --mono:"Departure Mono","SF Mono",SFMono-Regular,Menlo,Consolas,monospace;
  --ui:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue","Segoe UI",Roboto,Arial,sans-serif;
  --term:"SF Mono",SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}

/* ---------- film frame ---------- */
.film{max-width:calc((100svh - 72px) * 1.6);margin-inline:auto}
.frame{position:relative;width:100%;aspect-ratio:16/10;border-radius:clamp(8px,1.1vw,16px);overflow:hidden;background:light-dark(#dadee6,#0e121b);box-shadow:0 0 0 1px light-dark(rgba(33,41,52,.1),rgba(255,255,255,.07)),0 40px 120px -30px light-dark(rgba(23,27,35,.35),rgba(0,0,0,.9)),0 12px 40px -12px light-dark(rgba(23,27,35,.2),rgba(0,0,0,.6));contain:layout paint}
.film-view{position:absolute;inset:0}
.stage{position:absolute;left:0;top:0;width:1600px;height:1000px;transform-origin:0 0;overflow:hidden;font-family:var(--ui);color:#f3f5f8;font-size:14px;line-height:1.4;user-select:none;-webkit-user-select:none}
.stage *{box-sizing:border-box}
#wall{position:absolute;inset:0;width:1600px;height:1000px;display:block}

.rail{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;margin-top:16px;font:11px/1 var(--mono);letter-spacing:.06em}
.steps{display:flex;gap:6px 22px;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.steps button{all:unset;cursor:pointer;display:flex;flex-direction:column;gap:8px;color:var(--ash);min-width:64px;padding:4px 0;font:11px/1 var(--mono);letter-spacing:.06em;text-transform:uppercase}
.steps button[aria-current="step"]{color:var(--paper)}
.steps button:focus-visible,.pp:focus-visible{outline:2px solid var(--nest-hi);outline-offset:4px;border-radius:2px}
.steps .bar{display:block;height:2px;background:var(--rule);overflow:hidden}
.steps .bar i{display:block;height:100%;width:100%;background:var(--nest-hi);transform-origin:0 50%;transform:scaleX(0);will-change:transform}
.rail-r{display:flex;align-items:center;gap:18px;color:var(--dim);text-transform:uppercase}
/* phones: the five steps stay on one row */
@media (max-width:599px){.rail{flex-wrap:nowrap}.steps{flex-wrap:nowrap;width:100%;justify-content:space-between;gap:10px}.steps li{min-width:0}.steps button{min-width:0;font-size:10px;letter-spacing:.02em}}
.pp{all:unset;cursor:pointer;color:var(--ash);text-transform:uppercase;padding:4px 0}
.pp:not(:focus-visible){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pp:hover{color:var(--paper)}

/* ---------- inside the stage: macOS ---------- */
.mb{position:absolute;left:0;top:0;width:1600px;height:30px;display:flex;align-items:center;gap:20px;padding:0 18px;font-size:13.5px;color:light-dark(#1d222b,#f6f7f9);background:light-dark(rgba(246,247,250,.55),rgba(12,14,20,.5));z-index:20;letter-spacing:-.005em}
.mb b{font-weight:700;min-width:70px}
.mb span{opacity:.92}
.mb-r{position:absolute;right:18px;top:0;height:30px;display:flex;align-items:center;gap:16px}
.mb-r svg,.mb-dn{display:block}
.mb-dn{filter:var(--mark-filter)}
.clock{font-variant-numeric:tabular-nums}

.win{position:absolute;border-radius:12px;overflow:hidden;box-shadow:0 0 0 .5px rgba(0,0,0,.75),inset 0 .5px 0 rgba(255,255,255,.14),0 26px 70px rgba(4,7,12,.55),0 8px 20px rgba(4,7,12,.35)}
.tbar{height:30px;display:flex;align-items:center;justify-content:center;position:relative;font-size:12.5px;font-weight:600;color:#9c9ea2}
.lights{position:absolute;left:12px;top:50%;transform:translateY(-50%);display:flex;gap:8px}
.lights i{display:block;width:12px;height:12px;border-radius:50%;background:#ff5f57;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.28)}
.lights i:nth-child(2){background:#febc2e}
.lights i:nth-child(3){background:#28c840}
.term{background:#161618;z-index:2}
#w-claude{z-index:3}
#w-codex{background:#0f1011}
#w-gemini{background:#0f1014}
.term .tbar{background:linear-gradient(#323236,#2a2a2d);border-bottom:1px solid #0a0a0b}
.tbody{position:absolute;left:0;right:0;top:30px;bottom:0;overflow:hidden;padding:14px 18px;font:13px/20px var(--term);color:#e6e4e0}
.tbody div{white-space:pre}
/* 로그 줄은 미리 그려 두고 위치(transform)와 투명도만 바꾼다. */
.tlog{position:relative;height:0}
.tl{position:absolute;left:0;top:0;height:20px;opacity:0;white-space:pre}
.tin{position:relative;white-space:pre}
.typed,.reveal{display:inline-block;vertical-align:top;overflow:hidden;height:20px}
.reveal-i{display:inline-block;white-space:pre}
.caret{display:inline-block;width:8px;height:16px;background:#d9d9d9;vertical-align:-3px;margin-left:1px}
.spin{display:inline-block;vertical-align:top;height:20px;overflow:hidden}
.spin>span{display:flex;flex-direction:column}
.spin>span>b{display:block;height:20px;font-weight:400}
.d{color:#8a8a8a}
.u{color:#a7a7a7}
.g{color:#4eba65;font-style:normal}
.w{color:#e6e4e0;font-style:normal}
.o{color:#d77757;font-style:normal}
.bl{color:#8ab4f8;font-style:normal}
.f{position:relative;border-radius:3px;padding:0 1px}
.f>i{position:absolute;inset:0 -2px;border-radius:3px;background:rgba(157,191,255,.45);opacity:0}
.cc-welcome{border:1px solid #d77757;border-radius:6px;padding:6px 12px;width:420px;margin-bottom:14px}
.cc-in{border:1px solid #5d5d5d;border-radius:6px;padding:6px 10px;margin-top:12px}
.cx-head{border:1px solid #3d3d3f;border-radius:6px;padding:6px 12px;width:300px;margin-bottom:12px}
.cx-in{margin-top:10px;padding:6px 10px;background:#1d1e20;border-radius:4px}
.gm-head{margin-bottom:10px}
.gm-in{border:1px solid rgba(138,180,248,.5);border-radius:6px;padding:6px 10px;margin-top:10px}
.gm-tool{border:1px solid #3c4043;border-radius:6px;padding:0 10px;display:inline-block;height:20px;line-height:18px}

/* ---------- Codex desktop agent app window ---------- */
.app-win{background:#1d1d20}
.app-tbar{background:linear-gradient(#2d2d31,#252528);border-bottom:1px solid #111113}
.app-tname{font-size:12.5px;font-weight:600;color:#c0c0c4}
.app-layout{position:absolute;left:0;right:0;top:30px;bottom:0;display:flex}
.app-sb{width:40px;flex-shrink:0;background:#141416;border-right:1px solid #222225;display:flex;flex-direction:column;align-items:center;padding:14px 0;gap:10px}
.app-sb-ic{width:22px;height:22px;border-radius:6px;background:#36363a}
.app-sb-ic.act{background:#4a6ff5}
.app-win .tbody{position:static;flex:1;overflow:hidden;padding:12px 15px}
.app-win .cx-head{display:flex;gap:10px;align-items:center;margin-bottom:10px}

/* ---------- Gemini code editor + plugin panel window ---------- */
.code-win{background:#1e1e1e}
.code-tbar{background:#2b2b2b;border-bottom:1px solid #1a1a1a}
.code-tname{font-size:12px;color:#cccccc}
.code-layout{position:absolute;left:0;right:0;top:30px;bottom:0;display:flex}
.code-editor-side{flex:0 0 40%;border-right:1px solid #333;overflow:hidden;background:#1e1e1e}
.code-tab-row{height:28px;background:#252526;border-bottom:1px solid #1e1e1e;display:flex;align-items:stretch}
.code-tab-item{padding:0 14px;font:11px/28px var(--term);color:#9d9d9d;border-right:1px solid #1e1e1e}
.code-tab-item.active{color:#ccc;background:#1e1e1e;border-bottom:1px solid #0e7aca}
.code-lines{padding:6px 0;overflow:hidden}
.c-ln{display:block;padding:0 10px 0 8px;font:11.5px/17px var(--term);white-space:pre;opacity:.8}
.c-ln b{color:#9cdcfe;font-weight:400}
.code-panel-side{flex:1;min-width:0;display:flex;flex-direction:column;background:#252526}
.code-pan-head{height:32px;display:flex;align-items:center;gap:6px;padding:0 12px;font-size:12px;font-weight:600;color:#d4d4d4;background:#2d2d30;border-bottom:1px solid #333;flex-shrink:0}
.code-pan-badge{font-size:10px;font-weight:500;color:#4ec94e;background:rgba(78,201,78,.12);padding:2px 5px;border-radius:3px;margin-left:auto}
.code-panel-side .tbody{position:static;flex:1;overflow:hidden;padding:10px 14px}

/* light streaks: one per arriving document */
#streaks{position:absolute;inset:0;z-index:12;pointer-events:none}
.streak{will-change:transform;position:absolute;left:0;top:0;width:180px;height:4px;margin:-2px 0 0 -176px;transform-origin:176px 2px;border-radius:2px;opacity:0;
  background:linear-gradient(90deg,rgba(76,130,255,0),rgba(76,130,255,.55) 60%,#cfe0ff 96%,#fff);box-shadow:0 0 10px rgba(76,130,255,.6)}

/* film-only placement of the app parts (stage coordinates are macOS points) */
.film-shelf{position:absolute;inset:0;z-index:14;pointer-events:none}
.film-shelf .dn-line{left:1594px;top:495px}
.film-shelf .dn-talk{left:1594px;top:540px}
.film-shelf .dn-glow{left:1556px;top:455px}
.film-shelf .dn-capsule{left:1550px;top:469px}
.film-shelf .dn-pill{left:1300px;top:493px}
.film-shelf .dn-panel{left:1192px;top:195px;transform-origin:385px 320px}
.film-shelf .dn-line,.film-shelf .dn-capsule,.film-shelf .dn-pill,.film-shelf .dn-panel,.film-shelf .t-peek,.film-shelf .t-lib,
.film-shelf .dn-tip,.film-shelf .dn-undo,.film-shelf .dn-selbar,.film-shelf .dn-scrim,.film-shelf .dn-drawer,.film-shelf .cvs-chat{opacity:0}
.film-shelf .dn-sugbar{position:absolute;left:0;right:0;bottom:0;z-index:4;background:light-dark(#f2f3f7,#1b202a)}
.film-shelf .cvs-feed{display:block;position:relative;overflow:hidden}
.film-shelf .cvs-feed-in{position:absolute;left:14px;right:14px;top:12px;display:flex;flex-direction:column;gap:10px}
.film-shelf .dn-list{overflow:hidden}
.film-rv .rv-back-card.b1{transform:translateY(9px) scale(.955) rotate(-1.3deg);opacity:.85}
.film-rv .rv-back-card.b2{transform:translateY(18px) scale(.91) rotate(1.4deg);opacity:.58}
.film-peek{transform-origin:100% 32%}
.film-peek .dn-ib:not(.strike) .b-li span,.film-peek .dn-ib:not(.strike) .b-p{text-decoration:none}
.film-peek .dn-doc{position:relative}
.film-peek .dn-ib{position:absolute;left:0;right:0;top:0}
.film-peek .dn-ib.was{display:block}
.film-lib .lw-nav,.film-lib .lw-scrim{opacity:0}
.film-lib .lw-tree{overflow:hidden}
.film-lib .lw-pane{position:absolute;left:10px;right:10px;top:4px}
.film-lib .lw-items{overflow:hidden}
.film-lib .lw-items>div,.film-lib .lw-tags>div{position:absolute;left:8px;right:8px;top:0}
.film-lib .lw-tags{position:relative}
.film-lib .lw-tags>div{left:14px;top:10px;display:flex;gap:6px}
.film-lib .lr-row{position:relative}
.film-shelf .dn-tip{left:0;top:0;z-index:31}

/* the film ends on a calm choice over the dimmed desktop */
.end-choice{position:absolute;left:50%;top:50%;z-index:5;display:flex;gap:12px;flex-wrap:wrap;justify-content:center;color-scheme:dark;
  margin:-26px 0 0;width:max-content;max-width:calc(100% - 32px);translate:-50% 0;opacity:0;visibility:hidden}
.choice{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 22px;
  border-radius:12px;font:600 15px/1 var(--ui);color:var(--paper);background:rgba(237,238,240,.1);box-shadow:inset 0 0 0 1px rgba(237,238,240,.2)}
.choice.primary{background:#a2c1ff;color:#14213b;box-shadow:0 10px 30px rgba(54,112,231,.35)}
.choice:hover{background:rgba(237,238,240,.16)}
.choice.primary:hover{background:#b8d0ff}
.choice:focus-visible{outline:2px solid var(--nest-hi);outline-offset:3px}
@media (max-width:520px){.end-choice{gap:8px;margin-top:-20px}.choice{min-height:40px;padding:0 16px;font-size:13px}}
.frame.trying .film-shelf,.frame.trying .intro,.frame.trying .cur,.frame.trying .cur-ring,.frame.trying .cur-key,.frame.trying #streaks,.frame.trying .mb,.frame.trying .end-choice{visibility:hidden!important}
.frame.tall{aspect-ratio:auto;height:min(760px,calc(100svh - 96px))}

/* opening: the Beam D draws itself as one closed line of light, then its stem becomes the edge line */
.intro{position:absolute;inset:0;z-index:25;pointer-events:none}
.intro-bg{position:absolute;left:0;top:0;width:1600px;height:1000px}
/* stage coordinates (Scripts/generate-beam.py --film): the D's box is centred on (800, 515); the stem is x 659, y 371–659
   between its corners, 36 wide; the halves of the bowl meet at (950, 515). Once drawn, the D splits at the stem's ends:
   the stem (under the bowl's tube for its caps, over it for its straight part) turns about (659, 515) to the edge line. */
.beam{position:absolute;left:560px;top:250px;width:460px;height:520px}
.beam svg{position:absolute;left:0;top:0;overflow:visible}
.beam path[pathLength]{stroke-dasharray:0 2;visibility:hidden}
.b-bloom path,.b-glow path,#beamMask path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.b-bloom path{stroke:#1f5cff;stroke-width:34}
.b-glow path{stroke:#2a6bff;stroke-width:26}
#beamMask path{stroke:#fff;stroke-width:40}
.b-bloom{filter:blur(24px);opacity:.75}
.b-glow{filter:blur(7px)}
.b-tube{filter:blur(1px)}
#beamBowlArt,.intro.split #beamRing{display:none}
.intro.split #beamBowlArt{display:inline}
.beam-stem{transform-origin:99px 265px;visibility:hidden}
#beamStemFront svg{clip-path:inset(121px 0 111px 0)}   /* the straight stem, y 371–659: clipped after the blur, so the cut is crisp */
.intro.split .beam-stem{visibility:inherit}
.beam-head{position:absolute;left:-23px;top:-23px;width:46px;height:46px;border-radius:50%;opacity:0;will-change:transform;
  background:radial-gradient(closest-side,#fff 22%,rgba(160,190,255,.85) 42%,rgba(76,130,255,.35) 66%,rgba(76,130,255,0))}
.beam-flash{position:absolute;left:890px;top:455px;width:120px;height:120px;border-radius:50%;opacity:0;will-change:transform;
  background:radial-gradient(closest-side,#fff 12%,rgba(180,206,255,.8) 30%,rgba(76,130,255,.32) 62%,rgba(76,130,255,0))}

/* cursor */
.cur{position:absolute;left:0;top:0;z-index:30;pointer-events:none;opacity:0;will-change:transform;filter:drop-shadow(0 2px 3px rgba(0,0,0,.35))}
/* ⌘ held while clicking rows */
.cur-key{position:absolute;left:0;top:0;z-index:30;min-width:22px;height:22px;padding:0 5px;border-radius:6px;background:rgba(243,245,248,.92);color:#14213b;
  font:600 14px/22px var(--ui);font-style:normal;text-align:center;opacity:0;pointer-events:none;box-shadow:0 2px 6px rgba(0,0,0,.35)}
.cur-ring{will-change:transform;position:absolute;left:0;top:0;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;background:rgba(255,255,255,.35);z-index:29;opacity:0;pointer-events:none}


