/* Naqqat company website. A calm studio homepage: header, a hero built around
   a "connected points" motif (Naqqat = points), products, what we do, about,
   contact, footer. Light and dark follow the visitor's system setting. */

/* Fonts: self-hosted Latin woff2, licence in fonts/OFL.txt. No requests to other origins. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-500-normal.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: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-700-normal.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: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/bricolage-grotesque-latin-800-normal.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: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/figtree-latin-400-normal.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: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/figtree-latin-500-normal.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: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/figtree-latin-600-normal.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: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/figtree-latin-700-normal.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; }

:root {
  --bg: #f6f1e9;
  --surface: #fffdf9;
  --fg: #12233a;
  --muted: #535e70;
  --line: #e4dccf;
  --teal: #0b625c;
  --coral: #c94a26;
  --coral-ink: #96361a; /* coral text on a coral tint: 5.8:1 */
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1726; --surface: #152236; --fg: #eef2f7; --muted: #a3b0c2; --line: #24344d; --teal: #3cc2b6; --coral: #ff8461; --coral-ink: #ff8461; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6;
  padding-left: max(0px, env(safe-area-inset-left, 0px)); padding-right: max(0px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1100px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 8px; }
.label { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.muted { color: var(--muted); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 12px; background: var(--fg); color: var(--bg); font-weight: 700; }
.skip:focus { top: 12px; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.mark svg { width: 30px; height: 30px; }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { display: inline-block; padding-block: 8px; color: var(--fg); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--teal); }
@media (max-width: 640px) { .nav { gap: 14px; font-size: .95rem; } }
/* The smallest phones (320 px): the mark and three links must fit in one row. */
@media (max-width: 380px) {
  .top .wrap { gap: 10px; }
  .mark { font-size: 1.1rem; gap: 8px; }
  .mark svg { width: 24px; height: 24px; }
  .nav { gap: 10px; font-size: .85rem; }
}

/* hero */
.hero { padding-block: 72px 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero__copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 span { color: var(--teal); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 700 1rem var(--body); text-decoration: none; cursor: pointer; }
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--line { border: 1.5px solid var(--fg); color: var(--fg); }
.btn[disabled] { opacity: .6; cursor: progress; }
.dots { width: 100%; max-width: 420px; justify-self: center; }
.dots line { stroke: var(--line); stroke-width: 2; }
.dots circle { fill: var(--fg); }
.dots circle.t { fill: var(--teal); }
.dots circle.c { fill: var(--coral); }
@media (prefers-reduced-motion: no-preference) {
  .dots circle.c { animation: pulse 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
}
@keyframes pulse { 50% { transform: scale(1.35); } }

/* products */
.products { padding-block: 72px; border-top: 1px solid var(--line); }
.cards { margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.card__head { display: flex; align-items: center; gap: 14px; }
.card__head img, .card__head .ph { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.card__head .ph { display: grid; place-items: center; background: var(--teal); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.4rem; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); }
.tag--soon { background: color-mix(in srgb, var(--coral) 16%, transparent); color: var(--coral-ink); }
.card p { color: var(--muted); }
.card a { font-weight: 700; }

/* what we do */
.do { padding-block: 72px; background: var(--surface); border-block: 1px solid var(--line); }
.do__grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .do__grid { grid-template-columns: 1fr; } }
.do__grid > div { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--fg); }
.do__grid p { color: var(--muted); }

/* about + contact */
.about { padding-block: 72px; }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .about .wrap { grid-template-columns: 1fr; } }
.about__col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; min-width: 0; }

/* The contact card is inverted: dark on a light page, light on a dark page. */
.contact { background: var(--fg); color: var(--bg); border-radius: 26px; padding: 30px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.contact h2, .contact .label { color: var(--bg); }
.contact p { color: color-mix(in srgb, var(--bg) 85%, transparent); }
.contact a { color: var(--bg); font-weight: 700; overflow-wrap: anywhere; }
.contact a:focus-visible, .contact button:focus-visible, .contact .input:focus-visible { outline-color: var(--bg); }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.input { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid transparent; border-radius: 14px; background: var(--bg); color: var(--fg); font: 400 1.05rem/1.4 var(--body); }
textarea.input { min-height: 130px; resize: vertical; }
.input:focus { outline: 3px solid var(--bg); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: var(--coral); }
.contact .btn { background: var(--bg); color: var(--fg); justify-self: start; }
.help { font-size: .92rem; }
.err { font-weight: 700; font-size: .95rem; padding-left: 10px; border-left: 4px solid var(--coral); }
.status { font-weight: 700; min-height: 1.6em; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* simple pages (privacy, 404) */
.page { padding-block: 64px 96px; }
.page .wrap { max-width: 760px; display: grid; gap: 18px; }
.page h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); }
.page h2 { font-size: 1.45rem; margin-top: 14px; }
.page ul { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 6px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 28px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: .92rem; }
.foot a { display: inline-block; padding-block: 6px; }
.foot .muted:last-child { margin-left: auto; }
