/* ==========================================================================
   Sicra Digital — studio homepage
   Black, white and the logo's electric violet.
   ========================================================================== */

:root {
  --bg: #07060a;
  --bg-2: #0e0b14;
  --panel: #120e19;
  --violet: #a018f8;
  --violet-2: #c77dff;
  --violet-dim: rgba(160, 24, 248, .28);
  --text: #f1edf7;
  --muted: #a69cb6;
  --line: rgba(199, 125, 255, .18);

  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1200px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--f-body);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--violet); color: #fff; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--violet); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font: 600 13px/1 var(--f-display); letter-spacing: .28em; text-transform: uppercase;
  color: var(--violet-2);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--violet); }
.h1, .h2, .card__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .95; letter-spacing: .01em; margin: 0; }
.h1 { font-size: clamp(48px, 9vw, 112px); }
.h2 { font-size: clamp(34px, 5vw, 58px); margin-bottom: 22px; max-width: 16ch; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 46ch; margin-top: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  font: 700 15px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 2px;
  transition: background .25s, border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.btn span { transition: transform .25s var(--ease); }
.btn--primary { background: var(--violet); color: #fff; box-shadow: 0 0 0 0 var(--violet-dim); }
.btn--primary:hover, .btn--primary:focus-visible { background: #b13bff; box-shadow: 0 8px 32px var(--violet-dim); }
.btn--primary:hover span, .btn--primary:focus-visible span { transform: translateX(4px); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--violet-2); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 16px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(7, 6, 10, .88); backdrop-filter: blur(10px); border-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 700 18px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; }
.nav__brand img { width: 34px; height: auto; }
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav__links a {
  position: relative; padding: 12px 0;
  font: 600 14px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted);
  transition: color .2s;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--violet); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--text); }
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); }

/* Intro */
.intro { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 48px) 0 72px; overflow: hidden; }
.intro__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(48% 60% at 78% 40%, rgba(160, 24, 248, .22), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(160, 24, 248, .10), transparent 70%);
}
.intro__inner { position: relative; }
/* The logo file has a black background: lighten lets it sit on the glow without a box */
.intro__logo { width: clamp(84px, 10vw, 120px); height: auto; margin-bottom: 32px; mix-blend-mode: lighten; }
.nav__brand img { mix-blend-mode: lighten; }
.intro__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }

/* About */
.about__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.about__grid p { color: var(--muted); max-width: 52ch; font-size: 18px; }
.founder { display: grid; gap: 8px; padding: 28px 30px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: 4px; }
.founder__role { font: 600 13px/1.2 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--violet-2); }
.founder strong { font: 800 30px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }

/* Featured project */
.card {
  display: grid; grid-template-columns: 1.3fr 1fr;
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.card:hover, .card:focus-within { border-color: rgba(199, 125, 255, .45); box-shadow: 0 24px 64px rgba(0, 0, 0, .5), 0 0 0 1px var(--violet-dim); }
.card__media { display: block; position: relative; overflow: hidden; min-height: 320px; background: #000; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.card__body p { color: var(--muted); max-width: 40ch; margin: 18px 0 30px; }
.card__title img { width: min(360px, 100%); height: auto; }
.badge {
  display: inline-block; margin-bottom: 20px; padding: 7px 12px;
  font: 700 12px/1 var(--f-display); letter-spacing: .22em; text-transform: uppercase;
  color: var(--violet-2); border: 1px solid var(--violet-dim); background: rgba(160, 24, 248, .08);
}

/* Contact */
.contact__inner > p { color: var(--muted); max-width: 46ch; font-size: 18px; }
.email { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-top: 28px; }
.email__link {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 22px;
  font: 600 clamp(17px, 2.4vw, 24px)/1.2 var(--f-body); text-decoration: none; word-break: break-all;
  border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, color .2s;
}
.email__link:hover, .email__link:focus-visible { border-color: var(--violet-2); color: #fff; }
.email__copy {
  min-height: 56px; min-width: 88px; padding: 0 18px; cursor: pointer;
  font: 700 14px/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase;
  color: var(--text); background: transparent; border: 1px solid var(--line); transition: border-color .2s;
}
.email__copy:hover, .email__copy:focus-visible { border-color: var(--violet-2); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover, .footer a:focus-visible { color: var(--text); }

/* Small screens */
@media (max-width: 900px) {
  .about__grid, .card { grid-template-columns: 1fr; }
  .card__media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .nav__brand span { display: none; }
  .nav__links a { font-size: 13px; letter-spacing: .14em; padding: 15px 0; }
  .nav__links a::after { bottom: 8px; }
  .intro__cta .btn { width: 100%; }
  .email__link, .email__copy { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
