/* ==========================================================================
   Align Works — Coming soon (root index.html)
   Option 2 language: warm dark gradient, blueprint grid, Geist + italic
   Instrument Serif accents, champagne-gold details, film grain.
   ========================================================================== */

:root {
  --bg: #0d0b0a;
  --text: #f3eee8;
  --text-2: #d8cfc5;
  --muted: #9a9087;
  --line: rgba(255, 255, 255, .08);
  --gold-1: #f4dfc2;
  --gold-2: #d9b07c;
  --gold-3: #a8784a;
  --gold-grad: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 48%, var(--gold-3) 100%);
  --hair: linear-gradient(150deg, rgba(240, 210, 170, .4), rgba(255, 255, 255, .05) 38%, rgba(255, 255, 255, .03) 62%, rgba(240, 210, 170, .2));
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  position: relative; min-height: 100vh; min-height: 100svh; overflow-x: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(60% 70% at 0% 0%, rgba(160, 92, 54, .30), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(122, 66, 36, .34), transparent 70%),
    linear-gradient(165deg, #1a120d 0%, #110d0b 50%, var(--bg) 100%);
  background-color: var(--bg);
  color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--gold-2); color: #140d08; }

/* Film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Background: blueprint grid + drifting glow ───────────────────────── */
.cs-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cs-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(75% 65% at 40% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(75% 65% at 40% 40%, #000 0%, transparent 75%);
}
.cs-glow {
  position: absolute; width: 70vmax; height: 70vmax; left: -20vmax; top: -30vmax;
  background: radial-gradient(circle, rgba(176, 106, 62, .38), transparent 62%);
  animation: cs-drift 22s ease-in-out infinite alternate;
}
@keyframes cs-drift { to { transform: translate3d(18vmax, 14vmax, 0); } }

/* ── Header ───────────────────────────────────────────────────────────── */
.cs-top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem) var(--gutter);
}
.cs-logo .logo { height: clamp(46px, 5vw, 58px); width: auto; }
.cs-pill-link {
  display: inline-flex; align-items: center; gap: .55rem; height: 2.6rem; padding: 0 1.1rem; border-radius: 999px;
  font-size: .875rem; color: var(--text-2);
  border: 1px solid transparent;
  background: linear-gradient(rgba(20, 15, 12, .6), rgba(20, 15, 12, .6)) padding-box, var(--hair) border-box;
  transition: color .3s, background .3s;
}
.cs-pill-link:hover { color: var(--text); background: linear-gradient(rgba(36, 27, 21, .8), rgba(36, 27, 21, .8)) padding-box, var(--gold-grad) border-box; }

/* ── Main ─────────────────────────────────────────────────────────────── */
.cs-main {
  width: 100%; max-width: 1320px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
}
.cs-status {
  display: inline-flex; align-items: center; gap: .65rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding: .45rem .95rem .45rem .8rem; border-radius: 999px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
  border: 1px solid transparent;
  background: linear-gradient(rgba(20, 15, 12, .7), rgba(20, 15, 12, .7)) padding-box, var(--hair) border-box;
}
.cs-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); }
.cs-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gold-2);
  animation: cs-ping 2.4s var(--ease) infinite;
}
@keyframes cs-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

.cs-title {
  font-weight: 500; font-size: clamp(2.75rem, 6.6vw, 6rem); line-height: .98; letter-spacing: -0.05em;
  max-width: 11ch; text-wrap: balance;
}
.cs-title em {
  font-style: normal; font-weight: 500;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em;
}
.cs-lead { max-width: 34rem; margin-top: clamp(1.25rem, 2.5vw, 1.75rem); font-size: clamp(1rem, 1.3vw, 1.125rem); color: var(--text-2); }

