/* Spider Web Studio — static site styles */

@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(../fonts/unbounded-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(../fonts/unbounded-latin-wght-normal.woff2) format("woff2-variations");
  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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/manrope-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2-variations");
  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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  /* palette taken from the logo */
  --night: #07111F;        /* page background: the navy of the logo's shadow */
  --deep: #0C1A2D;         /* raised surfaces */
  --thread: rgba(195, 212, 236, .14);
  --silver: #C3D4EC;       /* "spider" */
  --silver-hi: #F2F6FB;
  --mist: #8EA2C0;         /* secondary text */
  --text: #DCE6F4;
  --lime: #A6E40C;         /* "studio web" */
  --lime-deep: #7DBB03;
  --signal: #F47B20;       /* the dot on the i, used once per screen at most */

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 160px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lime); color: var(--night); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--night);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.site-header.is-scrolled { background: rgba(7, 17, 31, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--thread); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: block; line-height: 0; }
.brand img { height: clamp(26px, 3.4vw, 40px); width: auto; } /* 40px from ~1180px wide */

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav > a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--silver); position: relative; padding: 6px 0; }
.nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav > a:hover, .nav > a.is-active { color: var(--silver-hi); }
.nav > a:hover::after, .nav > a.is-active::after { transform: scaleX(1); }

.lang { display: inline-flex; border: 1px solid var(--thread); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; color: var(--mist); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--silver); color: var(--night); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--silver); border-radius: 2px; transition: transform .3s var(--ease); }
.nav-toggle span + span { margin-top: 8px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 16px var(--gutter) 28px; background: rgba(7, 17, 31, .97); box-shadow: 0 1px 0 var(--thread);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav > a { font-family: var(--display); font-weight: 500; font-size: 1.5rem; padding: 8px 0; }
  .lang { margin-top: 14px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 120px 0 clamp(48px, 9vh, 96px); isolation: isolate; overflow: hidden;
  background: radial-gradient(60% 70% at 70% 45%, #10233B 0%, var(--night) 70%); }
.web-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(7,17,31,.92) 0%, rgba(7,17,31,0) 55%),
              linear-gradient(to right, rgba(7,17,31,.75) 0%, rgba(7,17,31,0) 60%); }
.hero-inner { position: relative; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }

.hero-title {
  font-family: var(--display); font-weight: 600; font-size: clamp(2.35rem, 6.4vw, 5.6rem);
  line-height: 1.02; letter-spacing: -.035em; margin: 0; max-width: 11.5ch; text-wrap: balance;
  background: linear-gradient(180deg, var(--silver-hi) 10%, var(--silver) 60%, #A2BBDF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { max-width: 46ch; margin: 28px 0 0; color: var(--silver); font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-hint { margin: 40px 0 0; font-size: .85rem; color: var(--mist); display: flex; align-items: center; gap: 10px; }
.hero-hint::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 4px rgba(244, 123, 32, .18); flex: none; }
@media (hover: none), (max-width: 820px) { .hero-hint { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
  border-radius: 999px; font-weight: 700; font-size: .98rem; text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn-primary { background: var(--lime); color: var(--night); }
.btn-primary:hover { background: #B8F02A; transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid rgba(195, 212, 236, .35); color: var(--silver-hi); }
.btn-ghost:hover { border-color: var(--silver); background: rgba(195, 212, 236, .06); }

.web-tip { position: absolute; z-index: 3; pointer-events: none; padding: 9px 14px 10px; border-radius: 10px;
  background: rgba(12, 26, 45, .92); border: 1px solid rgba(166, 228, 12, .45); white-space: nowrap;
  transform: translate(-50%, calc(-100% - 16px)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.web-tip.is-below { transform: translate(-50%, 18px); }
.web-tip strong { display: block; font-family: var(--display); font-weight: 500; font-size: .92rem; color: var(--silver-hi); }
.web-tip span { font-size: .78rem; color: var(--lime); }

/* ---------- sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section + .section::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  max-width: var(--wrap); margin: 0 auto; height: 1px; background: var(--thread); }
.section-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.08; letter-spacing: -.03em; margin: 0; color: var(--silver-hi); text-wrap: balance; }
.section-lead { color: var(--mist); font-size: 1.1rem; max-width: 44ch; margin: 22px 0 0; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-copy p { margin: 0 0 1.1em; max-width: 56ch; color: var(--text); }
.about-copy strong { font-weight: 700; color: var(--silver-hi); }
.values { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.values li { font-family: var(--display); font-weight: 400; font-size: .98rem; color: var(--silver); display: flex; align-items: center; }
.values li::before { content: ""; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%;
  border: 1.5px solid var(--lime); flex: none; }

/* services */
.services-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.services-head { position: sticky; top: 120px; }
.thread-list { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.thread-list::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(var(--lime), rgba(166, 228, 12, .15)); border-radius: 2px; }
.thread-list li { position: relative; padding: 0 0 38px; }
.thread-list li:last-child { padding-bottom: 0; }
.thread-list li::before { content: ""; position: absolute; left: -34px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--silver); box-shadow: 0 0 0 5px var(--night); }
.thread-list h3 { font-family: var(--display); font-weight: 500; font-size: 1.22rem; letter-spacing: -.01em; margin: 0 0 6px; color: var(--silver-hi); }
.thread-list p { margin: 0; color: var(--mist); max-width: 52ch; }

/* portfolio */
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 40px; margin-bottom: 44px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { background: none; border: 1px solid var(--thread); border-radius: 999px; padding: 8px 16px;
  font-weight: 600; font-size: .9rem; color: var(--silver); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: rgba(195, 212, 236, .4); }
.filters button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--night); }
.filters sup { font-size: .68em; font-weight: 700; opacity: .7; margin-left: 1px; }

.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--thread); }
.project { border-bottom: 1px solid var(--thread); }
.project[hidden] { display: none; }
.project a { position: relative; display: grid; grid-template-columns: clamp(126px, 14vw, 182px) minmax(0, 1fr) minmax(0, 9rem) minmax(0, 14rem);
  gap: 28px; align-items: center; padding: 20px 4px; text-decoration: none; }
.p-thumb { display: block; aspect-ratio: 600 / 440; /* screenshots taken at 1240x900 */ border-radius: 10px; overflow: hidden; background: var(--deep);
  box-shadow: 0 0 0 1px var(--thread); }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: saturate(.55) brightness(.82); transform: scale(1.001); transition: filter .45s var(--ease), transform .6s var(--ease); }
.project a:hover .p-thumb img, .project a:focus-visible .p-thumb img, .project.is-flash .p-thumb img { filter: none; transform: scale(1.04); }
.project a:hover .p-thumb, .project.is-flash .p-thumb { box-shadow: 0 0 0 1px rgba(166, 228, 12, .55); }
.p-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.project a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--lime);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.project a:hover::after, .project a:focus-visible::after, .project.is-flash a::after { transform: scaleX(1); }
.p-name { font-family: var(--display); font-weight: 500; font-size: clamp(1.15rem, 2vw, 1.55rem); letter-spacing: -.02em;
  color: var(--silver-hi); transition: color .25s; }
