/* ==========================================================================
   Soulios Design Studio — styles
   ========================================================================== */

/* Archivo — SIL Open Font License 1.1 (self-hosted) */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.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: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-italic-latin.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;
}
/* Greek letters: Archivo has none, so they come from Roboto Flex (SIL OFL), under the same
   family name and the same descriptors, so every rule keeps working for Greek text too. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/robotoflex-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/robotoflex-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

:root {
  --ink: #000;
  --text: #0b0b0b;
  --paper: #fff;
  --muted: #8a8a8a;
  --rule: #4f4f4f;
  --footer: #0b0b0b;
  --error: #b3261e;
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-ui: 19px;
  --fs-body: 17.75px;
  --fs-h1: clamp(40px, 3.9vw, 75px);
  --fs-hero: clamp(28px, 3.96vw, 76px);
  --fs-lead: clamp(21px, 1.98vw, 38px);
  --fs-menu: clamp(50px, min(5.85vw, 13vh), 112px);

  --pad: 20px;
  --cursor: clamp(64px, 5.2vw, 100px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 400; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Scrollbar (as in the original site) */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #fff; box-shadow: inset 0 0 3px #dfdfdf; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #000; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #333; }
@supports (-moz-appearance: none) {
  html { scrollbar-width: thin; scrollbar-color: #000 #fff; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px; left: 10px;
  padding: 10px 16px;
  background: #000; color: #fff;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* --------------------------------------------------------------------------
   Cursor: only the circle — the system cursor (arrow, hand, text beam) never shows
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed;
  z-index: 2147483647;
  top: 0; left: 0;
  width: var(--cursor);
  height: var(--cursor);
  margin: calc(var(--cursor) / -2) 0 0 calc(var(--cursor) / -2);
  border-radius: 50%;
  background: #f1f1f1;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  will-change: transform;
}
.cursor.is-visible { opacity: 1; }

html.has-cursor,
html.has-cursor *,
html.has-cursor *::before,
html.has-cursor *::after { cursor: none !important; }
html.has-cursor ::-webkit-file-upload-button,
html.has-cursor ::file-selector-button { cursor: none !important; }

/* --------------------------------------------------------------------------
   Page wrapper + transitions
   -------------------------------------------------------------------------- */
.page {
  background: var(--paper);
  min-height: 100vh;
  animation: page-in .8s var(--ease) backwards;
}
@keyframes page-in { from { opacity: 0; } }

html.is-leaving .page,
html.is-leaving .menu-toggle {
  opacity: 0;
  transition: opacity .35s ease;
}

html.js img[data-reveal] { opacity: 0; transition: opacity 1s var(--ease); }
html.js img[data-reveal].is-loaded { opacity: 1; }

/* --------------------------------------------------------------------------
   Menu button (fixed, top centre)
   -------------------------------------------------------------------------- */
.menu-toggle {
  position: fixed;
  z-index: 1000;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  background: none;
  color: #fff;
  mix-blend-mode: difference;
  font-size: var(--fs-ui);
  line-height: 1.25;
  white-space: nowrap;
}
.menu-toggle__label {
  grid-area: 1 / 1;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.menu-toggle__label--brand,
.menu-toggle__label--close { opacity: 0; transform: translateY(55%); }

@media (hover: hover) {
  html:not(.menu-open) .menu-toggle:hover .menu-toggle__label--menu { opacity: 0; transform: translateY(-55%); }
  html:not(.menu-open) .menu-toggle:hover .menu-toggle__label--brand { opacity: 1; transform: none; }
}
html.menu-open .menu-toggle__label--menu { opacity: 0; transform: translateY(-55%); }
html.menu-open .menu-toggle__label--close { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Menu overlay: dark backdrop + white panel sliding down from the top
   -------------------------------------------------------------------------- */
.menu {
  position: fixed;
  z-index: 900;
  inset: 0;
  visibility: hidden;
  transition: visibility 0s linear .95s;
}
.menu.is-open { visibility: visible; transition-delay: 0s; }

.menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  opacity: 0;
  transition: opacity .6s ease .2s;
}
.menu.is-open .menu__backdrop { opacity: 1; transition-delay: 0s; }

.menu__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 72px 40px 70px 50px;
  overflow-y: auto;
  background: #fff;
  transform: translate3d(0, -101%, 0);
  transition: transform .85s var(--ease-io);
}
.menu.is-open .menu__panel { transform: none; transition-delay: .12s; }

.menu__nav { display: flex; flex-direction: column; align-items: flex-start; }
.menu__nav a {
  font-size: var(--fs-menu);
  line-height: 1;
  letter-spacing: -.005em;
  color: var(--ink);
}
/* Small hop on hover (as in the video): only the word moves, the link area stays put */
.menu__label {
  display: inline-block;
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
@media (hover: hover) {
  .menu__nav a:hover .menu__label { transform: translateY(-10px); }
}
.menu__nav a:focus-visible .menu__label { transform: translateY(-10px); }

/* Other text links drift a little towards the centre of the screen on hover.
   The direction (--nudge) is worked out in main.js from where the link sits. */
.link-text,
.project__more summary > span {
  display: inline-block;
  transition: transform .45s var(--ease);
}
@media (hover: hover) {
  a:hover > .link-text,
  .text-button:hover > .link-text,
  .project__more summary:hover > span { transform: translateX(var(--nudge, 0px)); }
}
a:focus-visible > .link-text,
.text-button:focus-visible > .link-text,
.project__more summary:focus-visible > span { transform: translateX(var(--nudge, 0px)); }

.menu__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-left: -10px;
  font-size: var(--fs-body);
  line-height: 2.25;
}
.menu__info ul { list-style: none; margin: 0; padding: 0; }
.menu__social { text-align: right; }

html.menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Home: hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
}
.hero__text {
  margin: 0;
  padding: 5vh 4vw 0 10.4vw;
  font-size: var(--fs-hero);
  font-stretch: 93%;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.008em;
  will-change: transform;
}
.hero__line { display: block; }
.hero__line + .hero__line { margin-top: .56em; }
.hero__line--wide { letter-spacing: .02em; word-spacing: .27em; }
.hero__text em { font-style: italic; letter-spacing: -.015em; }
/* Roboto Flex has no italic file: Greek italics use its slant axis instead */
em:lang(el) { font-variation-settings: "slnt" -10; }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  padding: 6px 12px;
  font-size: var(--fs-ui);
}

