/* Ciconiq Studio · v11
   One dark theme, Archivo 400/600, a single red accent (the stork's bill and the motto's full stop).
   The shop keeps css/site.css; this file styles ciconiq.com only. */

@font-face { font-family: Archivo; src: url(../fonts/archivo-v25-latin-regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Archivo; src: url(../fonts/archivo-v25-latin-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #111110;
  --raised: #1a1a18;
  --well: #1c1c1a;
  --ink: #f1efe9;
  --muted: #a5a39b;
  --line: #2b2a27;
  --field: #6f6d66;
  --accent: #e0482f;
  --error: #ff7b67;
  --on-ink-muted: #57554f;
  --sans: Archivo, "Helvetica Neue", Arial, sans-serif;
  --max: 1440px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --section: clamp(88px, 11vw, 168px);
  --header: 72px;
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
::selection { background: var(--accent); color: #fff; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
/* No CSS smooth scrolling: js/studio.js glides only for clicks within a page, so arriving
   from another page at index.html#work lands on the section at once. */
[data-scroll-target]:focus { outline: none; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.symbol-sheet { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.icon { width: 1em; height: 1em; flex: none; transition: transform .35s var(--ease); }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(17, 17, 16, .82); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled, .site-header.menu-open { border-bottom-color: var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; min-height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 26px; height: 26px; --mk-neck: var(--ink); --mk-bill: var(--accent); --mk-eye: var(--bg); }
.brand-word span { color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 clamp(20px, 3vw, 40px); font-size: .9375rem; }
.site-nav a { position: relative; padding: 12px 0; color: var(--muted); text-decoration: none; transition: color .2s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-ready .nav-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--ink); font-size: .9375rem; font-weight: 600; cursor: pointer; }
  .nav-ready .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; padding: 4px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-ready .menu-open .site-nav { display: flex; animation: drop .35s var(--ease); }
  .nav-ready .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.5rem; letter-spacing: -.02em; }
  .nav-ready .site-nav a::after { display: none; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 1.6em; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.btn:hover { background: #fff; border-color: #fff; }
.btn:hover .icon, .text-link:hover .icon { transform: translateX(3px); }
.btn:hover .icon--ext, .text-link:hover .icon--ext { transform: translate(2px, -2px); }
.text-link:hover .icon--down { transform: translateY(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--field); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); }
.btn--small { min-height: 44px; padding: 0 1.2em; font-size: .875rem; }
.btn--lg { min-height: 60px; padding: 0 1.9em; font-size: 1.0625rem; }
.text-link { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-size: .9375rem; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(50% + .8em) / 100% 1px no-repeat; transition: background-size .35s var(--ease); }
.text-link:hover { background-size: 0 1px; background-position: 100% calc(50% + .8em); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }

/* ---------------------------------------------------------------- Hero */
.hero { display: flex; align-items: flex-end; min-height: min(calc(100svh - var(--header)), 920px); padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 6vw, 88px); }
.ref-note { display: inline-block; margin-bottom: clamp(24px, 4vw, 48px); padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--raised); font-size: .9375rem; }
.ref-note strong { font-weight: 600; }
.ref-note[hidden] { display: none; }
.hero-title { font-size: clamp(3.6rem, 14vw, 12.5rem); font-weight: 600; line-height: .9; letter-spacing: -.055em; }
.hero-title .line { display: block; overflow: hidden; padding: 0 .04em .06em 0; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero-title .line + .line > span { animation-delay: .1s; }
.dot { color: var(--accent); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 48px; margin-top: clamp(36px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); animation: fade-up 1s .35s var(--ease) both; }
.hero-lead { max-width: 36ch; color: var(--muted); font-size: clamp(1.0625rem, 1.45vw, 1.3rem); line-height: 1.5; }
.hero-lead strong { display: block; color: var(--ink); font-weight: 600; }
@keyframes rise { from { transform: translateY(104%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .hero { min-height: calc(88svh - var(--header)); }
  .hero-title { font-size: min(18.5vw, 6.5rem); }
  .hero-foot { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- Sections */
.section { padding: var(--section) 0; }
.section--tight { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 88px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding-bottom: clamp(32px, 4.5vw, 64px); }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.section-note { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.125rem); }

/* Capabilities */
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); border-top: 1px solid var(--ink); }
.cap { padding: 28px 0 44px; border-bottom: 1px solid var(--line); }
.cap h3 { margin-bottom: 10px; font-size: clamp(1.125rem, 1.45vw, 1.375rem); letter-spacing: -.02em; }
.cap p { max-width: 34ch; color: var(--muted); }
@media (max-width: 960px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } .cap { padding: 22px 0 26px; } }

/* Selected work */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 6vw, 96px) clamp(16px, 3vw, 44px); }
.work-media { display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--well); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.work-media:hover img { transform: scale(1.035); }
.work-media:focus-visible { outline-offset: 4px; }
.work-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-top: 18px; }
.work-meta h3 { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); letter-spacing: -.015em; }
.work-tags { color: var(--muted); font-size: .9375rem; }
.work-link { margin-top: 2px; }
@media (min-width: 721px) { .work:nth-child(even) { margin-top: clamp(64px, 9vw, 140px); } }
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }

