/* SyntaxSmith website. Plain CSS on purpose: no build step is needed to change it. */

@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-latin.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-italic-latin.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-italic-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-ext.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/jetbrains-mono-latin.woff2') format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, 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'; src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2'); font-weight: 100 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --paper: #f7f4ec;
    --paper-deep: #efeadd;
    --ink: #0d2847;
    --ink-deep: #0a1f38;
    --ink-soft: #4d5d76;
    --teal: #13a89e;
    --teal-text: #0b7a72;
    --brass: #c9973a;
    --line: rgba(13, 40, 71, .16);
    --line-light: rgba(247, 244, 236, .18);
    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --gutter: clamp(20px, 5vw, 80px);
    --max: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, ol { margin: 0; padding: 0; }
ol { list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; }
h3 { line-height: 1.15; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
::selection { background: var(--teal); color: var(--ink-deep); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 16px; }

.label { margin-bottom: 18px; font: 500 13px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal-text); }
.label--light { color: #4fd0c6; }

/* Buttons and links change colour only, without any motion. */
.button { display: inline-block; padding: 17px 28px; background: var(--ink); color: var(--paper); font: 500 16px/1.2 var(--sans); text-decoration: none; border-radius: 3px; }
.button:hover { background: var(--teal-text); }
.button--small { padding: 12px 18px; font-size: 15px; }
.text-link { font-weight: 500; text-underline-offset: 5px; }
.text-link:hover { color: var(--teal-text); }

/* Header: transparent over the hero, solid once the page scrolls */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 16px var(--gutter); color: var(--paper); }
.top.is-scrolled, .top.is-open { background: var(--ink-deep); box-shadow: 0 1px 0 var(--line-light); }
.top__logo { flex: none; }
.top__logo img { width: clamp(220px, 21vw, 300px); }
.top__nav { display: flex; gap: clamp(20px, 2.6vw, 38px); margin-left: auto; }
.top__nav a { font-size: 16px; font-weight: 500; text-decoration: none; padding: 6px 0; white-space: nowrap; }
.top__nav a:hover, .top__nav a.is-active { color: #4fd0c6; }
.top__side { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; gap: 10px; font: 500 14px/1 var(--mono); color: #aab8c7; }
.lang a { text-decoration: none; padding: 6px 2px; }
.lang a[aria-current] { color: var(--paper); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.top .button { background: var(--paper); color: var(--ink); }
.top .button:hover { background: #4fd0c6; }
.top__toggle { display: none; position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.top__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--paper); }
.top__toggle span:first-child { top: 17px; }
.top__toggle span:last-child { top: 25px; }
.top__toggle[aria-expanded='true'] span:first-child { top: 21px; transform: rotate(45deg); }
.top__toggle[aria-expanded='true'] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero: live metal behind, the logo forged from particles, type sized by its own column */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    overflow: hidden;
    padding: 96px var(--gutter) 76px;
    background: radial-gradient(90% 90% at 78% 45%, #0f4a55 0%, #0b2a44 45%, #071729 100%);
    color: var(--paper);
}
.hero__metal, .hero__forge { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero__forge { z-index: 0; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 23, 41, .78) 0%, rgba(7, 23, 41, .35) 48%, transparent 70%); pointer-events: none; }
.hero__copy { position: relative; z-index: 1; container-type: inline-size; width: min(62%, 980px); }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 8px 14px; border: 1px solid rgba(247, 244, 236, .22); border-radius: 999px; background: rgba(247, 244, 236, .06); backdrop-filter: blur(8px); font: 500 13px/1.2 var(--mono); }
.hero__eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px 2px var(--teal); }
.hero__title { font: 650 clamp(34px, min(9.6cqi, 9vh), 104px)/1.04 var(--sans); letter-spacing: -.04em; text-wrap: pretty; }
.hero__line { display: block; }
.hero__title em {
    font-family: var(--serif);
    font-weight: 400;
    font-style: italic;
    letter-spacing: -.02em;
    padding: 0 .1em .12em 0;
    background: linear-gradient(95deg, #5fe3d7 0%, #4fd0c6 35%, #f2c76e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.hero__lead { max-width: 56ch; margin-top: 20px; font-size: clamp(17px, 1.4vw, 20px); color: #c9d4df; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 26px; }
.button--bright { background: var(--teal); color: var(--ink-deep); font-weight: 600; }
.button--bright:hover { background: #4fd0c6; }
.text-link--light:hover { color: #4fd0c6; }

.ticker { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; overflow: hidden; padding: 16px 0; border-top: 1px solid var(--line-light); background: rgba(7, 23, 41, .35); backdrop-filter: blur(8px); }
.ticker__track { display: flex; width: max-content; align-items: center; gap: 30px; font: 500 15px/1 var(--mono); white-space: nowrap; color: #d6dfe8; animation: ticker 50s linear infinite; }
.ticker__track i { font-style: normal; font-size: 11px; color: var(--brass); }
@keyframes ticker { to { transform: translateX(-50%); } }

.js .hero__eyebrow, .js .hero__line, .js .hero__lead, .js .hero__actions { animation: rise 1s cubic-bezier(.2, .7, .1, 1) both; }
.js .hero__line:nth-child(2) { animation-delay: .12s; }
.js .hero__line:nth-child(3) { animation-delay: .24s; }
.js .hero__lead { animation-delay: .42s; }
.js .hero__actions { animation-delay: .55s; }
@keyframes rise { from { opacity: 0; transform: translateY(.5em); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

/* Services: an index, not a card grid */
.services { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); max-width: var(--max); margin-inline: auto; padding: clamp(80px, 11vw, 150px) var(--gutter); }
.services__head { position: sticky; top: 130px; align-self: start; }
.service { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 16px; padding-block: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service__num { grid-row: span 2; padding-top: .5em; font: italic 400 19px/1 var(--serif); color: var(--brass); }
.service h3 { font-size: clamp(28px, 3.1vw, 42px); }
.service p { max-width: 58ch; color: var(--ink-soft); }

/* Process: a timeline drawn by scrolling */
.process { background: var(--ink-deep); color: var(--paper); }
.process__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); max-width: var(--max); margin-inline: auto; padding: clamp(80px, 11vw, 150px) var(--gutter); }
.process__head { position: sticky; top: 130px; align-self: start; }
.timeline { position: relative; }
.timeline__rail { position: absolute; left: 25px; top: 26px; bottom: 26px; width: 2px; background: var(--line-light); }
.timeline__rail span { display: block; height: 100%; background: var(--teal); transform-origin: top; transform: scaleY(var(--progress, 1)); }
.stage { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 24px; padding-bottom: clamp(36px, 5vw, 60px); }
.stage:last-child { padding-bottom: 0; }
.stage__dot { display: grid; place-items: center; width: 52px; height: 52px; background: var(--ink-deep); border: 2px solid var(--teal); border-radius: 50%; font: italic 400 18px/1 var(--serif); color: var(--paper); }
.js .stage__dot { border-color: rgba(247, 244, 236, .3); }
.js .stage.is-reached .stage__dot { background: var(--teal); border-color: var(--teal); color: var(--ink-deep); }
.stage h3 { font-size: clamp(26px, 2.7vw, 36px); padding-top: 6px; }
.stage p { max-width: 50ch; margin-top: 8px; color: #bcc8d6; }

/* Approach and automation example */
.craft__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: center; max-width: var(--max); margin-inline: auto; padding: clamp(80px, 11vw, 150px) var(--gutter); }
.craft__text { font: 400 clamp(26px, 3.1vw, 42px)/1.28 var(--serif); letter-spacing: -.01em; }
.js .craft__text .word { color: rgba(13, 40, 71, calc(.2 + .8 * var(--lit, 0))); }
.craft__lead { margin-bottom: 14px; color: var(--ink-soft); }
.flow { padding: 22px 24px 20px; background: linear-gradient(160deg, #0f2d4e 0%, var(--ink-deep) 70%); color: var(--paper); border-radius: 6px; box-shadow: 0 30px 60px -34px rgba(10, 31, 56, .7); }
.flow__label { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 500 13px/1.3 var(--mono); color: #aab8c7; }
.flow__label span { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px 2px var(--teal); }
.flow__steps { position: relative; }
.flow__step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-block: 9px; }
.flow__step:not(:last-child)::after { content: ''; position: absolute; left: 19px; top: 44px; bottom: -10px; width: 2px; background: var(--teal); transform-origin: top; }
.flow__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: var(--ink-deep); }
.flow__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.flow__title { font-size: 16px; font-weight: 500; line-height: 1.25; }
.flow__status { font: 400 12px/1.3 var(--mono); color: #4fd0c6; white-space: nowrap; }
.flow__done { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-light); font: italic 400 19px/1.3 var(--serif); color: #f4cf85; }

/* Without JS the finished flow is shown. Once running, each state is reached in turn. */
.flow.is-running .flow__icon { background: rgba(247, 244, 236, .08); color: #8ea0b5; transition: background-color .3s, color .3s; }
.flow.is-running .flow__title { color: #8ea0b5; transition: color .3s; }
.flow.is-running .flow__status { opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s; }
.flow.is-running .flow__step:not(:last-child)::after { transform: scaleY(0); transition: transform .5s linear; }
.flow.is-running .flow__done { opacity: 0; transition: opacity .4s; }
.flow.is-running .flow__step.is-active .flow__icon { background: #f4cf85; color: var(--ink-deep); animation: flow-pulse 1s ease-out; }
.flow.is-running .flow__step.is-active .flow__title,
.flow.is-running .flow__step.is-done .flow__title { color: var(--paper); }
.flow.is-running .flow__step.is-done .flow__icon { background: var(--teal); color: var(--ink-deep); }
.flow.is-running .flow__step.is-done .flow__status { opacity: 1; transform: none; }
.flow.is-running .flow__step.is-done:not(:last-child)::after { transform: scaleY(1); }
.flow.is-running.is-finished .flow__done { opacity: 1; }
@keyframes flow-pulse { from { box-shadow: 0 0 0 0 rgba(244, 207, 133, .55); } to { box-shadow: 0 0 0 14px rgba(244, 207, 133, 0); } }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact__inner { max-width: var(--max); margin-inline: auto; padding: clamp(80px, 11vw, 150px) var(--gutter); }
.contact h2 { max-width: 14em; font-size: clamp(36px, 6vw, 80px); }
.contact__text { max-width: 50ch; margin-top: 22px; color: #c6d1dd; }
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.contact__mail a { font: 400 clamp(24px, 3.6vw, 44px)/1.2 var(--serif); text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 7px; overflow-wrap: anywhere; }
.contact__mail button { padding: 10px 14px; background: none; border: 1px solid var(--line-light); border-radius: 3px; color: var(--paper); font: 500 13px/1 var(--mono); cursor: pointer; }
.contact__mail button:hover { background: var(--paper); color: var(--ink); }
.contact__phone { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 16px; font: 400 17px/1.4 var(--mono); }
.contact__phone a { text-decoration: none; }
.contact__phone a:hover { color: #4fd0c6; }
.contact__phone span { margin-right: 6px; color: #4fd0c6; font-size: 13px; }

/* Footer */
.footer { font-size: 15px; color: var(--ink-soft); }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; max-width: var(--max); margin-inline: auto; padding: 56px var(--gutter) 44px; }
.footer img { width: clamp(220px, 21vw, 280px); }
.footer__tag { margin-top: 12px; font: italic 400 17px/1.3 var(--serif); }
.footer address { font-style: normal; }
.footer strong { color: var(--ink); font-weight: 600; }
.footer__meta { text-align: right; }

/* Scroll reveal exists only when JS runs, so the page is complete without it. */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1040px) {
    .top__nav { gap: 18px; }
    .button--small { display: none; }
}
@media (max-width: 900px) {
    .top__toggle { display: block; }
    .top__side { margin-left: auto; gap: 10px; }
    .top__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 20px; background: var(--ink-deep); box-shadow: 0 1px 0 var(--line-light); }
    .top__nav a { padding: 12px 0; font: 400 26px/1.2 var(--serif); }
    .top.is-open .top__nav { display: flex; }
    .hero { justify-content: flex-start; padding: 104px var(--gutter) calc(36svh + 60px); }
    .hero__copy { width: 100%; }
    .hero__title { font-size: clamp(34px, 10.6cqi, 72px); }
    .hero::after { background: linear-gradient(180deg, rgba(7, 23, 41, .7) 0%, rgba(7, 23, 41, .25) 62%, transparent 80%); }
    .services, .process__inner, .craft__inner { grid-template-columns: minmax(0, 1fr); }
    .services__head, .process__head { position: static; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .top { gap: 12px; padding-block: 10px; }
    .top__logo img { width: min(200px, 54vw); }
    .hero__actions .button { display: block; text-align: center; width: 100%; }
    .hero { padding-bottom: calc(30svh + 60px); }
    .hero__actions { flex-direction: column; align-items: flex-start; }
    .service { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 8px; }
    .footer__inner { grid-template-columns: minmax(0, 1fr); }
    .footer__meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .js .hero__eyebrow, .js .hero__line, .js .hero__lead, .js .hero__actions { animation: none; }
    .ticker__track { animation: none; }
}
