@font-face {
    font-family: "Caveat Brush";
    src: url("../fonts/CaveatBrush-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --orange: #ed7d31;
    --orange-deep: #d95f13;
    --orange-pale: #f8d7c4;
    --ink: #242423;
    --ink-soft: #464643;
    --muted: #74736f;
    --paper: #f7f5f0;
    --white: #fff;
    --line: rgba(36, 36, 35, .14);
    --container: min(1160px, calc(100vw - 48px));
    --shadow: 0 18px 55px rgba(36, 36, 35, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.62;
    text-rendering: optimizeLegibility;
}
body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    pointer-events: none;
    background: radial-gradient(circle at 92% 0, rgba(237, 125, 49, .11), transparent 56rem);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-deep); }
:focus-visible { outline: 3px solid rgba(237, 125, 49, .65); outline-offset: 4px; }
.skip-link { position: fixed; top: 10px; left: 14px; z-index: 100; padding: 9px 13px; transform: translateY(-150%); background: var(--ink); color: var(--white); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.header-inner, .container, .footer-inner, .footer-bottom { width: var(--container); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid transparent; background: rgba(247, 245, 240, .9); backdrop-filter: blur(16px); transition: border-color .2s ease, background .2s ease; }
.site-header[data-scrolled] { border-color: var(--line); background: rgba(255, 255, 255, .94); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: 0 0 auto; margin-block: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.brand img { width: clamp(124px, 12vw, 156px); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a, .language-switch a, .language-switch span { display: inline-flex; align-items: center; min-height: 38px; padding: 7px 10px; color: var(--ink-soft); font-size: .89rem; font-weight: 700; }
.primary-nav a { position: relative; }
.primary-nav a::after { position: absolute; right: 10px; bottom: 2px; left: 10px; height: 2px; content: ""; transform: scaleX(0); transform-origin: right; background: var(--orange); transition: transform .2s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.primary-nav a:last-child { margin-left: 5px; border: 1px solid var(--ink); border-radius: 999px; padding-inline: 15px; }
.primary-nav a:last-child::after { display: none; }
.primary-nav a:last-child:hover { background: var(--ink); color: var(--white); }
.language-switch { display: flex; padding-left: 12px; border-left: 1px solid var(--line); }
.language-switch a, .language-switch span { min-height: 32px; padding: 4px 7px; font-size: .78rem; }
.language-switch span { color: var(--orange-deep); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); }
.menu-toggle__bar { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

main { overflow: hidden; }
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-tight { padding: clamp(38px, 5vw, 66px) 0; }
.narrow { max-width: 880px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { max-width: 900px; margin-bottom: 22px; font-size: clamp(2.85rem, 5.8vw, 5.4rem); font-weight: 820; line-height: .98; letter-spacing: -.055em; }
h2 { margin-bottom: 17px; font-size: clamp(2rem, 3.7vw, 3.45rem); line-height: 1.06; letter-spacing: -.04em; }
h3 { margin-bottom: 9px; font-size: clamp(1.14rem, 1.5vw, 1.35rem); line-height: 1.2; letter-spacing: -.018em; }
p { overflow-wrap: anywhere; }
.lead { max-width: 740px; color: var(--ink-soft); font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.58; }
.eyebrow { display: inline-flex; align-items: center; gap: 11px; margin: 0 0 17px; color: var(--orange-deep); font-family: "Caveat Brush", cursive; font-size: 1.5rem; font-weight: 500; line-height: 1; }
.eyebrow::before { width: 38px; height: 24px; content: ""; flex: 0 0 auto; background: url("../img/phifux_logo_symbol_1000x623.png") center / contain no-repeat; }

.hero { position: relative; padding: clamp(44px, 7vw, 88px) 0 clamp(58px, 9vw, 112px); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .72fr); gap: clamp(36px, 7vw, 96px); align-items: center; min-height: min(700px, calc(100vh - 78px)); }
.hero-copy { position: relative; z-index: 2; max-width: 790px; }
.hero-copy h1 em { color: var(--orange-deep); font-family: "Caveat Brush", cursive; font-size: 1.1em; font-style: normal; font-weight: 400; letter-spacing: -.025em; }
.hero-copy .lead { max-width: 650px; }
.hero-claim { margin: -7px 0 20px; color: var(--orange-deep); font-family: "Caveat Brush", cursive; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1; }
.hero-actions, .choice-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 12px 18px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button::after { width: 8px; height: 8px; margin-left: 11px; content: ""; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--white); }
.button-primary:hover { background: var(--orange-deep); color: var(--white); }
.button-secondary, .button-ghost { border-color: var(--line); background: rgba(255,255,255,.72); }

.fox-stage { position: relative; min-height: 510px; isolation: isolate; }
.fox-stage::before { position: absolute; top: 15px; right: -35px; width: 440px; height: 275px; content: ""; background: url("../img/phifux_logo_symbol_1000x623.png") center / contain no-repeat; opacity: .95; }
.orbit-card { position: absolute; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; width: 190px; min-height: 154px; padding: 21px; border: 1px solid var(--line); background: rgba(255,255,255,.93); box-shadow: var(--shadow); }
.orbit-card span { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .14em; }
.orbit-card strong { font-size: 1.25rem; line-height: 1.05; }
.orbit-card--main { top: 122px; left: 0; width: 228px; min-height: 226px; background: var(--ink); color: var(--white); }
.orbit-card--main strong { font-size: 1.8rem; }
.orbit-card--api { top: 48px; right: -2px; }
.orbit-card--live { right: 31px; bottom: 42px; }
.stage-dot { position: absolute; z-index: 3; width: 17px; height: 17px; border-radius: 50%; background: var(--orange); }
.stage-dot--one { left: 36%; bottom: 58px; }
.stage-dot--two { top: 38px; left: 17%; width: 8px; height: 8px; background: var(--ink); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 510px; margin: 0; }
.hero-art::before { position: absolute; width: 88%; aspect-ratio: 1; content: ""; border-radius: 50%; background: radial-gradient(circle, rgba(237,125,49,.11), transparent 66%); }
.hero-art img { position: relative; z-index: 1; width: min(100%, 560px); filter: drop-shadow(0 22px 24px rgba(36,36,35,.11)); }
.audience-strip { border-block: 1px solid var(--line); }
.audience-list { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 86px; color: var(--ink-soft); font-weight: 730; }
.audience-list span:first-child { color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.audience-list i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

.intro-grid, .two-column { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 82px); align-items: start; }
.intro-grid > :nth-child(2) { padding-top: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.info-card { position: relative; grid-column: span 4; min-height: 250px; padding: clamp(22px, 3vw, 33px); border: 1px solid var(--line); border-top: 4px solid var(--orange); background: rgba(255,255,255,.7); transition: transform .2s ease, background .2s ease; }
.info-card:nth-child(1), .info-card:nth-child(2) { grid-column: span 6; }
.info-card:nth-child(2), .info-card:nth-child(5) { transform: none; }
.info-card:hover { z-index: 2; transform: translateY(-4px); background: var(--white); }
.card-index, .meta-label { display: block; margin-bottom: 28px; color: var(--orange-deep); font-size: .72rem; font-weight: 850; letter-spacing: .1em; }
.info-card h3 { font-family: "Caveat Brush", cursive; font-size: clamp(1.7rem, 2.6vw, 2.25rem); font-weight: 400; line-height: 1; }
.info-card p { margin-bottom: 0; color: var(--ink-soft); }

.band { position: relative; background: var(--ink); color: var(--white); }
.band::before { position: absolute; top: -55px; right: -80px; width: 480px; height: 300px; content: ""; background: url("../img/phifux_logo_symbol_1000x623_white.png") center / contain no-repeat; opacity: .12; }
.band .container { position: relative; z-index: 1; }
.band h2 { color: var(--white); }
.band .eyebrow { color: var(--orange-pale); }
.band .lead, .band p { color: rgba(255,255,255,.76); }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px 22px; margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 22px; }
.check-list li::before { position: absolute; top: .67em; left: 0; width: 8px; height: 8px; content: ""; border-radius: 50% 50% 50% 0; background: var(--orange); transform: rotate(-25deg); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.product-card, .contact-card, .notice { position: relative; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); background: rgba(255,255,255,.72); }
.product-card:nth-child(2n) { transform: none; }
.product-card h2, .product-card h3 { color: var(--orange-deep); font-family: "Caveat Brush", cursive; font-size: clamp(1.8rem, 2.7vw, 2.45rem); font-weight: 400; line-height: 1; }
.product-card p:last-child { margin-bottom: 0; }
.product-card .meta-label { margin-bottom: 24px; }
.service-list { display: grid; }
.service-item { display: grid; grid-template-columns: minmax(180px,.65fr) minmax(0,1.35fr); gap: 38px; padding: 34px 0; border-top: 1px solid var(--line); }
.service-item:last-child { border-bottom: 1px solid var(--line); }
.service-item > strong { color: var(--orange-deep); font-family: "Caveat Brush", cursive; font-size: clamp(1.65rem, 2.4vw, 2.1rem); font-weight: 400; line-height: 1; }
.service-item p { margin-bottom: 8px; color: var(--ink-soft); }
.service-item b { color: var(--ink); }
.contact-page .intro-grid { grid-template-columns: minmax(0,1.1fr) minmax(290px,.62fr); }
.contact-card { border-top: 5px solid var(--orange); box-shadow: var(--shadow); }
.contact-card a { font-weight: 800; }
.text-flow { max-width: 850px; }
.text-flow h1 { font-size: clamp(2.8rem, 5vw, 4.8rem); }
.text-flow h2 { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); font-size: clamp(1.45rem, 2.2vw, 2rem); }
.text-flow h2:first-of-type { margin-top: 24px; }
.text-flow a { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.notice { margin: 26px 0; border-left: 5px solid var(--orange); background: #fff3eb; }
.notice p:last-child { margin-bottom: 0; }
.language-hero .hero-layout { min-height: calc(100vh - 78px); }
.language-mark { position: relative; display: grid; place-items: center; min-height: 420px; }
.language-mark::before { width: min(480px, 90%); aspect-ratio: 1000 / 623; content: ""; background: url("../img/phifux_logo_symbol_1000x623.png") center / contain no-repeat; }

.site-footer { position: relative; margin-top: 54px; padding: 58px 0 26px; overflow: hidden; background: var(--ink); color: var(--white); }
.site-footer::after { position: absolute; right: -60px; bottom: -70px; width: 330px; height: 205px; content: ""; background: url("../img/phifux_logo_symbol_1000x623_white.png") center / contain no-repeat; opacity: .08; }
.footer-inner, .footer-bottom { position: relative; z-index: 1; }
.footer-inner { display: grid; grid-template-columns: 1.4fr repeat(3,minmax(0,.72fr)); gap: 34px; }
.footer-brand img { width: 150px; margin-bottom: 17px; padding: 8px; background: var(--white); }
.site-footer p, .site-footer a { color: rgba(255,255,255,.69); }
.site-footer a { display: block; margin: 7px 0; }
.site-footer a:hover { color: var(--white); }
.site-footer h2 { margin-bottom: 13px; color: var(--white); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.55); }

.home-page .section-tight { position: relative; isolation: isolate; }
.home-page .section-tight::before { position: absolute; top: 24px; bottom: 24px; left: 50%; z-index: 0; width: 1400px; max-width: calc(100% - 32px); content: ""; pointer-events: none; background: url("../img/phifux_logo_symbol_1000x623_white.png") center / contain no-repeat; opacity: .5; transform: translateX(-50%); }
.home-page .section-tight > .container { position: relative; z-index: 1; }

@media (max-width: 1020px) { .primary-nav a { padding-inline: 7px; font-size: .82rem; } .header-actions { gap: 10px; } }
@media (max-width: 920px) {
    .hero-layout, .intro-grid, .two-column, .footer-inner { grid-template-columns: 1fr; }
    .hero-layout { min-height: auto; }
    .fox-stage, .hero-art { width: min(540px,100%); margin-inline: auto; }
    .intro-grid > :nth-child(2) { padding-top: 0; }
    .info-card { grid-column: span 6; }
    .menu-toggle { display: inline-block; }
    .header-actions { position: relative; flex-wrap: wrap; }
    .js .primary-nav { position: absolute; top: calc(100% + 9px); right: 0; display: none; width: min(330px,calc(100vw - 32px)); padding: 10px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
    .js .primary-nav[data-open] { display: grid; }
    .primary-nav a { width: 100%; font-size: .94rem; }
    .primary-nav a:last-child { margin-left: 0; border: 0; border-radius: 0; }
    .language-switch { padding-left: 6px; }
    .contact-page .intro-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
    :root { --container: min(100vw - 44px,1160px); }
    .header-inner { min-height: 66px; }
    .brand img { width: 119px; }
    h1 { font-size: clamp(2.6rem,13vw,4rem); }
    .section { padding-block: 58px; }
    .hero { padding-top: 34px; }
    .hero-layout { gap: 22px; }
    .fox-stage { min-height: 390px; transform: scale(.88); transform-origin: top center; margin-bottom: -38px; }
    .hero-art { min-height: 360px; }
    .fox-stage::before { right: -90px; }
    .orbit-card--main { left: -6px; }
    .orbit-card--api { right: -8px; }
    .orbit-card--live { right: 8px; bottom: 20px; }
    .audience-list { flex-wrap: wrap; justify-content: flex-start; gap: 11px 15px; padding-block: 19px; }
    .audience-list span:first-child { width: 100%; }
    .info-card { grid-column: 1 / -1; min-height: 0; }
    .info-card:nth-child(2), .info-card:nth-child(5), .product-card:nth-child(2n) { transform: none; }
    .card-index { margin-bottom: 25px; }
    .product-grid { grid-template-columns: 1fr; }
    .service-item { grid-template-columns: 1fr; gap: 9px; padding-block: 26px; }
    .check-list { grid-template-columns: 1fr; }
    .footer-inner { gap: 24px; }
    .language-mark { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
