/* syNK Studio home page. The font is served from this site (SIL Open Font License, /fonts/OFL.txt),
   so the page asks no other host for anything. */
@font-face { font-family: "Bricolage Grotesque"; src: url(/fonts/bricolage-grotesque-latin.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
:root {
  --gold: #F2B53A;
  --gold-hi: #FBD576;
  --gold-lo: #E5A32C;
  --gold-deep: #C98A1B;
  --ink: #17233F;
  --ink-deep: #101A31;
  --paper: #F4EFE4;
  --mist: #A3AEC6;
  --rule: rgba(244, 239, 228, .16);
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --bar: clamp(64px, 7vw, 96px);
  --face: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--face); font-size: clamp(1.0625rem, .5vw + .875rem, 1.25rem); line-height: 1.55;
  font-weight: 420; font-stretch: 96%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--gold); color: var(--ink); }
.hero ::selection, .deal ::selection { background: var(--ink); color: var(--gold); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
section[id] { scroll-margin-top: 12px; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 4px; }

/* ---------- masthead (sits on the gold) ---------- */
.masthead { position: absolute; inset: 0 0 auto 0; z-index: 3; color: var(--ink); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--bar); }
.brand { display: inline-flex; align-items: center; gap: .5em; font-weight: 800; font-stretch: 84%; font-size: 1.28em; letter-spacing: -.012em; text-decoration: none; }
.brand svg { width: 1.65em; height: 1.65em; flex: none; }
.masthead nav { display: flex; gap: clamp(16px, 2.4vw, 38px); }
.masthead nav a { font-weight: 600; font-size: .95em; text-decoration: none; padding: 8px 0; }
.masthead nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- hero: the gold field ---------- */
.hero { position: relative; background: var(--gold); color: var(--ink); padding-top: var(--bar); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 64px); align-items: end; }
.hero__text { padding-block: clamp(36px, 5.6vw, 88px) clamp(48px, 6.4vw, 100px); }
h1 { font-size: clamp(3rem, 8.3vw, 7.75rem); line-height: .91; font-weight: 800; font-stretch: 86%; letter-spacing: -.02em; }
h1 span { display: block; }
.lead { margin-top: clamp(20px, 2.4vw, 34px); max-width: 30em; font-size: clamp(1.1rem, 1.45vw, 1.42rem); line-height: 1.42; font-weight: 480; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.hero .actions { margin-top: clamp(24px, 2.6vw, 38px); }

.btn { display: inline-flex; align-items: center; min-height: 54px; padding: 0 1.55em; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background-color .15s ease; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-deep); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--soon { border: 2px solid var(--gold); color: var(--gold); }
/* The focus ring is drawn outside the button, on the band behind it, so it takes the colour that shows there:
   ink on the gold band, paper on the ink band (the button text colour would vanish). */
.btn--ink:focus-visible { outline-color: var(--ink); }
.btn--gold:focus-visible { outline-color: var(--paper); }
.link { font: inherit; font-weight: 600; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
button.link { appearance: none; background: none; border: 0; padding: 8px 0; cursor: pointer; }
.apps .link, .about .link { text-decoration-color: rgba(242, 181, 58, .65); }
.apps .link:hover, .about .link:hover { text-decoration-color: var(--gold); }

/* ---------- the coin: stands on the seam, rolls in once, spins when tapped ---------- */
.coin-stage { --coin: clamp(210px, 34vw, 500px); --half: calc(var(--coin) * .017); position: relative; z-index: 1; justify-self: end; width: var(--coin); height: var(--coin); }
.coin-cast { width: 100%; height: 100%; perspective: 1500px; filter: drop-shadow(calc(var(--coin) * .03) calc(var(--coin) * .01) 0 rgba(170, 100, 0, .38)); }
.coin-roll { width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.coin {
  appearance: none; display: block; position: relative; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; font: inherit; cursor: pointer;
  transform-style: preserve-3d; transform: rotateY(var(--spin, 0deg));
  transition: transform 1.7s cubic-bezier(.2, .75, .2, 1);
  -webkit-tap-highlight-color: transparent;
}
.coin:disabled { cursor: default; }
.coin__face, .coin__edge, .coin__edge i { position: absolute; inset: 0; border-radius: 50%; }
.coin__face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.coin__face svg { width: 100%; height: 100%; }
.coin__face--front { transform: translateZ(var(--half)); }
.coin__face--back { transform: rotateY(180deg) translateZ(var(--half)); }
.coin__edge { transform-style: preserve-3d; }
.coin__edge i { background: var(--gold-deep); }
.coin__edge i:nth-child(1) { transform: translateZ(calc(var(--half) * -.9)); }
.coin__edge i:nth-child(2) { transform: translateZ(calc(var(--half) * -.6)); }
.coin__edge i:nth-child(3) { transform: translateZ(calc(var(--half) * -.3)); }
.coin__edge i:nth-child(4) { transform: translateZ(0); }
.coin__edge i:nth-child(5) { transform: translateZ(calc(var(--half) * .3)); }
.coin__edge i:nth-child(6) { transform: translateZ(calc(var(--half) * .6)); }
.coin__edge i:nth-child(7) { transform: translateZ(calc(var(--half) * .9)); }
.coin-legend { font: 800 34px var(--face); font-stretch: 88%; letter-spacing: .17em; fill: var(--ink); }
.coin-one { font: 800 238px/1 var(--face); font-stretch: 80%; fill: var(--ink); }
.coin-unit { font: 800 50px/1 var(--face); font-stretch: 84%; letter-spacing: .2em; fill: var(--ink); }

@media (hover: hover) {
  .coin-roll:hover { transform: rotateY(-16deg) rotateX(4deg); }
}
@media (prefers-reduced-motion: no-preference) {
  /* 2.3 coin-widths of travel = 4.6 radians of turn, so it rolls without slipping */
  .coin-roll { animation: roll-in 1.8s cubic-bezier(.17, .84, .32, 1) .2s backwards; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coin, .coin-roll { transition: none; }
}
@keyframes roll-in { from { transform: translateX(calc(var(--coin) * 2.3)) rotate(263.6deg); } to { transform: none; } }

/* ---------- ink sections ---------- */
h2 { font-size: clamp(2.3rem, 5.1vw, 4.8rem); line-height: .95; font-weight: 800; font-stretch: 84%; letter-spacing: -.018em; text-wrap: balance; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); column-gap: clamp(32px, 6vw, 110px); align-items: start; }

.apps { padding-block: clamp(72px, 9vw, 140px) clamp(72px, 9vw, 140px); }
.app { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 110px); align-items: center; }
.app__name { display: flex; align-items: center; gap: .42em; margin-top: clamp(36px, 4.6vw, 68px); font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1; font-weight: 800; font-stretch: 84%; letter-spacing: -.012em; }
.app__name img { width: 1.55em; height: 1.55em; border-radius: 23%; }
.app__tag { margin-top: 1em; max-width: 20em; font-size: clamp(1.25rem, 1.95vw, 1.8rem); line-height: 1.26; font-weight: 600; font-stretch: 90%; text-wrap: balance; }
.app__body { margin-top: 1em; max-width: 32em; color: var(--mist); }
.app .actions { margin-top: 1.9em; }

.app__shots { position: relative; justify-self: center; width: min(100%, 410px); }
.phone { aspect-ratio: 1079 / 1697; border-radius: 9% / 5.7%; overflow: hidden; background: #12131c; box-shadow: 0 0 0 1px rgba(244, 239, 228, .16), 0 50px 90px -40px rgba(0, 0, 0, .75); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.ring { position: absolute; left: -21%; bottom: 8%; width: 47%; aspect-ratio: 1; border-radius: 50%; background: #141a2c url(/img/k17-03-widgets.png) 17.35% 20.66% / 291.6% auto no-repeat; box-shadow: 0 0 0 7px var(--ink), 0 30px 60px -24px rgba(0, 0, 0, .8); }

.deal { padding-block: clamp(64px, 8vw, 128px); background: var(--gold); color: var(--ink); }
.deal__aside { margin-top: 1.2em; }
.deal__note { max-width: 19em; font-weight: 480; }
.seal { width: clamp(104px, 10.5vw, 148px); height: auto; margin-top: clamp(26px, 3.2vw, 46px); transform: rotate(-9deg); filter: drop-shadow(.3em .1em 0 rgba(170, 100, 0, .38)); }
.pricelist { font-size: clamp(1.15rem, 2.05vw, 1.85rem); font-stretch: 90%; line-height: 1.25; }
.pricelist > div { display: flex; align-items: baseline; gap: .55em; padding: .62em 0; }
.pricelist > div:first-child { padding-top: .2em; }
.pricelist > div::after { content: ""; order: 2; flex: 1; min-width: 1.5em; border-bottom: .13em dotted rgba(23, 35, 63, .45); transform: translateY(-.22em); }
.pricelist dt { order: 1; font-weight: 500; }
.pricelist dd { order: 3; font-weight: 800; text-align: right; }

.about { padding-block: clamp(64px, 8vw, 124px); }
.about__text { font-size: 1.08em; }
.about__text p { max-width: 33em; }
.about__text p + p { margin-top: 1em; color: var(--mist); }
.about__mail { font-size: clamp(1.45rem, 3.1vw, 2.7rem); line-height: 1.1; font-weight: 800; font-stretch: 84%; letter-spacing: -.012em; overflow-wrap: anywhere; }
.about__text .about__mail { margin-top: 1.1em; color: var(--paper); }
.about__mail .link { font-weight: 800; text-decoration-thickness: .09em; text-underline-offset: .16em; }

.foot { background: var(--ink-deep); border-top: 1px solid var(--rule); padding-block: 34px 46px; font-size: .9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 44px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.foot nav a { text-decoration: none; color: var(--mist); }
.foot nav a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 5px; }
.fine { flex-basis: 100%; color: var(--mist); opacity: .78; font-size: .86em; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__text { padding-bottom: 8px; }
  h1 { font-size: clamp(2.75rem, 12.6vw, 6.4rem); }
  .coin-stage { --coin: clamp(190px, 54vw, 320px); }
  .split, .app { grid-template-columns: minmax(0, 1fr); row-gap: clamp(36px, 7vw, 56px); }
  .app__shots { width: min(70%, 340px); justify-self: center; margin-left: 9%; }
  .pricelist { font-size: clamp(1.08rem, 3.4vw, 1.7rem); }
  .deal__aside { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .seal { flex: none; width: clamp(84px, 20vw, 132px); margin-top: 0; }
}
@media (max-width: 420px) {
  .masthead nav a:last-child { display: none; }
  .pricelist > div { gap: .4em; }
}