/* Home: projects grid */
.projects { padding: 4px 5px 5px; scroll-margin-top: 0; }
.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.tile__link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #efefef;
}
.tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile__img--hover { opacity: 0; transition: opacity .6s var(--ease); }
@media (hover: hover) {
  .tile__link:hover .tile__img--hover { opacity: 1; }
}
.tile__link:focus-visible { outline-color: #000; outline-offset: 2px; }
.tile__link:focus-visible .tile__img--hover { opacity: 1; }

/* --------------------------------------------------------------------------
   Project pages
   -------------------------------------------------------------------------- */
.project__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 48px;
  padding: 104px 25px 17px var(--pad);
}
.project__header--short { padding-top: 140px; }
.project__title {
  margin: 0 0 6px -2px;
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -.012em;
  word-spacing: .25em;
}
.project__desc { max-width: 1110px; }
.project__desc p { margin: 0; line-height: 1.72; }

.project__more { max-width: 1110px; margin-top: 2px; }
.project__more summary {
  display: inline-block;
  list-style: none;
  color: #2f6db3;
}
.project__more summary > span { text-decoration: underline; text-underline-offset: 3px; }
.project__more summary::-webkit-details-marker { display: none; }
.project__more .more-close,
.project__more[open] .more-open { display: none; }
.project__more[open] .more-close { display: inline-block; }
.project__more h2 { margin: 1.2em 0 .2em; font-size: var(--fs-ui); font-weight: 600; line-height: 1.3; }
.project__more p { margin: 0; line-height: 1.72; }

