/* =========================================================
   OneCore Solutions — Coming Soon

   Concept: the logo's mark is a segmented ring — an aperture.
   The page is built around that single form: a slow, breathing
   core of concentric orbits, set against the exact navy sampled
   from the logo artwork (#021021) so the asset dissolves into
   the page. Ivory + a thin brass hairline replace the usual
   blue-glow tech palette.
   ========================================================= */

:root {
  /* Surfaces — --ink is sampled pixel-exact from assets/logo.png */
  --ink:        #021021;
  --ink-deep:   #01080f;

  /* Ink on dark: a warm ivory, never pure white (except the mark) */
  --ivory:       #f4efe6;
  --ivory-dim:   rgba(244, 239, 230, .58);
  --ivory-faint: rgba(244, 239, 230, .34);

  /* The single accent: brushed brass, used only in hairlines */
  --brass:      #c9a97a;
  --brass-dim:  rgba(201, 169, 122, .42);

  --hair: rgba(244, 239, 230, .11);

  --pad: clamp(22px, 4.2vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* Content stops widening past this. Without it, an ultrawide display
     pins the copy to the far left and the core to the far right, leaving
     a dead void down the middle. */
  --shell-max: 1600px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ivory);
  background: var(--ink);
  overflow-x: hidden;
}

::selection { background: var(--brass); color: var(--ink); }

/* =========================================================
   Atmosphere
   ========================================================= */

/* Depth: light gathers at the core, falls away at the edges. */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* The cool light that used to live here is now on .core, so it follows the
     figure instead of sitting at a fixed 76% of an arbitrarily wide screen. */
  background:
    radial-gradient(90vw 70vw at 20% 100%, rgba(201, 169, 122, .05), transparent 60%),
    linear-gradient(180deg, var(--ink-deep), var(--ink) 42%, var(--ink-deep));
}

/* Fine film grain — keeps the flat navy from looking digital-flat. */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 3;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 6s steps(6) infinite;
}

/* Hairline frame, with brass corner ticks. */
.frame {
  position: fixed;
  inset: clamp(12px, 1.6vw, 22px);
  z-index: 2;
  pointer-events: none;
  border: 1px solid var(--hair);
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--brass);
  opacity: .55;
}
.frame::before { top: -1px; left: -1px;  border-right: 0; border-bottom: 0; }
.frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* =========================================================
   The core
   ========================================================= */

.core {
  /* Placement and final opacity live in custom properties so the
     entrance keyframes below can read them per breakpoint, instead
     of being redeclared in every media query. */
  --core-t: translate(0, -50%);
  --core-op: 1;

  /* Height is the binding constraint: capping at 70vh guarantees a margin
     above and below on any screen, so the figure never fills the viewport
     vertically. 44vw keeps it from dominating a narrow window, and the px
     ceiling stops it ballooning on a very large display. */
  --core-size: min(70vh, 44vw, 860px);

  position: fixed;
  z-index: 1;
  top: 50%;
  left: 50%;
  /* Anchored to the CONTENT column's right edge, not the viewport's, then
     bled 20% of its own width past it. Both terms scale with the figure,
     so the composition holds from a laptop to an ultrawide. */
  margin-left: calc(
    min(50vw, var(--shell-max) / 2) - var(--pad) - .8 * var(--core-size)
  );
  width: var(--core-size);
  aspect-ratio: 1;
  transform: var(--core-t);
  opacity: var(--core-op);
  pointer-events: none;
}

/* Ambient light, attached to the figure so it travels with it. */
.core::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 50%, rgba(143, 178, 255, .13), transparent 62%);
}
.core__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ring { fill: none; }

.ring--hair       { stroke: rgba(244, 239, 230, .13); stroke-width: 1; }
/* Ticks read as radial engraving: short along the circumference,
   long across it. Dash + gap must divide 100 exactly — 50 ticks. */
.ring--ticks      { stroke: rgba(244, 239, 230, .32); stroke-width: 11; stroke-dasharray: .1 1.9; }
.ring--brass      { stroke: rgba(201, 169, 122, .62); stroke-width: 1.2; stroke-dasharray: 70 30; }
.ring--dotted     { stroke: rgba(244, 239, 230, .42); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: .06 1.94; }
.ring--brass-fine { stroke: rgba(201, 169, 122, .50); stroke-width: 1.2; stroke-dasharray: 8 4.5; }

/* The aperture: heavy arcs broken by one dominant gap, as in the mark. */
.ring--aperture {
  stroke: url(#apertureLight);
  stroke-width: 11;
  stroke-dasharray: 41 6 22 4 23 4;
}

/* The mark is the still point: it does not turn, and it does not glow.
   Matte ivory, a touch below the brightest ring so it sits in the figure
   rather than shining out of it. */
.core__logo {
  fill: var(--ivory);
  opacity: .82;
}

/* Orbit speeds are deliberately mismatched so the figure never repeats.
   fill-box makes each element rotate about the centre of its OWN geometry,
   which for these circles is the shared centre. Do not use view-box with a
   percentage origin here: browsers disagree on whether the viewBox's
   min-x/min-y offset is included, and getting it wrong swings the whole
   figure around a point off-centre. */
.spin-cw,       .spin-cw-slow,
.spin-ccw,      .spin-ccw-slow { transform-box: fill-box; transform-origin: center; }

.spin-cw       { animation: spin 120s linear infinite; }
.spin-cw-slow  { animation: spin 200s linear infinite; }
.spin-ccw      { animation: spin  90s linear infinite reverse; }
.spin-ccw-slow { animation: spin 150s linear infinite reverse; }

/* .core__rings is a plain group — nothing scales. Every element in the
   core rotates about the shared centre and holds its size. */

/* =========================================================
   Shell
   ========================================================= */

.shell {
  position: relative;
  z-index: 4;
  min-height: 100svh;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 40px;
  padding: calc(var(--pad) + 10px) var(--pad);
}

/* ---------- Masthead ---------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.masthead__logo {
  /* Scaled to the type: the wordmark's cap-height lands near the lede's
     line-height, so the logo reads as part of the same system. */
  width: 208px;
  height: auto;
}
.masthead__meta {
  margin: 0;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  white-space: nowrap;
}
.masthead__meta .sep { color: var(--brass); margin: 0 .35em; }