.project a:hover .p-name, .project.is-flash .p-name { color: var(--lime); }
.p-desc { color: var(--mist); font-size: .98rem; }
.p-cat { color: var(--mist); font-size: .85rem; }
.p-domain { font-size: .9rem; font-weight: 600; color: var(--silver); text-align: right; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .about-grid, .services-grid { grid-template-columns: 1fr; }
  .services-head { position: static; }
  .project a { grid-template-columns: 79px minmax(0, 1fr); gap: 4px 16px; padding: 16px 2px; align-items: start; }
  .p-thumb { grid-row: 1 / span 3; border-radius: 8px; }
  .p-text { grid-column: 2; }
  .p-cat { grid-column: 2; grid-row: 2; font-size: .8rem; }
  .p-domain { grid-column: 2; grid-row: 3; text-align: left; color: var(--lime); font-size: .85rem; }
}

/* client logos */
.clients { margin-top: clamp(72px, 9vw, 120px); }
.clients-title { margin: 0 0 clamp(32px, 4vw, 48px); }
.marquee { overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { --gap: clamp(48px, 6vw, 88px); list-style: none; margin: 0; padding: 0 var(--gap) 0 0;
  display: flex; align-items: center; gap: var(--gap); width: max-content;
  animation: marquee var(--marquee-duration, 60s) linear infinite; }
.marquee-track li { flex: none; }
.marquee-track img { display: block; max-width: none; opacity: .7; transition: opacity .3s; }
.marquee-track li:hover img { opacity: 1; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); row-gap: 32px; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* contact */
.contact { padding-bottom: calc(var(--section) * .8); }
.contact-inner { display: flex; flex-direction: column; align-items: flex-start; }
.contact-mail { position: relative; margin-top: 44px; font-family: var(--display); font-weight: 500;
  font-size: clamp(1.35rem, 5vw, 3.6rem); letter-spacing: -.03em; line-height: 1.1; text-decoration: none;
  color: var(--lime); overflow-wrap: anywhere; padding-bottom: 10px; }
.contact-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--lime);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.contact-mail:hover::after, .contact-mail:focus-visible::after { transform: scaleX(1); }
.contact-sign { margin: 22px 0 0; color: var(--mist); }

/* footer */
.site-footer { border-top: 1px solid var(--thread); padding: 44px 0 52px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner img { width: 190px; }
.footer-inner p { margin: 0; color: var(--mist); font-size: .9rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
