/* ---------- Fonts (self-hosted) ---------- */
@font-face {
    font-family: 'Helvetica Now Display';
    src: url('/fonts/HelveticaNowDisplay-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Helvetica Now Display';
    src: url('/fonts/HelveticaNowDisplay-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/playfair-display-v40-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ---------- Design tokens ---------- */
/* All colors below come from the Six Sigma Group brand kit.
   Reference: SixSigmaSports_BrandGuidlines.pdf (color palette page). */
:root {
    --color-bg:         #000000;  /* Black (brand primary) */
    --color-light:      #E6FFF6;  /* Off White (brand) */
    --color-accent:     #67FBC9;  /* Glow Green (brand primary) */
    --color-violet:     #7E46E4;  /* Purple 1 (brand) */
    --color-lavender:   #DFD9FF;  /* Purple 2 (brand) */
    --color-red-1:      #FF4E7A;  /* Red 1, pink-red (brand) */
    --color-red-2:      #8C2D59;  /* Red 2, burgundy (brand) */

    --color-gray-100:   #c7c9ce;  /* muted body text — derived neutral */
    --color-gray-50:    #999999;  /* footer text — derived neutral */
    --color-divider:    rgba(230, 255, 246, 0.10);  /* off-white at low alpha */

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans:  'Helvetica Now Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

    --container:        1440px;
    --container-pad-x:  24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
    -webkit-text-size-adjust: 100%;
    background-color: var(--color-bg);  /* moved here so .aurora can sit behind content via z-index: -1 */
}
body {
    color: var(--color-light);
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Aurora background (SVG wave paths, fixed, animated) ---------- */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.aurora__svg {
    width: 100%;
    height: 100%;
    display: block;
}
.aurora__wave {
    will-change: transform;
}

/* Each wave's translateX equals one full wavelength of its path,
   so the loop is seamless. Back: 800px, Mid: 1000px, Fore: 600px. */
.aurora__wave--back { animation: aurora-drift-back 35s linear infinite; }
.aurora__wave--mid  { animation: aurora-drift-mid  50s linear infinite reverse; }
.aurora__wave--fore { animation: aurora-drift-fore 22s linear infinite; }

@keyframes aurora-drift-back { to { transform: translateX(-800px); } }
@keyframes aurora-drift-mid  { to { transform: translateX(1000px); } }
@keyframes aurora-drift-fore { to { transform: translateX(-600px); } }

@media (prefers-reduced-motion: reduce) {
    .aurora__wave { animation: none; }
}

/* ---------- Layout primitives ---------- */
main { max-width: var(--container); margin: 0 auto; padding-inline: var(--container-pad-x); }

/* ---------- Header ---------- */
.site-header {
    max-width: var(--container);
    margin: 0 auto;
    padding: 80px var(--container-pad-x) 0;
    text-align: center;
}
.logo {
    display: inline-block;
}
.logo img {
    width: 640px;
    height: auto;
}

/* ---------- Hero ---------- */
.hero { padding: 20px 0 96px; text-align: center; }
.hero__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.4;
    margin-bottom: 32px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; text-align: center; }
.section__title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(28px, 3.5vw, 40px);
    margin-bottom: 24px;
}
.section__body {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}
.section__body p + p,
.section__body p + ul,
.section__body ul + p,
.section__body p + .portfolio-item,
.section__body .portfolio-item + p {
    margin-top: 16px;
}
.section__lead {
    font-size: 18px;
    color: var(--color-gray-100);
}
.section__closer {
    color: var(--color-gray-100);
    font-style: italic;
    margin-top: 32px;
}

/* ---------- Portfolio items ---------- */
.portfolio-item {
    padding: 20px 0;
}
.portfolio-item + .portfolio-item {
    border-top: 1px solid var(--color-divider);
}
.portfolio-item__name {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 26px;
    color: var(--color-accent);
    margin-bottom: 8px;
}
.portfolio-item p {
    color: var(--color-gray-100);
    margin-bottom: 12px;
}
.link-arrow {
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 2px;
    font-size: 15px;
    transition: opacity 0.2s ease;
}
.link-arrow:hover {
    opacity: 0.7;
}

/* ---------- Buttons ----------
   Rectangular outline-style with hover fill — distinct from sixclearing.io's
   solid pill buttons. Different visual register for the holding company. */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 4px;
    border: 1.5px solid currentColor;
    background: transparent;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.button--primary {
    color: var(--color-accent);  /* Glow Green border + text — matches the brand mark */
}
.button--primary:hover {
    background: var(--color-accent);
    color: var(--color-bg);  /* fills green on hover, text inverts to black for max contrast */
}
.button--outline {
    color: var(--color-light);  /* Off White border + text */
}
.button--outline:hover {
    background: var(--color-light);
    color: var(--color-bg);
}
.button__arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}
.button:hover .button__arrow {
    transform: translateX(3px);
}

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 20px; max-width: 520px; margin: 0 auto; }
.contact-form button[type="submit"] { align-self: center; }
.field { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.field__label { color: var(--color-gray-50); font-size: 14px; }
.field input,
.field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-light);
    padding: 12px 0;
    color: var(--color-light);
    font-size: 16px;
}
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--color-accent); }

/* ---------- Footer ---------- */
.site-footer {
    max-width: var(--container);
    margin: 40px auto 0;
    padding: 40px var(--container-pad-x) 60px;
    color: var(--color-gray-50);
    font-size: 14px;
    text-align: center;
    border-top: 1px solid var(--color-divider);
}
