/* tangar.io – static site */
@font-face { font-family: "Neue Haas"; src: url(/assets/fonts/NeueHaasGrotDisp-55Roman.otf) format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Neue Haas"; src: url(/assets/fonts/NeueHaasGrotDisp-65Medium.otf) format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Neue Haas"; src: url(/assets/fonts/NeueHaasGrotDisp-75Bold.otf) format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --blue: #0300ab;
  --blue-2: #1840e3;
  --blue-deep: #020066;
  --ink: #0d0d1f;
  --text: #33334a;
  --muted: #6b6b80;
  --line: #e4e4ef;
  --tint: #f4f5fc;
  --white: #fff;
  --radius: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 72px;
  --font: "Neue Haas", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 18px/1.6 var(--font); letter-spacing: .005em; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-2); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
h1, h2, h3 { color: var(--ink); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(780px + 2 * var(--gutter)); }
.eyebrow { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 1rem; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 1.4em; border: 2px solid var(--blue); border-radius: 999px; background: var(--blue); color: #fff; font: 500 1rem var(--font); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--blue); }
.btn-outline-white { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-white:hover { background: #fff; border-color: #fff; color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-white:hover { background: transparent; color: #fff; border-color: #fff; }
.more { font-weight: 500; text-decoration: none; white-space: nowrap; }
.more::after { content: " →"; transition: margin .2s; }
.more:hover::after { margin-left: 4px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: var(--header); }
.logo { color: var(--blue); display: block; }
.logo svg { width: 118px; height: auto; aspect-ratio: 569.6 / 145.21; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--blue); border-bottom-color: currentColor; }
.menu-btn { display: none; width: 48px; height: 48px; margin-right: -12px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; width: 22px; height: 2px; background: var(--ink); transition: transform .25s, top .25s; }
.menu-btn span:first-child { top: 19px; }
.menu-btn span:last-child { top: 27px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

/* home: header floats over the hero until scrolled */
.home .site-header:not(.scrolled):not(.open) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .site-header:not(.scrolled):not(.open) .logo,
.home .site-header:not(.scrolled):not(.open) .nav ul a,
.home .site-header:not(.scrolled):not(.open) .btn { color: #fff; }
.home .site-header:not(.scrolled):not(.open) .btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
.home .site-header:not(.scrolled):not(.open) .menu-btn span { background: #fff; }
.home .site-header { position: fixed; left: 0; right: 0; }

@media (max-width: 900px) {
  :root { --header: 64px; }
  .menu-btn { display: block; z-index: 2; }
  .nav { position: fixed; inset: var(--header) 0 0 0; height: calc(100dvh - var(--header)); flex-direction: column; align-items: stretch; gap: 24px; padding: 24px var(--gutter) 40px; background: #fff; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .open .nav { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul li { border-bottom: 1px solid var(--line); }
  .nav ul a { display: block; padding: 18px 0; font-size: 1.5rem; border: 0; }
  .nav ul a[aria-current] { border: 0; }
  .nav .btn { min-height: 52px; font-size: 1.05rem; }
  .site-header.open { background: #fff; border-bottom-color: var(--line); }
  body.menu-open { overflow: hidden; }
}

/* hero */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--blue-deep) url(/assets/img/hero-poster.jpg) center / cover; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2, 0, 102, .55) 0%, rgba(2, 0, 102, .25) 35%, rgba(3, 0, 171, .82) 100%); }
.hero-inner { padding-top: calc(var(--header) + 60px); padding-bottom: clamp(72px, 12vh, 140px); }
.hero h1 { color: #fff; max-width: 11em; font-weight: 500; text-wrap: pretty; }
.hero .eyebrow { color: rgba(255, 255, 255, .8); }
.hero .lead { color: rgba(255, 255, 255, .88); max-width: 34em; margin-bottom: 2rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; width: 44px; height: 44px; margin-left: -22px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 50%; }
.scroll-cue span { position: absolute; left: 50%; top: 12px; width: 10px; height: 10px; margin-left: -5px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); animation: cue 2s infinite; }
@keyframes cue { 50% { transform: translateY(5px) rotate(45deg); } }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; font-weight: 500; font-size: 1.15rem; line-height: 1.1; border: 1px solid rgba(255, 255, 255, .25); transition: transform .2s, background .2s; }
.store:hover { color: #fff; background: #1a1a1a; transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-size: .7rem; font-weight: 400; opacity: .8; letter-spacing: .02em; }

/* sections */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section.tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split + .split { margin-top: clamp(64px, 10vw, 128px); }
.split.reverse .split-media { order: 2; }
.split-media .round { border-radius: 50%; width: min(460px, 100%); margin: 0 auto; box-shadow: 0 30px 80px -30px rgba(3, 0, 171, .45); }
.split-media.phone img { width: min(340px, 78%); margin: 0 auto; border-radius: 28px; box-shadow: 0 40px 80px -40px rgba(13, 13, 31, .45); }
.steps { list-style: none; counter-reset: s; margin: 2rem 0 0; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--blue); font-weight: 500; display: grid; place-items: center; }
.steps strong { color: var(--ink); font-weight: 500; }
.steps span { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.reverse .split-media { order: 0; }
}

.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.products li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; }
.products li::before { content: ""; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 24px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.products li:nth-child(2)::before { background: linear-gradient(135deg, var(--blue-2), #5b7cff); }
.products li:nth-child(3)::before { background: linear-gradient(135deg, #5b7cff, #a9b8ff); }
.products p { color: var(--muted); font-size: 1rem; flex: 1; }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }

.band { background: var(--blue); color: #fff; padding: clamp(48px, 7vw, 80px) 0; background-image: radial-gradient(circle at 85% -20%, rgba(91, 124, 255, .55), transparent 55%); }
.band-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.band h2 { color: #fff; margin: 0; }
.band-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.band-mail { color: #fff; font-size: 1.2rem; font-weight: 500; }
.band-mail:hover { color: #fff; }
@media (max-width: 860px) { .band-inner { grid-template-columns: 1fr; } }

.industries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.industries a { position: relative; display: block; aspect-ratio: 3 / 4.4; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--blue-deep); }
.industries img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.industries a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(2, 0, 102, .85)); }
.industries span { position: absolute; z-index: 1; left: 20px; bottom: 18px; font-size: 1.25rem; font-weight: 500; }
.industries span::after { content: " →"; opacity: 0; transition: opacity .2s; }
.industries a:hover img { transform: scale(1.05); }
.industries a:hover span::after { opacity: 1; }
@media (max-width: 1000px) { .industries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .industries { grid-template-columns: repeat(2, 1fr); gap: 12px; } .industries li:last-child { grid-column: span 2; } .industries li:last-child a { aspect-ratio: 16 / 9; } }

.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.join { background: var(--blue); color: rgba(255, 255, 255, .9); border-radius: 28px; padding: clamp(28px, 4vw, 48px); background-image: radial-gradient(circle at 100% 0, rgba(91, 124, 255, .6), transparent 60%); }
.join h3 { color: #fff; font-size: 1.8rem; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); background: #fff; transition: transform .2s, box-shadow .2s; }
.card a:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(13, 13, 31, .35); }
.card figure { margin: 0; aspect-ratio: 16 / 9; background: var(--tint); overflow: hidden; }
.card figure img { width: 100%; height: 100%; object-fit: cover; }
.card-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.card-ph::after { content: ""; display: block; width: 100%; height: 100%; background: url(/wp-content/themes/tangar/img/tangar-logo-white.svg) center / 38% no-repeat; }
.card div { padding: 20px 22px 24px; }
.card time { font-size: .85rem; color: var(--muted); }
.card h3 { font-size: 1.2rem; margin: .3em 0 .5em; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }

.investors { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.logos li { background: #fff; border-radius: var(--radius); padding: 24px 16px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; text-align: center; font-size: .85rem; color: var(--muted); min-height: 170px; }
.logos img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; margin: auto; }
@media (max-width: 860px) { .investors { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .logos { grid-template-columns: 1fr 1fr; } }

.download { background: linear-gradient(135deg, var(--blue-deep), var(--blue) 60%, var(--blue-2)); color: rgba(255, 255, 255, .85); }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.download h2 { color: #fff; }

/* inner pages */
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); background: linear-gradient(180deg, var(--tint), #fff); }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.page-head time { color: var(--muted); }
.back { display: inline-block; margin-bottom: 1.2rem; font-weight: 500; text-decoration: none; font-size: .95rem; }
.back::before { content: "← "; }
.prose { padding-bottom: clamp(64px, 9vw, 112px); }
.prose > * { max-width: 100%; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; }
.prose h3 { margin-top: 1.8em; }
.prose img { border-radius: 14px; margin: 1.5rem 0; }
.prose a img { display: inline-block; margin: .5rem 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--blue-2); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose p:has(> img) { text-align: center; }
.prose p:has(> img) img { margin-inline: auto; max-height: 80vh; width: auto; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2rem; }
.toc a { padding: 10px 18px; border-radius: 999px; background: var(--tint); text-decoration: none; font-weight: 500; }
section.more-news { padding: 0 0 clamp(64px, 9vw, 112px); }
section.more-news h2 { font-size: 1.6rem; margin-bottom: 24px; }

/* youtube (loads the player only on click) */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin: 1.5rem 0; box-shadow: 0 30px 60px -30px rgba(13, 13, 31, .5); }
.split-media .yt { margin: 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; opacity: .85; }
.yt button { position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; }
.yt button span { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--blue); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s, background .2s; }
.yt button span::after { content: ""; position: absolute; left: 31px; top: 25px; border: solid transparent; border-width: 13px 0 13px 21px; border-left-color: #fff; }
.yt button:hover span { transform: scale(1.08); background: var(--blue-2); }
.yt-title { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 20px 16px; color: #fff; font-size: .95rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); pointer-events: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; padding-bottom: clamp(64px, 9vw, 112px); max-width: calc(1000px + 2 * var(--gutter)); }
.contact-main { padding-top: 1rem; }
.contact-mail { display: inline-block; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 500; color: var(--blue); margin-bottom: .6rem; }
.contact-info { background: var(--tint); border-radius: var(--radius); padding: 28px; align-self: start; }
.contact-info h2 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.contact-info h2:first-child { margin-top: 0; }
.contact-info address { font-style: normal; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; gap: 0; } }

/* footer */
.site-footer { background: var(--blue-deep); color: rgba(255, 255, 255, .75); font-size: .95rem; padding-top: clamp(56px, 8vw, 88px); }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.foot .logo { color: #fff; margin-bottom: 20px; }
.foot address { font-style: normal; margin-bottom: 20px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.social a:hover { background: rgba(255, 255, 255, .2); }
.social svg { width: 20px; height: 20px; fill: #fff; }
.foot-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-links h2 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.foot-links ul { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: .55em; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .85rem; }
.foot-base p { margin: 0; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr; } .foot-links { grid-template-columns: repeat(2, 1fr); } }

/* scroll reveal (only when JS runs and motion is ok) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; }
}
