/* Hu Technologies: shared styles for the landing page and policy pages */
:root {
  --bg: #0c0c0d;
  --bg-2: #131315;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --ink: #f2f1ee;
  --ink-2: #b4b2ad;
  --ink-3: #75736e;
  --dim: #3a3937;
  --accent: #ff6a2b;
  --accent-2: #ffb08a;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--accent); color: #0c0c0d; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 999px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: max(18px, env(safe-area-inset-top, 0px)); padding-bottom: 18px;
  mix-blend-mode: difference;
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; font-size: 17px; color: #fff; }
.brand svg { width: 28px; height: 28px; }
.bar-right { display: flex; gap: 8px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 18px; border-radius: 999px;
  font: 500 13px/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid #fff; background: transparent; color: #fff;
  transition: background .25s, color .25s;
}
.pill.solid { background: #fff; color: #000; }
.pill:hover { background: #fff; color: #000; }
.pill.solid:hover { background: transparent; color: #fff; }
.pill .burger { width: 14px; height: 8px; position: relative; }
.pill .burger::before, .pill .burger::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s; }
.pill .burger::before { top: 0; } .pill .burger::after { bottom: 0; }
body.menu-open .pill .burger::before { transform: translateY(3.25px) rotate(45deg); }
body.menu-open .pill .burger::after { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg-2);
  clip-path: circle(0% at calc(100% - 60px) 40px);
  transition: clip-path .7s cubic-bezier(.7,0,.2,1);
  display: grid; align-content: center;
  padding-top: 80px; padding-bottom: 40px;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - 60px) 40px); }