.project__meta { margin: 0; text-align: right; line-height: 2.2; white-space: nowrap; }
.project__meta dt { display: inline; font-weight: 700; }
.project__meta dd { display: inline; margin: 0; }

.media { margin: 0; }
.media img { width: 100%; height: auto; }
.media--video {
  display: flex;
  justify-content: center;
  padding: clamp(32px, 5vw, 96px) 0;
  background: #e8e8e8;
}
.media--video video {
  width: auto;
  height: min(86vh, 1000px);
  max-width: 100%;
  object-fit: contain;
  background: #e8e8e8;
}

/* --------------------------------------------------------------------------
   Headings and text blocks (About, Contact, Let's work)
   -------------------------------------------------------------------------- */
.heading {
  margin: 0 0 10px -2px;
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -.012em;
}
.heading--wide { letter-spacing: .01em; word-spacing: .25em; }
.lead { margin: 0; font-size: var(--fs-lead); line-height: 1.62; letter-spacing: -.008em; }
.lead + .lead { margin-top: .55em; }
.lead--tight { line-height: 1.05; max-width: 22.5em; }
/* Greek has accents above and long tails below: give the tight lines a little more room */
.lead--tight:lang(el) { line-height: 1.14; }
.lead--narrow { max-width: 23.5em; }
.lead a .link-text { text-decoration: underline; text-underline-offset: 4px; }

.about { padding: 190px var(--pad) 150px; }
.about__block + .about__block { margin-top: clamp(80px, 9vw, 170px); }

.contact { padding: 190px 0 140px; }
.contact__title { padding: 0 var(--pad); margin-bottom: 44px; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 50.6vw) minmax(0, 1fr);
  column-gap: 17vw;
  padding: 0 var(--pad) 0 25px;
}
.info-title { margin: 0 0 20px; font-size: var(--fs-ui); font-weight: 600; line-height: 1.3; }
.info-text { margin: 0 0 48px; font-size: 20px; line-height: 1.55; }
.info-links { list-style: none; margin: 0; padding: 0; line-height: 2.3; }

.brief { padding: 160px var(--pad) 130px; }
.brief__subtitle { margin: 6px 0 62px; }
.form--brief { max-width: 842px; margin-left: 10px; }

