/* Cloud Nine Contracting — flagship teaser. System: DESIGN.md (locked).
   Inherited tokens from the Home Co. flagship (DESIGN-v3 §2), subset only.
   Zero JavaScript on this site by design. */

:root{
  --sheet:#FFFFFF;
  --sky:#F5F8FA;
  --gold-foil:#C79A3B;
  --bronze:#8A5A12;
  --bronze-deep:#7C4A03;
  --ink:#17181D;
  --ink-soft:#4A463C;
  --panel-line:#D8CBA6;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Instrument Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  color:var(--ink-soft);
  background:linear-gradient(180deg,var(--sky) 0%,var(--sheet) 36%);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
::selection{background:#E9D9AE;color:var(--ink)}

/* The clouds: drafting-symbol sketch clouds in the upper sky field —
   single-stroke scalloped outlines (revision-cloud DNA), unfilled.
   Decoration only; they sit in open sky, clear of the name. */
.clouds{
  position:absolute;top:0;left:0;right:0;height:60%;
  pointer-events:none;
}
.cloud{
  position:absolute;fill:none;stroke:var(--gold-foil);stroke-width:1.6;
  stroke-linecap:round;opacity:.55;
}
.c1{width:180px;top:9%;right:6%}
.c2{width:105px;top:17%;right:21%;opacity:.38;transform:scaleX(-1)}
.c3{width:125px;top:64%;right:5%;opacity:.48}
@media (max-width:760px){
  .c1{width:100px;top:13%;right:5%}
  .c2{width:64px;top:20%;right:34%;opacity:.35}
  .c3{display:none}
}

.stage{
  position:relative;
  min-height:100svh;
  display:flex;flex-direction:column;
  max-width:1240px;margin:0 auto;
  padding:28px 24px 26px;
}
@media (min-width:760px){.stage{padding:36px 48px 30px}}

.mono{
  font-family:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  text-transform:uppercase;letter-spacing:.16em;
}

/* Top row — tags, not nav */
.toprow{
  display:flex;justify-content:space-between;gap:16px;
  font-size:.72rem;color:var(--bronze-deep);
}

/* The name block — held in the upper-middle of the sky */
.nameblock{padding-top:11svh;max-width:100%}
h1{
  font-family:"Archivo",system-ui,sans-serif;font-weight:800;text-transform:uppercase;
  color:var(--ink);margin:0;line-height:.95;letter-spacing:.005em;
  font-size:clamp(3.3rem,12.5vw,10.25rem);
}
h1 .line2{
  display:block;
  font-size:.30em;font-weight:700;
  letter-spacing:.46em;margin-top:.55em;color:var(--ink);
}
/* The horizon — the one drawn thing */
.horizon{display:block;width:100%;height:14px;margin:52px 0 0;overflow:visible}
.horizon .hl{stroke:var(--gold-foil);stroke-width:1.6;fill:none}
.horizon .tick{stroke:var(--gold-foil);stroke-width:1.6}

/* Below the horizon — the ground, kept emptier than the sky */
.ground{margin-top:44px;display:flex;flex-direction:column;gap:30px}

/* About — native disclosure, no JS */
.about summary{
  list-style:none;cursor:pointer;display:inline-flex;align-items:baseline;gap:10px;
  font-family:"IBM Plex Mono",ui-monospace,Menlo,monospace;text-transform:uppercase;
  letter-spacing:.16em;font-size:.78rem;color:var(--bronze-deep);
  padding:10px 4px;margin:-10px -4px; /* quiet look, honest click target */
}
.about summary::-webkit-details-marker{display:none}
.about summary .plus{color:var(--gold-foil);font-size:.95rem;transition:transform .25s ease}
.about[open ] summary .plus{transform:rotate(45deg)}
.about summary:hover{color:var(--bronze)}
.about p{margin:14px 0 0;max-width:52ch;font-size:1rem;line-height:1.65;color:var(--ink-soft)}

/* Email — the call to action, such as it is */
.inquiries{font-size:.8rem;color:var(--bronze-deep);display:flex;flex-wrap:wrap;gap:10px;align-items:baseline}
.inquiries a{
  color:var(--bronze-deep);text-decoration:none;
  border-bottom:1px solid var(--gold-foil);padding-bottom:2px;
  text-transform:none;letter-spacing:.04em;font-size:.92rem;
}
.inquiries a:hover{color:var(--bronze);border-bottom-color:var(--bronze)}

/* Footer — pinned to the bottom of the stage */
footer{
  margin-top:auto;padding-top:22px;
  display:flex;justify-content:space-between;gap:14px 28px;flex-wrap:wrap;
  font-size:.7rem;color:var(--bronze-deep);
}
footer a{color:var(--bronze-deep);text-decoration:none;border-bottom:1px solid var(--panel-line);padding-bottom:1px}
footer a:hover{color:var(--bronze);border-bottom-color:var(--bronze)}

/* Focus — visible, always */
a:focus-visible,summary:focus-visible{outline:2px solid var(--bronze-deep);outline-offset:3px}

/* The one gesture: horizon draws once, type rises once.
   Pre-states exist ONLY inside this media query — reduced motion and
   no-CSS get the finished page, instantly. */
@media (prefers-reduced-motion: no-preference){
  .horizon .hl{stroke-dasharray:1;stroke-dashoffset:1;animation:draw 2.2s cubic-bezier(.6,0,.2,1) .25s forwards}
  .horizon .tick{opacity:0;animation:fadein .5s ease 2.3s forwards}
  .nameblock{animation:rise .9s cubic-bezier(.2,.6,.2,1) both}
  .cloud path{stroke-dasharray:1;stroke-dashoffset:1;animation:draw 2.6s cubic-bezier(.6,0,.2,1) forwards}
  .c1 path{animation-delay:.9s}
  .c2 path{animation-delay:1.5s}
  .c3 path{animation-delay:2.1s}
  @keyframes draw{to{stroke-dashoffset:0}}
  @keyframes fadein{to{opacity:1}}
  @keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
}

/* 404 */
.lost{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.lost .code{font-size:.8rem;color:var(--bronze-deep)}
.lost .line{
  font-family:"Archivo",system-ui,sans-serif;font-weight:800;text-transform:uppercase;color:var(--ink);
  font-size:clamp(2.2rem,7vw,4.6rem);line-height:1;margin:18px 0 26px;letter-spacing:.01em;
}
.lost a{
  font-family:"IBM Plex Mono",ui-monospace,Menlo,monospace;text-transform:uppercase;letter-spacing:.16em;
  font-size:.78rem;color:var(--bronze-deep);text-decoration:none;border-bottom:1px solid var(--gold-foil);padding-bottom:2px;
}
.lost a:hover{color:var(--bronze);border-bottom-color:var(--bronze)}
