/* Krigstone website. Colours and type follow the Krigstone brand book. */

@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --graphite: #16181B;
  --graphite-2: #1D2024;
  --line-dark: #2E3237;
  --bone: #EDEBE6;
  --white: #FFFFFF;
  --ore: #C2A15A;        /* the one accent, on dark only */
  --ore-deep: #B08D45;   /* gold shapes on light, never text */
  --slate: #3A4550;
  --stone: #8D8A84;
  --muted-dark: #A9A6A0; /* 7.3:1 on graphite */
  --muted-light: #5E5B55;/* 5.7:1 on bone */
  --line-light: #D6D2CA;
  --display: "Space Grotesk", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--graphite); color: var(--bone); font-family: var(--text); font-size: 17px; line-height: 1.6; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ore); outline-offset: 3px; }
.band-bone :focus-visible { outline-color: var(--graphite); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--bone); color: var(--graphite); padding: 10px 14px; }
.skip:focus { top: 12px; }

.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-light); }
.kicker-ore { color: var(--ore); }
.kicker-deep { color: var(--muted-light); }
.band-dark .kicker:not(.kicker-ore) { color: var(--muted-dark); }

/* Mark: three stone segments, three gold ones lifted out */
.mark .m-b, .hero-mark .m-b, .about-mark .m-b { fill: var(--bone); }
.mark .m-g, .hero-mark .m-g, .about-mark .m-g { fill: var(--ore); }
.mark polygon, .hero-mark polygon, .about-mark polygon { stroke: var(--graphite); stroke-width: 4; stroke-linejoin: round; }