.cs-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(2rem, 3.5vw, 2.75rem); }
.cs-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; height: 3.4rem; padding: 0 1.6rem;
  border-radius: 999px; font-weight: 500; font-size: .95rem; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s;
}
.cs-btn svg { transition: transform .35s var(--ease); }
.cs-btn--gold {
  color: #1a110a; background: var(--gold-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 12px 34px -14px rgba(217, 176, 124, .65);
}
.cs-btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.cs-btn--gold:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 18px 44px -14px rgba(217, 176, 124, .8); }
.cs-btn--gold:hover::after { transform: translateX(120%); }
.cs-btn--gold:hover svg { transform: translateX(3px); }
.cs-btn--ghost {
  color: var(--text); border: 1px solid transparent;
  background: linear-gradient(rgba(20, 15, 12, .55), rgba(20, 15, 12, .55)) padding-box, var(--hair) border-box;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cs-btn--ghost:hover { background: linear-gradient(rgba(40, 30, 24, .75), rgba(40, 30, 24, .75)) padding-box, var(--gold-grad) border-box; }

/* ── Visual: slow cross-fading project photos ─────────────────────────── */
.cs-visual { justify-self: end; width: 100%; max-width: 480px; }
.cs-frame {
  position: relative; aspect-ratio: 4 / 5; max-height: 64vh; width: 100%; overflow: hidden; border-radius: 18px;
  border: 1px solid transparent; background: var(--hair) border-box;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(217, 176, 124, .25);
}
.cs-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 17px;
  opacity: 0; filter: saturate(.9) contrast(1.04);
  animation: cs-slide 18s infinite;
}
.cs-frame img:nth-child(2) { animation-delay: 6s; }
.cs-frame img:nth-child(3) { animation-delay: 12s; }
.cs-frame img:first-child { opacity: 1; }
@keyframes cs-slide {
  0% { opacity: 0; transform: scale(1.08); }
  6%, 33% { opacity: 1; }
  40%, 100% { opacity: 0; transform: scale(1); }
}
.cs-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 7, 5, .55));
}
.cs-visual figcaption {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.cs-visual figcaption span:first-child { color: var(--gold-2); }

/* ── Footer ───────────────────────────────────────────────────────────── */
.cs-foot {
  position: relative; z-index: 1;
  width: 100%; max-width: 1320px; margin: 0 auto; padding: 1.75rem var(--gutter) clamp(1.5rem, 3vw, 2.25rem);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap;
}
.cs-foot::before {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(240, 210, 170, .25), rgba(255, 255, 255, .06) 60%, transparent);
}
.cs-contact { display: flex; flex-wrap: wrap; gap: 1.25rem clamp(2rem, 5vw, 4rem); }
.cs-contact dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: .3rem; }
.cs-contact dd { color: var(--text); }
.cs-contact a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.cs-contact a:hover { color: var(--gold-1); background-size: 100% 1px; }
.cs-legal { font-size: .8125rem; color: var(--muted); }
.cs-legal a { color: var(--gold-2); font-weight: 600; }
.cs-legal a:hover { color: var(--text); }

/* ── Giant faded wordmark behind the footer ───────────────────────────── */
.cs-wordmark {
  --w: min(88vw, 1180px);
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none; user-select: none;
  display: flex; justify-content: center; align-items: flex-start; overflow: hidden;
  height: calc(var(--w) * .62);
}
.cs-wordmark__svg {
  width: var(--w); height: auto; flex: none; opacity: .09;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 50%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 50%, transparent 82%);
}

/* ── Entrance ─────────────────────────────────────────────────────────── */
.cs-in { animation: cs-rise 1.1s var(--ease) both; }
.cs-top.cs-in { animation-delay: .05s; }
.cs-status.cs-in { animation-delay: .15s; }
.cs-title.cs-in { animation-delay: .25s; }
.cs-lead.cs-in { animation-delay: .38s; }
.cs-actions.cs-in { animation-delay: .5s; }
.cs-visual.cs-in { animation-delay: .35s; }
.cs-foot.cs-in { animation-delay: .65s; }
@keyframes cs-rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .cs-main { grid-template-columns: 1fr; padding-top: .5rem; }
  .cs-visual { justify-self: start; max-width: 560px; }
  .cs-frame { aspect-ratio: 4 / 3; max-height: none; }
}
@media (max-width: 600px) {
  .cs-pill-link span { display: none; }
  .cs-pill-link { width: 2.6rem; padding: 0; justify-content: center; }
  .cs-actions .cs-btn { flex: 1 1 100%; }
  .cs-contact { display: grid; grid-template-columns: 1fr; gap: 1rem; }
  .cs-foot { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-in, .cs-glow, .cs-dot::after { animation: none; }
  .cs-frame img { animation: none; }
}