/* ---------- Hero ---------- */
.hero {
  align-self: center;
  max-width: 38rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.eyebrow__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
  animation: blink 2.4s ease-in-out infinite;
}

.headline {
  margin: 0;
  font-weight: 300;
  /* Sized against BOTH axes: vw sets it on a normal window, vh takes over in
     a short one so the whole block still fits without scrolling. Sora is far
     wider than the serif it replaced, hence the smaller ceiling. */
  font-size: clamp(1.9rem, min(6vw, 7.4vh), 4rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}
/* Sora has no italic, so the accent is carried by weight and colour. */
.headline em {
  font-style: normal;
  font-weight: 600;
  color: var(--brass);
}

/* Each line rises out of its own mask. */
.line {
  display: block;
  overflow: hidden;
  /* room for descenders and the italic's overhang */
  padding: 0 .12em .06em 0;
  margin-right: -.12em;
}
.line__in { display: block; }

.lede {
  margin: 30px 0 0;
  max-width: 47ch;          /* Sora runs wide; 40ch broke this into 5 stubs */
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--ivory-dim);
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--hair);   /* the rule closing the composition */
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--ivory-faint);
}

/* The founder credit: one line, name and role split by a brass dot. */
.credit {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}
.credit__name {
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ivory-dim);
}
/* Drawn, not typed. Sora's "·" glyph is a speck barely 8px tall even at
   1.25rem, so the separator is a real circle we can size exactly. */
.credit__dot {
  align-self: center;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
}
/* A clear step below the name — but it was reading as fine print because the
   faint ink was doing the shrinking, not the size. Bigger and brighter. */
.credit__role {
  font-size: .8rem;
  letter-spacing: .02em;
  color: var(--ivory-dim);
}

/* ---------- Contact ---------- */
.contact {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.contact__sep { color: var(--brass); opacity: .7; }

.contact__link {
  color: var(--ivory-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.contact__link:hover { color: var(--ivory); border-color: var(--brass-dim); }

.footer__copy { margin: 0; }

/* =========================================================
   Entrance
   ========================================================= */
.reveal  { animation: fadeUp .95s var(--ease) var(--d, 0s) both; }
.line__in { animation: lineUp 1.15s var(--ease) var(--d, 0s) both; }
.core     { animation: coreIn 2.2s var(--ease) .1s both; }
.frame    { animation: fadeIn 1.4s ease .5s both; }

/* =========================================================
   Keyframes
   ========================================================= */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}

@keyframes lineUp {
  from { transform: translateY(105%); }
  to   { transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes coreIn {
  /* Entrance only, and deliberately no rotation here: turning while scaling
     is exactly the reading that made the figure look off-axis. */
  from { opacity: 0;               transform: var(--core-t) scale(.94); }
  to   { opacity: var(--core-op);  transform: var(--core-t) scale(1); }
}


@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -2%); }
  80%  { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet: pull the core in behind the type and quieten it. */
@media (max-width: 900px) {
  /* Centred behind the copy at this width. */
  .core {
    --core-size: min(140vw, 88vh, 760px);
    --core-op: .55;
    margin-left: calc(var(--core-size) / -2);
  }
  /* At this width the core sits behind the copy, so the centred mark would
     ghost through the paragraph — and the masthead already carries it.
     Keep the orbits, drop the mark. */
  .core__logo { display: none; }
  .hero { max-width: 30rem; }
}

@media (max-width: 560px) {
  .shell { gap: 32px; }
  .masthead__logo { width: 168px; }
  .masthead__meta { display: none; }

  .headline { font-size: clamp(1.9rem, 9.2vw, 2.6rem); }
  .lede { margin-top: 24px; font-size: .9rem; }

  .footer { justify-content: flex-start; gap: 14px 22px; }
  /* Stacked at this width, so the inline separator would dangle. */
  .contact { flex-basis: 100%; flex-direction: column; gap: 10px; }
  .contact__sep { display: none; }
  .credit { text-align: left; }   /* everything reads off one left edge here */
  /* The core sits directly behind the copy at this width — keep it faint. */
  .core { --core-op: .28; }
}

/* Short windows: the headline already scales itself via vh above, so this
   only needs to pull the vertical rhythm in. */
@media (max-height: 780px) {
  .shell { gap: 26px; padding-block: 34px; }
  .lede { margin-top: 20px; }
}
@media (max-height: 620px) {
  .lede { font-size: .88rem; line-height: 1.6; }
}

/* =========================================================
   Reduced motion — hold the composition, drop the movement
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .grain { animation: none; }
}