.menu nav { display: grid; gap: 4px; }
.menu nav a {
  font-size: clamp(40px, 8vw, 96px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02;
  text-decoration: none; color: var(--ink-3); transition: color .25s, transform .4s;
  display: inline-flex; align-items: baseline; gap: 18px;
}
.menu nav a span { font: 400 13px/1 var(--mono); color: var(--ink-3); }
.menu nav a:hover { color: var(--ink); transform: translateX(10px); }
.menu .menu-foot { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px 40px; color: var(--ink-2); font-size: 15px; }
.menu .menu-foot a { text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding-bottom: 7vh; overflow: hidden; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-glow { position: absolute; width: 60vmax; height: 60vmax; right: -18vmax; top: 10vh; background: radial-gradient(closest-side, rgba(255,106,43,.16), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; width: 100%; pointer-events: none; }
.hero .wrap > * { pointer-events: auto; }
.hero h1 {
  margin: 0; font-weight: 600; letter-spacing: -0.055em; line-height: .92;
  font-size: clamp(54px, 11.2vw, 188px); max-width: 11ch;
}
.hero h1 .scramble { color: var(--accent); display: inline-block; min-width: 5ch; }
.hero-row { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 20px 56px; align-items: end; justify-content: space-between; }
.cta-lines { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.line-link {
  display: inline-flex; align-items: center; gap: 28px; min-width: 240px; justify-content: space-between;
  padding-bottom: 10px; border-bottom: 1px solid var(--line-2); text-decoration: none;
  font: 500 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; position: relative;
}
.line-link::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.7,0,.2,1); }
.line-link:hover::after { transform: scaleX(1); }
.line-link .arr { transition: transform .3s; }
.line-link:hover .arr { transform: translateX(6px); }
.hero-card { border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; max-width: 360px; background: rgba(12,12,13,.5); backdrop-filter: blur(6px); }
.hero-card .glyph { grid-row: span 2; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; }
.hero-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: var(--ink-3); text-align: center; pointer-events: none; }

/* ---------- statement (scroll-lit words) ---------- */
.statement { padding: 18vh 0 14vh; }
.statement .label { color: var(--ink-3); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.statement .label::before { content: ""; width: 34px; height: 1px; background: var(--ink-3); }
.statement p {
  margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.08;
  font-size: clamp(32px, 5.4vw, 84px); max-width: 20ch;
}
.statement .w { color: var(--dim); transition: color .35s; }
.statement .w.on { color: var(--ink); }
.statement .w.hot { color: var(--accent); }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 2.4vw 0; }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font-size: clamp(56px, 11vw, 176px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; padding-right: .35em; white-space: nowrap; display: inline-flex; align-items: center; gap: .35em; }
.marquee span.out { color: transparent; -webkit-text-stroke: 1px var(--ink-3); }
.marquee span i { font-style: normal; font-weight: 300; color: var(--accent); font-size: .5em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.block { padding: 16vh 0 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 48px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { margin: 0; font-size: clamp(36px, 5vw, 72px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.sec-head p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.kicker { color: var(--accent); margin-bottom: 18px; display: block; }

/* product */
.product {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--bg-2);
  transform-style: preserve-3d; transition: border-color .3s;
}
.product:hover { border-color: var(--line-2); }
.product-copy { padding: clamp(28px, 4vw, 56px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.product-copy h3 { margin: 0; font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.04em; line-height: 1; font-weight: 600; }
.product-copy > p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.prices { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 6px; }
.prices div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.prices b { font-weight: 600; font-variant-numeric: tabular-nums; }
.prices small { color: var(--ink-3); font-size: 13px; display: block; }
.product-visual { position: relative; min-height: 380px; background: radial-gradient(120% 90% at 80% 10%, rgba(255,106,43,.22), transparent 55%), #0f0f10; border-left: 1px solid var(--line); overflow: hidden; }
.mock { position: absolute; left: 10%; right: -8%; top: 14%; bottom: -10%; border-radius: 16px; border: 1px solid var(--line-2); background: #f6f6f4; color: #111; padding: 22px 24px; box-shadow: 0 40px 80px rgba(0,0,0,.5); transform: rotate(-4deg); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.product:hover .mock { transform: rotate(-2deg) translateY(-8px); }
.mock .m-top { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; }
.mock .m-top i { width: 22px; height: 22px; border-radius: 6px; background: #111; display: grid; place-items: center; }
.mock .m-verdict { margin-top: 18px; border: 1px solid #cfe9df; background: #eef8f4; border-radius: 12px; padding: 14px 16px; }
.mock .m-verdict b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.mock .m-verdict span { font-size: 13px; color: #4b5563; }
.mock .m-rows { margin-top: 14px; display: grid; gap: 8px; }
.mock .m-rows div { height: 12px; border-radius: 6px; background: #e4e4e1; }
.mock .m-rows div:nth-child(2) { width: 82%; } .mock .m-rows div:nth-child(3) { width: 64%; }
.mock .m-tiles { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock .m-tiles div { border: 1px solid #e4e4e1; border-radius: 10px; padding: 10px; font-size: 11px; color: #6b7280; }
.mock .m-tiles b { display: block; color: #111; font-size: 16px; }

/* services */
.services { border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr); gap: 16px 32px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; position: relative; }
.svc .n { color: var(--ink-3); }
.svc h3 { margin: 0; font-size: clamp(24px, 3vw, 40px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; transition: color .3s, transform .4s cubic-bezier(.2,.7,.2,1); }
.svc p { margin: 0; color: var(--ink-2); font-size: 16px; }
.svc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(255,106,43,.08), transparent 70%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.svc:hover::before { opacity: 1; }
.svc:hover h3 { color: var(--accent); transform: translateX(8px); }

/* approach */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: 18px; padding: 28px; min-height: 240px; display: grid; align-content: space-between; gap: 28px; background: linear-gradient(180deg, var(--bg-2), transparent); }
.step .mono { color: var(--accent); }
.step h3 { margin: 0 0 8px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* contact */
.contact { padding: 18vh 0 10vh; }
.contact h2 { margin: 0; font-size: clamp(52px, 10vw, 168px); font-weight: 600; letter-spacing: -0.055em; line-height: .92; }
.contact h2 a { text-decoration: none; display: inline-block; }
.contact h2 .ul { background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 3px no-repeat; transition: background-size .6s cubic-bezier(.7,0,.2,1); }
.contact h2 a:hover .ul { background-size: 100% 3px; }
.contact-grid { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; border-top: 1px solid var(--line); padding-top: 28px; }
.contact-grid .mono { color: var(--ink-3); margin-bottom: 10px; display: block; }
.contact-grid p, .contact-grid address { margin: 0; font-style: normal; color: var(--ink); font-size: 17px; line-height: 1.5; }
.contact-grid a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.contact-grid a:hover { border-color: var(--accent); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 max(28px, env(safe-area-inset-bottom, 0px)); color: var(--ink-3); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* custom cursor (fine pointers only) */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 100; border-radius: 50%; mix-blend-mode: difference; display: none; }
.cursor { width: 36px; height: 36px; border: 1px solid #fff; margin: -18px 0 0 -18px; transition: width .25s, height .25s, margin .25s, background .25s; }
.cursor.big { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: #fff; }
.cursor-dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: #fff; }
@media (pointer: fine) { .cursor, .cursor-dot { display: block; } }

/* intro loader */
.loader { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: grid; place-items: end start; padding: 0 var(--gutter-r) 6vh var(--gutter); transition: transform 1s cubic-bezier(.7,0,.2,1); }
.loader b { font-size: clamp(80px, 18vw, 260px); font-weight: 600; letter-spacing: -0.06em; line-height: .8; font-variant-numeric: tabular-nums; }
.loader.done { transform: translateY(-100%); }

/* ---------- policy pages ---------- */
.doc { padding: 140px 0 100px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.045em; line-height: 1; margin: 0 0 12px; font-weight: 600; }
.doc .meta { color: var(--ink-3); margin-bottom: 44px; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 10px; font-weight: 600; }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--accent-2); }
.doc .card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; background: var(--bg-2); }
.doc .card p { margin: 4px 0; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .sec-head, .product, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .product-visual { min-height: 300px; border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: 44px minmax(0, 1fr); }
  .svc p { grid-column: 2; }
}
@media (max-width: 560px) {
  .bar .pill.solid { display: none; }
  .line-link { min-width: 0; width: 100%; }
  .cta-lines { width: 100%; }
  .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .statement .w { color: var(--ink); }
}

/* ---------- company tiles (expand to a profile) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); overflow: hidden; transition: border-color .3s; min-width: 0; }
.tile:hover { border-color: var(--line-2); }
.tile.open { grid-column: 1 / -1; }
.tile-head { width: 100%; display: flex; align-items: center; gap: 18px; padding: 24px 26px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tile-logo { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; background: #0f0f10; }
.tile-head h3 { margin: 0; font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.tile-head .sub { color: var(--ink-3); margin-top: 6px; display: block; }
.tile-head .plus { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; flex: none; transition: transform .45s cubic-bezier(.7,0,.2,1), background .25s; }
.tile-head .plus::before, .tile-head .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.tile-head .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.tile.open .tile-head .plus { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.tile-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.7,0,.2,1); }
.tile.open .tile-body { grid-template-rows: 1fr; }
.tile-body > div { overflow: hidden; min-height: 0; }
.tile .product { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.tile.soon { border-style: dashed; }
.tile.soon .tile-head { cursor: default; }
.tile.soon .tile-head h3 { color: var(--ink-3); }
