/* ---------------------------------------------
   s2dio industries — temporary landing page
   Palette from 2026 brand identity (IS Creative)
   Layout fits a single viewport on desktop.
--------------------------------------------- */

:root {
  --olive-950: #272c23;
  --olive-900: #31372c;
  --olive-800: #3a4134;
  --sage:      #85886f;
  --sage-soft: #a9ac9c;
  --cream:     #f1efe7;
  --line:      rgba(241, 239, 231, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  background: var(--olive-900);
  color: var(--cream);
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
}

/* ------- ambient "movie" background ------- */
/* large pools of sage light drifting very slowly,
   like slow-panning light in a film */

.bg {
  position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none;
  transform: translate(calc(var(--mx, 0) * -22px), calc(var(--my, 0) * -18px));
  transition: transform 1.2s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.bg i {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}

.bg i:nth-child(1) {
  width: 90vmax; height: 90vmax; top: -45vmax; left: -30vmax;
  background: radial-gradient(closest-side, rgba(169, 172, 156, 0.16), transparent 70%);
  animation: drift-a 44s ease-in-out infinite alternate;
}

.bg i:nth-child(2) {
  width: 75vmax; height: 75vmax; bottom: -40vmax; right: -25vmax;
  background: radial-gradient(closest-side, rgba(133, 136, 111, 0.22), transparent 70%);
  animation: drift-b 56s ease-in-out infinite alternate;
}

.bg i:nth-child(3) {
  width: 60vmax; height: 60vmax; top: 10%; right: -20vmax;
  background: radial-gradient(closest-side, rgba(241, 239, 231, 0.05), transparent 70%);
  animation: drift-c 68s ease-in-out infinite alternate;
}

.bg i:nth-child(4) {
  width: 50vmax; height: 50vmax; bottom: -15vmax; left: 5vw;
  background: radial-gradient(closest-side, rgba(39, 44, 35, 0.55), transparent 70%);
  animation: drift-b 80s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(12vw, 6vh, 0) scale(1.12); }
  to   { transform: translate3d(-6vw, 10vh, 0) scale(0.95); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-10vw, -8vh, 0) scale(1.15); }
  to   { transform: translate3d(6vw, -12vh, 0) scale(1); }
}

@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-14vw, 12vh, 0) scale(1.2); }
}

/* ------- generative film canvas ------- */
/* contour lines flowing in slow motion, with a
   slow "camera" drift like a locked-off film shot */

.film {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  animation: camera 80s ease-in-out infinite alternate;
}

@keyframes camera {
  from { transform: scale(1); }
  to   { transform: scale(1.07) translateY(-1.5%); }
}

/* ------- giant ghosted brand mark ------- */

.ghost {
  position: fixed;
  top: 50%;
  right: -6vw;
  height: 80vh;
  width: auto;
  fill: var(--cream);
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
  transform: translateY(-50%) translate(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -12px));
  transition: transform 1s cubic-bezier(0.2, 0.6, 0.3, 1);
}

/* ------- film grain + vignette ------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(120% 120% at 50% 38%, transparent 55%, rgba(24, 28, 20, 0.45) 100%);
}

/* ------- decorative curved lines ------- */