.not-found { min-height: 70vh; padding: 190px var(--pad) 160px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form { max-width: 971px; }

.field { min-width: 0; margin: 0 0 36px; padding: 0; border: 0; }
.field > label,
.field > .label,
.field > legend {
  display: block;
  margin: 0 0 20px;
  padding: 0;
  font-size: var(--fs-ui);
  font-weight: 600;
  line-height: 1.3;
}
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.field textarea {
  display: block;
  width: 100%;
  padding: 0 16px 21px;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  font-size: var(--fs-body);
  line-height: 1.4;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 6.2em; }
.field input:focus,
.field textarea:focus { border-bottom-color: #000; box-shadow: 0 1px 0 #000; }
::placeholder { color: var(--muted); opacity: 1; }

.field__error { margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: var(--error); }
.field__error:empty { display: none; }
.field.is-invalid input:not([type="checkbox"]):not([type="radio"]),
.field.is-invalid textarea { border-bottom-color: var(--error); box-shadow: 0 1px 0 var(--error); }

.field--check { margin-bottom: 24px; }
.field > label.check { display: flex; align-items: center; gap: 12px; margin: 0; font-size: var(--fs-body); font-weight: 400; line-height: 1.5; }
.check input { flex: none; width: 13px; height: 13px; margin: 0; accent-color: #000; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }
.choice span {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #000;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1.3;
  transition: background-color .25s ease, color .25s ease;
}
.choice input:checked + span { background: #000; color: #fff; }
.choice input:focus-visible + span { outline: 2px solid #000; outline-offset: 3px; }

.form__actions { display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 34px; }
.form__actions--split [data-step-next],
.form__actions--split [type="submit"] { margin-left: auto; }
.text-button {
  padding: 8px 0;
  border: 0;
  background: none;
  font-size: var(--fs-ui);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
.text-button--quiet { font-weight: 400; }
.form__status { margin: 18px 0 0; font-size: var(--fs-body); line-height: 1.5; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* Stepper (Let's work) */
.stepper {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 0 0 42px;
  padding: 0;
  list-style: none;
}
.stepper::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 30px;
  right: 30px;
  height: 1px;
  background: #c9c9c9;
}
.stepper__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 11px; }
.stepper__item:first-child { align-items: flex-start; }
.stepper__item:last-child { align-items: flex-end; }
.stepper__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid #000;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 18px #fff;
  font-size: 15px;
  line-height: 1;
  transition: background-color .35s ease, color .35s ease;
}
.stepper__label { font-size: var(--fs-body); line-height: 1.2; }
.stepper__item.is-active .stepper__num,
.stepper__item.is-done .stepper__num { background: #000; color: #fff; }
.step { min-width: 0; margin: 0; padding: 0; border: 0; }
.step.is-entering { animation: step-in .55s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(14px); } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { padding: 58px 19px 90px; background: var(--footer); color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 21.3%)) minmax(0, 1fr);
  align-items: start;
}
.footer__title { margin: 0 0 22px; font-size: var(--fs-ui); font-stretch: 88%; font-weight: 500; line-height: 1.3; }
.footer__list { list-style: none; margin: 0; padding: 0; color: #e8e8e8; font-size: 16px; font-stretch: 80%; line-height: 1.53; }

.footer__up { display: table; margin: 46px auto 0; padding: 4px 10px; font-size: var(--fs-ui); font-weight: 600; }
/* "Up" lifts a little on hover, with the same small hop as the menu items */
.footer__up .link-text { transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
@media (hover: hover) {
  .footer__up:hover .link-text { transform: translateY(-8px); }
}
.footer__up:focus-visible .link-text { transform: translateY(-8px); }
.footer__copy { margin: 2px 0 0; color: #e8e8e8; font-size: 12.5px; font-stretch: 92%; }
.footer__sep { margin: 0 .6em; opacity: .5; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .contact__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 8vw; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
}

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; row-gap: 56px; }
  .project__header { grid-template-columns: 1fr; }
  .project__meta { margin-top: 14px; text-align: left; line-height: 1.9; }
}

@media (max-width: 767px) {
  :root { --pad: 16px; --fs-body: 16px; --fs-ui: 17px; }
  .menu-toggle { top: 12px; }
  .menu__panel { padding: 72px 16px 40px; }
  .menu__info { flex-direction: column; align-items: flex-start; margin-left: 0; line-height: 2; }
  .menu__social { text-align: left; }
  .hero__text { padding: 0 var(--pad); }
  .hero__line--wide { letter-spacing: .03em; word-spacing: .08em; }
  .hero__scroll { bottom: 28px; }
  .projects { padding: 3px; }
  .grid { grid-template-columns: 1fr; gap: 6px; }
  .project__header,
  .project__header--short { padding: 96px var(--pad) 16px; }
  .about, .contact, .brief, .not-found { padding-top: 110px; }
  .contact__grid { padding: 0 var(--pad); }
  .info-text { font-size: 18px; }
  .form--brief { margin-left: 0; }
  .stepper::before { left: 16px; right: 16px; }
  .stepper__label { font-size: 13px; }
  .stepper__num { box-shadow: 0 0 0 8px #fff; }
  .footer { padding: 48px var(--pad) 56px; }
  .footer__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .footer__up { margin-top: 40px; }
}

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