/* Header */
.top { border-bottom: 1px solid var(--line-dark); background: var(--graphite); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 76px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); }
.lockup .mark { width: 32px; height: 32px; }
.lockup .word { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.16em; }
.lockup-small .mark { width: 26px; height: 26px; }
.lockup-small .word { font-size: 15px; }
.menu { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.menu a { color: var(--muted-dark); text-decoration: none; padding: 10px 0; }
.menu a:hover { color: var(--bone); }

.langs { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; }
.langs svg { width: 18px; height: 18px; margin-right: 6px; color: var(--muted-dark); }
.langs a { color: var(--muted-dark); text-decoration: none; padding: 10px 6px; min-width: 44px; text-align: center; }
.langs a:hover { color: var(--bone); }
.langs a[aria-current="true"] { color: var(--bone); text-decoration: underline; text-decoration-color: var(--ore); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.top .langs { padding-left: 22px; border-left: 1px solid var(--line-dark); }

/* Bands */
.band-dark { background: var(--graphite); color: var(--bone); }
.band-bone { background: var(--bone); color: var(--graphite); }
.band-slate { background: var(--slate); color: var(--bone); }
section.band-bone, section.band-dark, section.band-slate { padding: clamp(64px, 10vw, 112px) 0; }

/* Hero */
.hero { position: relative; overflow: hidden; }
/* On wider screens the hero fills the first screen (minus the 77px top bar), so
   the light section below never peeks in as a thin strip at the bottom edge */
@media (min-width: 861px) {
  .hero { min-height: calc(100vh - 77px); min-height: calc(100svh - 77px); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
}
.hero-ghost { position: absolute; width: 760px; height: 760px; right: -200px; top: -60px; pointer-events: none; }
.hero-ghost polygon { fill: var(--graphite-2); stroke: var(--graphite); stroke-width: 1.2; stroke-linejoin: round; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted-dark); max-width: 36em; }
.band-slate .lead { color: #D9D6CF; }
.hero-mark { width: min(100%, 380px); height: auto; justify-self: center; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; font-size: 15px; font-weight: 600; text-decoration: none; }
.btn-ore { background: var(--ore); color: var(--graphite); }
.btn-ore:hover { background: #D1B373; }
.btn-line { color: var(--bone); box-shadow: inset 0 0 0 1px #4A4F56; }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--bone); }

/* Products */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
h2 { font-size: clamp(32px, 4.4vw, 44px); }
.products { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.card { padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.card-main { background: var(--white); }
.card-next { border: 1px dashed #A8A49C; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.product-name { font-size: 30px; letter-spacing: 0.08em; }
.card h3:not(.product-name) { font-size: 24px; }
.muted { color: var(--muted-light); font-size: 15px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.features li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.55; color: var(--muted-light); }
.features li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--ore-deep); }
.features strong { color: var(--graphite); font-weight: 600; }
.text-link { margin-top: auto; align-self: flex-start; font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid var(--ore-deep); padding: 6px 0 3px; }
.text-link:hover { border-bottom-color: var(--graphite); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 80px; align-items: center; }
.about-copy { display: flex; flex-direction: column; gap: 22px; }
.about-copy p { color: var(--muted-dark); }
.about-copy p:last-child { color: var(--bone); }
.about-mark { width: min(100%, 340px); height: auto; justify-self: center; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.value { border-top: 2px solid var(--graphite); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.value .num { font-family: var(--mono); font-size: 13px; color: var(--muted-light); }
.value h3 { font-size: 28px; }

/* Contact */
.contact { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.contact > div { display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.mail { font-family: var(--mono); font-size: clamp(18px, 2.4vw, 22px); text-decoration: none; border-bottom: 2px solid var(--ore); padding: 8px 0 6px; }
.mail:hover { color: var(--white); }

/* Footer */
.foot { border-top: 1px solid var(--line-dark); padding: 44px 0; color: var(--muted-dark); }
/* Two rows that line up across the footer: lockup | links, company line | language and copyright */
.foot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 32px; }
.foot-id, .foot-side { display: contents; }
.foot-id .lockup { justify-self: start; grid-area: 1 / 1; }
.foot-id .company { grid-area: 2 / 1; }
.company { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.foot-links { justify-self: end; grid-area: 1 / 2; }
.foot-meta { justify-self: end; grid-area: 2 / 2; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot-meta .langs a:last-child { min-width: 0; padding: 10px 0 10px 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
.foot-links a { text-decoration: none; padding: 8px 0; }
.foot-links a:hover { color: var(--bone); text-decoration: underline; }
.copy { font-size: 13px; }

/* Legal pages */
.legal { padding: clamp(48px, 8vw, 88px) 0; min-height: 60vh; }
.legal-wrap { max-width: 780px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin: 18px 0 8px; }
.back { font-size: 14px; color: var(--muted-light); text-decoration: none; }
.back:hover { color: var(--graphite); text-decoration: underline; }
.updated { font-family: var(--mono); font-size: 12px; color: var(--muted-light); letter-spacing: 0.06em; margin-bottom: 36px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration-color: var(--ore-deep); text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--white); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-light); vertical-align: top; }
/* Key-value tables (company details): labels stay on one line, values take the rest */
.prose table:not(:has(thead)) td { vertical-align: middle; }
.prose table:not(:has(thead)) td:first-child { white-space: nowrap; width: 1%; padding-right: 32px; color: var(--muted-light); }
.prose th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-light); font-weight: 500; }
.prose code { font-family: var(--mono); font-size: 0.9em; }

/* Not found */
.notfound { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

@media (max-width: 860px) {
  .hero-grid, .about, .products { grid-template-columns: minmax(0, 1fr); }
  /* Single column: the marks sit centred above the text, with the ghost mark
     centred behind the hero mark, so neither side of the screen is heavier */
  .hero-mark { width: 180px; justify-self: center; order: -1; }
  .about-mark { width: 160px; justify-self: center; order: -1; }
  .hero-ghost { width: 560px; height: 560px; right: auto; left: 50%; top: -150px; transform: translateX(-50%); }
  .values { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .foot-id .lockup, .foot-id .company, .foot-links, .foot-meta { grid-area: auto; justify-self: start; }
}
@media (max-width: 640px) {
  .menu { order: 3; width: 100%; margin-left: 0; gap: 22px; }
  .top .langs { margin-left: auto; padding-left: 0; border-left: 0; }
  .actions .btn { flex: 1 1 0; justify-content: center; padding: 0 16px; }
  .contact-form .btn { align-self: stretch; justify-content: center; }
}

/* Contact form */
.contact-form { flex: 1 1 380px; max-width: 520px; display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #D9D6CF; }
.contact-form input, .contact-form textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--bone); background: #333D47; border: 1px solid #5A6672; border-radius: 0; padding: 12px 14px; min-height: 48px; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--ore); outline-offset: 0; border-color: var(--ore); }
.contact-form .btn { align-self: flex-start; border: 0; cursor: pointer; font-family: inherit; }
.form-small { margin: 0; font-size: 14px; color: #D9D6CF; }
.form-small a { color: var(--bone); text-decoration-color: var(--ore); text-underline-offset: 3px; }
.form-note { display: none; margin: 0; padding: 12px 14px; font-size: 15px; border-left: 3px solid; background: #333D47; }
.form-note:target { display: block; }
.form-ok { border-color: var(--ore); }
.form-bad { border-color: #E08A6E; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Back to top (as on tessok.com, in Krigstone's square, flat style) */
.to-top {
  position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  width: 48px; height: 48px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(22, 24, 27, 0.82); color: var(--bone);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(237, 235, 230, 0.28);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.25s, transform 0.25s, background 0.2s;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--graphite); box-shadow: inset 0 0 0 1px var(--ore); }
.to-top:focus-visible { outline: 2px solid var(--ore); outline-offset: 3px; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
@media (min-width: 861px) { .to-top { right: 28px; bottom: 28px; } }
@media (prefers-reduced-transparency: reduce) { .to-top { background: var(--graphite); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity 0.2s; transform: none; } }