.deco {
  position: fixed;
  width: min(34vw, 380px);
  height: auto;
  stroke: var(--cream);
  stroke-width: 1;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

.deco-top { top: 0; right: 0; animation: sway 16s ease-in-out infinite alternate; }
.deco-bottom { bottom: 0; left: 0; animation: sway 16s ease-in-out infinite alternate-reverse; }

/* cursor parallax: strips drift toward the pointer */
.deco g {
  transform: translate(calc(var(--mx, 0) * 10px), calc(var(--my, 0) * 10px));
  transition: transform 0.8s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.deco-bottom g {
  transform: translate(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -14px));
}

/* strips draw in, hold, flow out the far end — forever */
.deco .line {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  animation: drawloop 8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.deco .line:nth-child(1) { animation-delay: 0.20s; }
.deco .line:nth-child(2) { animation-delay: 0.55s; }
.deco .line:nth-child(3) { animation-delay: 0.90s; }
.deco .line:nth-child(4) { animation-delay: 1.25s; }
.deco .line:nth-child(5) { animation-delay: 1.60s; }

.deco-bottom .line { animation-duration: 9.5s; }

@keyframes drawloop {
  0%   { stroke-dashoffset: 1; }   /* invisible */
  38%  { stroke-dashoffset: 0; }   /* fully drawn */
  62%  { stroke-dashoffset: 0; }   /* hold */
  100% { stroke-dashoffset: -1; }  /* flows out, then loops */
}

@keyframes sway {
  from { transform: translateY(-10px); }
  to   { transform: translateY(12px); }
}

/* ------- layout: single viewport on desktop ------- */

.wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3.5vh, 2.5rem) clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

/* ------- brand lockup ------- */

/* proportions match the official lockup:
   "s2dio" baseline sits at the mark's bottom edge,
   "industries" hangs below the mark */
.brand {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.mark {
  width: clamp(2.5rem, 4.5vh, 3.25rem);
  height: clamp(2.5rem, 4.5vh, 3.25rem);
  fill: var(--sage);
  flex-shrink: 0;
}

.wordmark {
  font-weight: 500;
  font-size: clamp(1.17rem, 2.1vh, 1.52rem);
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--sage);
  margin-top: clamp(1.15rem, 2.05vh, 1.49rem);
}

/* ------- hero ------- */

.hero {
  margin: auto 0;
  padding: clamp(1.5rem, 4vh, 3rem) 0;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage-soft);
  margin-bottom: clamp(0.75rem, 1.8vh, 1.25rem);
}

.hero h1 {
  font-size: clamp(2rem, 5.5vh, 3.8rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: clamp(0.9rem, 2.2vh, 1.5rem);
}

.hero h1 .accent {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 340;
  font-size: 1.04em;
  letter-spacing: 0.005em;
  color: var(--sage-soft);
}

.lede {
  max-width: 36em;
  font-size: clamp(0.92rem, 1.9vh, 1.08rem);
  line-height: 1.65;
  color: rgba(241, 239, 231, 0.82);
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

.soon {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
}

.soon .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-soft);
  margin-right: 0.7rem;
  flex-shrink: 0;
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes breathe {
  50% { opacity: 0.25; }
}

/* ------- contact ------- */

.contact {
  border-top: 1px solid var(--line);
  padding: clamp(1.25rem, 3vh, 2.25rem) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.contact-item .label {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage-soft);
  margin-bottom: 0.5rem;
}

.contact-item a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(241, 239, 231, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-item a:hover {
  color: var(--sage-soft);
  border-color: var(--sage-soft);
}

.contact-item address {
  font-style: normal;
  line-height: 1.55;
  color: rgba(241, 239, 231, 0.82);
  font-size: 0.88rem;
}

/* ------- footer ------- */

footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(0.9rem, 2vh, 1.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(241, 239, 231, 0.55);
}

.foot-links { display: flex; gap: 0.75rem; align-items: center; }

.foot-links a {
  color: rgba(241, 239, 231, 0.75);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.foot-links a:hover { color: var(--cream); }

.foot-links span { color: rgba(241, 239, 231, 0.3); }

/* ------- entrance animations ------- */

.brand,
.hero .eyebrow,
.hero h1,
.hero .lede,
.hero .soon,
.contact,
footer {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.brand           { animation-delay: 0.05s; }
.hero .eyebrow   { animation-delay: 0.20s; }
.hero h1         { animation-delay: 0.32s; }
.hero .lede      { animation-delay: 0.46s; }
.hero .soon      { animation-delay: 0.60s; }
.contact         { animation-delay: 0.75s; }
footer           { animation-delay: 0.90s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ------- reduced motion ------- */

@media (prefers-reduced-motion: reduce) {
  .bg i,
  .deco, .deco .line,
  .brand, .hero .eyebrow, .hero h1, .hero .lede, .hero .soon, .contact, footer {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
  .bg, .deco g { transform: none; transition: none; }
  .ghost { transform: translateY(-50%); transition: none; }
  .soon .dot { animation: none; }
  .film { display: none; }
}

/* ------- short viewports: tighten further ------- */

@media (max-height: 700px) {
  .lede { max-width: 44em; }
  .contact-item address { line-height: 1.4; }
}

/* ------- small screens (phones scroll naturally) ------- */

@media (max-width: 560px) {
  .deco { opacity: 0.09; width: 52vw; }
  .wrap { min-height: 100svh; }
  .hero { padding: 2.5rem 0; }
  .contact-grid { gap: 1.1rem; }
  footer { flex-direction: column; align-items: flex-start; }
}