/* Contact band */
.contact-band { border-top: 1px solid var(--line); }
.contact-title { max-width: 13ch; font-size: clamp(2.7rem, 7.6vw, 7.25rem); line-height: .95; letter-spacing: -.05em; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: clamp(36px, 4.5vw, 60px); }
.contact-note { margin-top: 28px; color: var(--muted); font-size: .9375rem; }

/* ---------------------------------------------------------------- Footer */
.site-footer { color: var(--muted); font-size: .9375rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px clamp(32px, 5vw, 80px); padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.footer-list { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-list a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.footer-list a:hover { text-decoration: underline; text-underline-offset: .25em; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .875rem; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--ink); }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr; gap: 12px; } }

/* ---------------------------------------------------------------- Inner pages */
.page-head { padding: clamp(56px, 9vw, 128px) 0 clamp(28px, 3.5vw, 48px); }
.page-title { font-size: clamp(2.9rem, 8.4vw, 6.75rem); line-height: .95; letter-spacing: -.05em; }
.lead { max-width: 40ch; margin-top: 20px; color: var(--muted); font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; }
.page-actions { margin-top: 32px; }

/* Contact */
.direct { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.direct-label { width: 100%; color: var(--muted); font-size: .9375rem; font-weight: 400; letter-spacing: 0; line-height: 1.4; }
.contact-title { text-wrap: balance; }
.email-big { font-size: clamp(1.6rem, 4.4vw, 2.75rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; text-decoration: none; overflow-wrap: anywhere; }
.email-big:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.copy-group { display: flex; align-items: center; gap: 12px; }
.copy-status { color: var(--muted); font-size: .875rem; }
.reply-note { margin-top: 16px; color: var(--muted); font-size: .9375rem; }
.form-title { margin-bottom: 8px; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; }
.form-intro { margin-bottom: 28px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field--full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid var(--field); border-radius: var(--radius); background: var(--raised); color: var(--ink); font: inherit; font-size: 1rem; }
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
select { -webkit-appearance: none; appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23f1efe9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
input::placeholder, textarea::placeholder { color: #8e8c85; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--error); }
.help { margin-top: 6px; color: var(--muted); font-size: .875rem; }
.field-error { margin-top: 6px; color: var(--error); font-size: .875rem; }
.field-error:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.status { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.status:empty { display: none; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .direct { padding: 22px 0; } }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 40px 20px 0; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; top: 50%; right: 4px; width: 14px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { max-width: 62ch; padding: 0 0 22px; color: var(--muted); }
.faq-title { margin-bottom: 24px; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; }

/* Prose (privacy) */
.prose { max-width: 66ch; }
.prose h2 { margin: 40px 0 10px; font-size: 1.25rem; letter-spacing: -.015em; }
.prose p + p { margin-top: 12px; }
.prose p { color: #d6d4ce; }
.prose a { text-underline-offset: .2em; }

/* ---------------------------------------------------------------- Lightbox */
.lightbox { max-width: min(1200px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.lightbox[open] { animation: fade-in .3s var(--ease); }
.lightbox::backdrop { background: rgba(6, 6, 6, .94); }
.lightbox figure { margin: 0; }
.lightbox img { width: auto; max-width: 100%; max-height: calc(100vh - 150px); margin: 0 auto; border-radius: var(--radius); }
.lightbox figcaption { max-width: 60ch; margin: 16px auto 0; color: var(--muted); font-size: .9375rem; text-align: center; }
.lightbox figcaption strong { color: var(--ink); font-weight: 600; }
.lightbox-close { position: fixed; top: 16px; right: 16px; min-height: 44px; padding: 0 18px; border: 1px solid rgba(241, 239, 233, .35); border-radius: 999px; background: rgba(17, 17, 16, .6); color: var(--ink); font-size: .9375rem; font-weight: 600; cursor: pointer; }
.lightbox-close:hover { border-color: var(--ink); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- Links page */
.links-page { min-height: 100svh; }
.links { max-width: 520px; margin: 0 auto; padding: clamp(40px, 8vh, 80px) 20px 32px; }
.links-head { text-align: center; }
.links-mark { display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center; border-radius: 50%; background: var(--raised); border: 1px solid var(--line); }
.links-mark svg { width: 34px; height: 34px; --mk-neck: var(--ink); --mk-bill: var(--accent); --mk-eye: var(--raised); }
.links-brand { margin-top: 18px; font-size: .75rem; font-weight: 600; letter-spacing: .2em; }
.links-title { margin-top: 12px; font-size: clamp(2.6rem, 12vw, 3.75rem); line-height: .95; letter-spacing: -.05em; }
.links-desc { max-width: 36ch; margin: 16px auto 0; color: var(--muted); }
.link-list { display: grid; gap: 12px; margin-top: 32px; }
.link-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 14px 22px 14px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--raised); text-decoration: none; transition: border-color .25s, transform .25s var(--ease), background-color .25s; }
.link-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.link-card strong { display: block; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.link-card small { display: block; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.link-card .icon { width: 18px; height: 18px; }
.link-card:hover .icon { transform: translateX(3px); }
.link-card:hover .icon--ext { transform: translate(2px, -2px); }
.link-card--primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.link-card--primary small { color: var(--on-ink-muted); }
.link-card--primary:hover { background: #fff; border-color: #fff; }
.link-card--primary:focus-visible { outline-color: var(--ink); }
.links-work { margin-top: 40px; }
.links-work-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.links-work-head h2 { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.links-work-head a { color: var(--muted); font-size: .875rem; text-underline-offset: .2em; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs a { display: block; overflow: hidden; aspect-ratio: 1; border-radius: 12px; background: var(--well); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.thumbs a:hover img { transform: scale(1.05); }
.links-foot { margin-top: 40px; color: var(--muted); font-size: .8125rem; text-align: center; }
.links-foot a { text-underline-offset: .2em; }
.links .reveal-in { animation: fade-up .7s var(--ease) both; }
.link-list li:nth-child(2) .reveal-in { animation-delay: .05s; }
.link-list li:nth-child(3) .reveal-in { animation-delay: .1s; }
.link-list li:nth-child(4) .reveal-in { animation-delay: .15s; }
.link-list li:nth-child(n+5) .reveal-in { animation-delay: .2s; }

/* ---------------------------------------------------------------- Scroll reveal (added by JS) */
.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .cap-grid .reveal:nth-child(3n+2), .motion .work-grid .reveal:nth-child(even) { transition-delay: .08s; }
.motion .cap-grid .reveal:nth-child(3n) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

@media print {
  .site-header, .nav-toggle, .lightbox, .contact-actions .text-link { display: none !important; }
  body, .contact-band, .site-footer { background: #fff; color: #000; }
}
