@font-face {
  font-family: Geologica;
  src: url('../assets/fonts/geologica-greek.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 750;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: Geologica;
  src: url('../assets/fonts/geologica-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 750;
  font-display: swap;
  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 {
  --paper: #fbf9f6;
  --white: #fffdfb;
  --ink: #231d35;
  --muted: #5e566a;
  --iris: #5134b1;
  --iris-dark: #3e248d;
  --iris-wash: #eee7ff;
  --rule: #ded6e5;
  --plum: #25183d;
  --plum-text: #e2d7f2;
  --peach: #ffdbca;
  --gutter: clamp(1.25rem, 4.65vw, 4.5rem);
  --width: 80rem;
  --radius: 1rem;
  --font: "Geologica", system-ui, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.62, .04, .2, 1);
  --dur-1: .16s;
  --dur-2: .28s;
  --dur-3: .66s;
  --cols: minmax(0, 1.08fr) minmax(0, .92fr);
  --col-gap: clamp(2rem, 6vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  scrollbar-color: #a79ab5 var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font);
}

::selection { background: var(--iris-wash); color: var(--ink); }
:focus-visible { outline: 2px solid var(--iris); outline-offset: 4px; }
a { color: inherit; }
button, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }

.wrap { width: min(var(--width), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section-space { padding-block: clamp(3.75rem, 6.2vw, 5.75rem); }

/* One 3D layer for the whole page. It sits above the section colours and below the content,
   so the mark is never cut by a section edge. */
.scene {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}

html.is-live .scene { opacity: 1; }
main > section > .wrap, main > section.wrap, .site-footer > .wrap { position: relative; z-index: 2; }
.mark-slot { position: relative; min-width: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: .65rem;
  left: var(--gutter);
  padding: .65rem 1rem;
  transform: translateY(-160%);
  border-radius: .5rem;
  background: var(--white);
}

.skip-link:focus { transform: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.75rem;
}

/* Publicity obligations for the co-funded project: the three official logos are on screen when
   the site opens, at one shared scale. The funding section near the footer shows them full size. */
.funding-strip { position: relative; z-index: 3; border-bottom: 1px solid var(--rule); background: #fff; }

.funding-logos {
  container-type: inline-size;
  display: flex;
  align-items: center;
  gap: 0 clamp(.25rem, 1.5vw, 1rem);
  padding-block: .4rem;
}

/* One row at every width: the two halves share a height that lets both fit side by side. */
.funding-logos img { width: auto; height: min(3.25rem, calc((100cqi - 1rem) / 9.76)); }
.funding { border-top: 1px solid var(--rule); background: #fff; padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.funding-layout { display: grid; gap: 1.1rem; }
.funding h2 { font-size: clamp(1.15rem, 1.65vw, 1.45rem); font-weight: 620; line-height: 1.3; letter-spacing: -.022em; }
.funding-frame { width: min(100%, 44rem); height: auto; margin-inline-start: -1rem; }
/* Both descriptions are in the page; each language version shows its own. */
.funding-text p { max-width: 72ch; color: var(--muted); font-size: .95rem; }
html[lang="el"] .funding-text p[lang="en"], html:not([lang="el"]) .funding-text p[lang="el"] { display: none; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  font-size: 1.65rem;
  font-weight: 350;
  line-height: 1;
  letter-spacing: -.04em;
  text-decoration: none;
}

.wordmark { min-height: 2.75rem; }
.wordmark strong { font-weight: 730; }
.site-nav, .header-actions { display: flex; align-items: center; }
.site-nav { gap: clamp(1rem, 2.65vw, 2.5rem); }
.header-actions { gap: clamp(.75rem, 1.5vw, 1.35rem); }

.site-nav a {
  padding-block: .65rem;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 480;
  text-decoration: none;
}

.site-nav a {
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - .45rem) / 0 1.5px no-repeat;
  transition: color var(--dur-1) ease, background-size var(--dur-2) var(--ease-out);
}

.site-nav a:hover { color: var(--iris); background-size: 100% 1.5px; }
.site-nav .mobile-cta { display: none; }

.language { display: flex; gap: .1rem; border: 1px solid var(--rule); border-radius: .6rem; padding: .15rem; }

.language button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .15rem .35rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 570;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease;
}

.language button:hover { color: var(--iris); }
html:not(.js) .language, html:not(.js) .menu-toggle { display: none; }
.language button[aria-pressed="true"] { background: var(--iris-wash); color: var(--iris-dark); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  max-width: 100%;
  padding: .66rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  background: var(--iris);
  color: #fff;
  cursor: pointer;
  font-size: .96rem;
  font-weight: 580;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--dur-1) ease, transform var(--dur-1) var(--ease-out);
}

.button:hover { background: var(--iris-dark); }
.button:active { transform: translateY(1px) scale(.985); }
.button[aria-disabled="true"] { background: #72648c; cursor: wait; }
.header-cta { min-height: 2.75rem; font-size: .875rem; padding-inline: .92rem; }

.text-link {
  display: inline-block;
  padding-block: .65rem;
  width: fit-content;
  transition: text-decoration-color var(--dur-1) ease;
  color: var(--iris-dark);
  font-weight: 550;
  text-decoration-color: #a899c6;
  text-underline-offset: .3em;
}

.text-link:hover { text-decoration-color: currentColor; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 4.6vw, 4.25rem) clamp(3rem, 5.2vw, 4.75rem);
}

.hero-copy { min-width: 0; }
.hero h1 {
  font-size: clamp(2.75rem, 5.65vw, 5.75rem);
  font-weight: 660;
  line-height: 1.015;
  letter-spacing: -.04em;
}

.hero h1 em {
  display: block;
  max-width: 10ch;
  color: var(--iris);
  font-style: normal;
}

html[lang="el"] .hero h1 { font-size: clamp(2.45rem, 5vw, 5rem); }
html[lang="el"] .hero h1 em { max-width: 14ch; }
.hero-copy > p { max-width: 43ch; margin-top: 1.6rem; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; margin-top: 1.7rem; }

.hero-brand { container-type: inline-size; display: grid; justify-items: center; min-width: 0; }

/* Under the big mark the wordmark opens from its centre, so it stays under the mark. */
.brand-wordmark { color: var(--ink); font-size: min(3rem, 12.2cqi); font-weight: 350; line-height: 1.15; letter-spacing: -.04em; }
.brand-note { margin-top: .35rem; color: var(--iris-dark); font-size: clamp(1.05rem, 1.45vw, 1.3rem); font-weight: 480; letter-spacing: -.015em; line-height: 1.35; text-align: center; text-wrap: balance; }
.wm--center .wm-head { transition: transform var(--dur-3) var(--ease-inout); }
.wm.wm--center.is-open .wm-head { transform: translateX(calc(var(--shift, 0px) / -2)); }
.wm.wm--center.is-open .wm-ally { transform: translateX(calc(var(--shift, 0px) / 2)); }

.hero .mark-slot {
  display: grid;
  place-items: center;
  width: min(100%, 25rem);
  aspect-ratio: 1;
}

.hero .mark-slot::after {
  content: "";
  position: absolute;
  inset: auto 20% 5% 16%;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(37 24 61 / .26), transparent);
  filter: blur(7px);
  opacity: var(--presence, 1);
}

.mark-poster { width: 56%; height: auto; transition: opacity .5s var(--ease-out); }
html.is-live .mark-poster { opacity: 0; }

/* The animated wordmark: in the header where there is room, above the headline on a phone. */
.wm { display: inline-flex; align-items: baseline; white-space: nowrap; }
.wm-head { position: relative; display: inline-block; }
.wm-ally { font-weight: 730; transition: transform var(--dur-3) var(--ease-inout); }
.wm.is-open .wm-ally { transform: translateX(var(--shift, 0px)); }
.wm-ins { position: absolute; top: 0; left: 100%; padding-inline-end: .26em; color: #7960c6; font-weight: 300; }

.wm-ins .l {
  display: inline-block;
  opacity: 0;
  transform: translateY(.2em);
  transition: opacity .16s linear, transform .16s ease-in;
}

.wm.is-open .wm-ins .l {
  opacity: 1;
  transform: none;
  transition: opacity .2s linear var(--at, .3s), transform .45s var(--ease-out) var(--at, .3s);
}

.wm.is-setting, .wm.is-setting * { transition: none !important; }
/* A header too crowded for the longest phrase hands the animation to the line above the headline. */
html.wordmark-in-hero .hero-copy > .hero-wordmark { display: block; }

.hero-copy > .hero-wordmark {
  display: none;
  max-width: none;
  margin: 0 0 .7rem;
  color: var(--ink);
  font-size: clamp(1.5rem, 8.4vw, 2.1rem);
  font-weight: 350;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.section-heading h2 {
  max-width: 21ch;
  font-size: clamp(2.15rem, 4.1vw, 4rem);
  font-weight: 635;
  line-height: 1.08;
  letter-spacing: -.037em;
  text-wrap: balance;
}

.section-heading > p { max-width: 53ch; margin-top: 1rem; color: var(--muted); }

.services { background: var(--iris-wash); }

/* The list reads down the left; the shape for the active service has the whole right column,
   so nothing crosses the text on its way in from the hero. */
.services > .wrap { display: grid; grid-template-columns: var(--cols); column-gap: var(--col-gap); }
.services-heading { grid-column: 1; }
.services-heading > p { max-width: 40ch; }
.services-body { display: contents; }
.service-grid { display: grid; grid-column: 1; margin: clamp(1.75rem, 3.2vw, 2.75rem) 0 0; padding: 0; list-style: none; }
.product-invitation { grid-column: 1 / -1; }

.service-grid li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  align-content: start;
  gap: .9rem;
  padding-block: 1.2rem 1.35rem;
  border-top: 1px solid #cebedf;
}

.service-grid svg {
  box-sizing: content-box;
  width: 1.6rem;
  height: 1.6rem;
  padding: .55rem;
  border-radius: .7rem;
  color: var(--iris);
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease;
}

.service-grid h3, .steps h3 { font-size: clamp(1.15rem, 1.65vw, 1.45rem); font-weight: 620; line-height: 1.3; letter-spacing: -.022em; }
.service-grid h3 { margin-top: .45rem; transition: color var(--dur-2) ease; }
.service-grid p, .steps p { max-width: 48ch; margin-top: .45rem; color: var(--muted); }
.service-grid li.is-active svg { background: var(--iris); color: #fff; }
.service-grid li.is-active h3 { color: var(--iris-dark); }

.service-visual { display: grid; grid-column: 2; grid-row: 1 / span 2; grid-template-rows: minmax(0, 1fr) auto; min-height: 21rem; }
.service-visual .mark-slot { display: grid; place-items: center; min-height: 15rem; }
.service-fallback { color: var(--iris); transition: opacity .4s ease; }
.service-fallback svg { display: block; width: 7rem; height: 7rem; stroke-width: .9; }
html.is-live .service-fallback { opacity: 0; }
.service-caption { min-height: 1.6em; color: var(--iris-dark); font-size: .95rem; font-weight: 570; text-align: center; }
html:not(.js) .service-visual { display: none; }
html:not(.js) .service-grid { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--col-gap); }
html:not(.js) .services-heading { grid-column: 1 / -1; }

.product-invitation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem 2rem;
  margin-top: clamp(1.3rem, 3vw, 2.75rem);
  padding: clamp(1.2rem, 3.2vw, 2.3rem);
  border-radius: var(--radius);
  background: #f9e6db;
}

.product-invitation h3 { font-size: clamp(1.28rem, 2.1vw, 1.8rem); font-weight: 620; line-height: 1.25; letter-spacing: -.025em; }
.product-invitation p { max-width: 60ch; margin-top: .45rem; color: var(--muted); }
.invitation-button { background: var(--white); color: var(--iris-dark); border-color: #8e78b9; }
.invitation-button:hover { background: var(--iris-wash); }

.examples { background: var(--plum); color: var(--white); }
.examples .section-heading p, .example-copy p { color: var(--plum-text); }
.examples .section-heading h2 { max-width: 24ch; }
.examples :focus-visible { outline-color: var(--peach); }

.example-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .5rem;
  margin-top: 2.15rem;
  border-bottom: 1px solid #685978;
}

.example-tabs button {
  min-height: 2.75rem;
  padding: .6rem .8rem .75rem;
  border: 0;
  background: transparent;
  color: #b9aacd;
  cursor: pointer;
  font-size: .93rem;
  font-weight: 530;
  text-align: left;
  transition: color var(--dur-1) ease;
}

.example-tabs button:first-child { padding-inline-start: .15rem; }
.example-tabs button:hover { color: #fff; }
.example-tabs button[aria-selected="true"] { color: var(--peach); }

.tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--peach);
  transform-origin: 0 0;
  transform: translate(var(--x, 0px), var(--y, 0px)) scaleX(var(--w, 0));
  transition: transform var(--dur-2) var(--ease-out);
}

.tab-indicator.is-setting { transition: none; }

.example {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 6vw, 6rem);
  margin-top: 2rem;
}

.example-copy h3 {
  max-width: 18ch;
  font-size: clamp(1.6rem, 2.75vw, 2.65rem);
  font-weight: 570;
  letter-spacing: -.031em;
  line-height: 1.15;
  text-wrap: balance;
}

.example-copy p { max-width: 43ch; margin-top: .9rem; }

@media (prefers-reduced-motion: no-preference) {
  .example:not([hidden]) { animation: panel-in .5s var(--ease-out) backwards; }
  .demo.is-playing .demo-label { animation: fade-in .4s ease .1s backwards; }
  .demo.is-playing .demo-rows > * { animation: row-in .55s var(--ease-out) backwards; }
  .demo.is-playing .demo-rows > :nth-child(1) { animation-delay: .3s; }
  .demo.is-playing .demo-rows > :nth-child(2) { animation-delay: .75s; }
  .demo.is-playing .demo-status, .demo.is-playing .demo-rows dd { animation: chip-in .4s var(--ease-out) backwards; }
  .demo.is-playing .demo-rows > :nth-child(1) :is(.demo-status, dd) { animation-delay: .65s; }
  .demo.is-playing .demo-rows > :nth-child(2) :is(.demo-status, dd) { animation-delay: 1.1s; }
  .demo.is-playing .workflow li { animation: step-on .5s var(--ease-out) backwards; }
  .demo.is-playing .workflow li:nth-child(1) { animation-delay: .3s; }
  .demo.is-playing .workflow li:nth-child(2) { animation-delay: .95s; }
  .demo.is-playing .workflow li:nth-child(3) { animation-delay: 1.6s; }
  .demo.is-playing .workflow::after { animation: rail 2.1s linear .3s both; }
}

@keyframes panel-in { from { opacity: 0; transform: translateY(.6rem); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes row-in { from { opacity: 0; transform: translateX(-.7rem); } }
@keyframes chip-in { from { opacity: 0; transform: scale(.86); } }
@keyframes step-on { from { background: var(--paper); border-top-color: var(--rule); color: #a79ab5; transform: translateY(.35rem); } }
@keyframes rail { from { opacity: 1; transform: scaleX(0); } 80% { opacity: 1; transform: none; } to { opacity: 0; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(.9rem); } }

.demo {
  overflow: hidden;
  min-height: 14rem;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  line-height: 1.4;
}

.demo-top {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 3.35rem;
  padding: .55rem clamp(.85rem, 2.3vw, 1.5rem);
  background: var(--iris-wash);
  color: var(--iris-dark);
  font-size: .9rem;
  font-weight: 610;
}

.demo-orders .demo-top { background: var(--peach); color: #692d22; }
.demo-crm .demo-top { background: #def0e6; color: #1e573d; }
.demo-body { padding: 1.15rem clamp(.85rem, 2.3vw, 1.5rem) 1.35rem; }
.demo-label { margin-bottom: .6rem; font-size: 1.08rem; font-weight: 650; }
.demo-rows { margin: 0; padding: 0; list-style: none; }
.demo-rows li, .demo-rows div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .3rem 1rem;
  padding-block: .57rem;
  border-top: 1px solid var(--rule);
  font-size: .9rem;
}

.demo-rows dd { margin: 0; color: var(--muted); }
.demo-status { padding: .24rem .5rem; border-radius: .35rem; font-size: .875rem; }
.status-active { background: var(--iris-wash); color: var(--iris-dark); }
.status-done { background: #def0e6; color: #1e573d; }

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin: .85rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow;
  position: relative;
}

.workflow::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: #c9573f;
  transform-origin: 0 50%;
  opacity: 0;
}

.workflow li {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .4rem;
  min-width: 0;
  padding: .6rem;
  border-top: 1px solid #e3b39e;
  background: #fff1e9;
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.workflow li::before {
  content: counter(workflow);
  counter-increment: workflow;
  color: #792f24;
  font-weight: 650;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.35rem, 4vw, 3.8rem);
  margin: 2.65rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li { border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.steps li::before {
  content: counter(steps);
  counter-increment: steps;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin-bottom: .9rem;
  border-radius: 50%;
  background: var(--iris-wash);
  color: var(--iris-dark);
  font-size: .9rem;
  font-weight: 630;
}

html.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .6s ease, transform .75s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

html.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }
@media print { html.reveal-on [data-reveal] { opacity: 1; transform: none; } .scene { display: none; } }

.contact { background: #f9e6db; }
.contact-slot { width: min(100%, 16rem); aspect-ratio: 1; margin-top: 1rem; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.contact-heading .contact-note { margin-top: 1.6rem; color: #65463d; font-size: .95rem; }
.contact-note a { color: var(--iris-dark); font-weight: 570; text-underline-offset: .3em; }
.brief { padding: clamp(1.15rem, 3vw, 2rem); border-radius: var(--radius); background: var(--white); }
.brief fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.brief legend, .brief-label { padding: 0; font-size: 1.06rem; font-weight: 620; }
.brief-options { display: flex; flex-wrap: wrap; gap: .48rem; margin-top: .65rem; }
.brief-options label { position: relative; display: inline-flex; max-width: 100%; cursor: pointer; }

.brief-options input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.brief-options span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .35rem .75rem;
  border: 1px solid #9587a1;
  border-radius: .55rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
  transition: background-color var(--dur-1) ease, border-color var(--dur-1) ease, color var(--dur-1) ease, transform var(--dur-1) var(--ease-out);
}

.brief-options label:hover span { border-color: #8e78b9; }
.brief-options label:active span { transform: scale(.97); }
.brief-options input:checked + span { border-color: var(--iris); background: var(--iris-wash); color: var(--iris-dark); }
.brief-options input:focus-visible + span { outline: 2px solid var(--iris); outline-offset: 3px; }

.brief-label { display: block; margin-top: 1.3rem; }
.field-hint, .brief-status { color: var(--muted); font-size: .875rem; }
.brief textarea {
  display: block;
  width: 100%;
  min-height: 6rem;
  margin-top: .5rem;
  padding: .7rem .8rem;
  resize: vertical;
  border: 1px solid #90839d;
  border-radius: .55rem;
  background: var(--paper);
  color: var(--ink);
  caret-color: var(--iris);
  transition: border-color var(--dur-1) ease;
}

.brief textarea:hover { border-color: var(--iris); }

.brief-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin-top: 1.05rem; }
.brief-status:not(:empty) { margin-top: .75rem; animation: rise .35s var(--ease-out) backwards; }
.brief-status[data-state="error"] { color: #882e25; }
.brief-status[data-state="copied"], .brief-status[data-state="sent"] { color: #275843; }

/* The footer closes the page on the plum of the examples section: who is behind Devally, where
   everything is, how to reach us, and the details a business site has to show. */
.site-footer { background: var(--plum); color: var(--plum-text); }
.site-footer :focus-visible { outline-color: var(--peach); }
.site-footer a { color: inherit; text-decoration: none; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.25rem clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.75rem, 5vw, 4.25rem) clamp(2rem, 3.5vw, 3rem);
}

.only-phone { display: none; }
.footer-brand .wordmark { color: var(--white); font-size: 1.85rem; }
.footer-slogan { margin-top: .9rem; color: var(--peach); font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 480; letter-spacing: -.02em; line-height: 1.3; }
.footer-about { max-width: 34ch; margin-top: 1rem; font-size: .95rem; }
.footer-about strong { display: block; color: var(--white); font-weight: 600; }
.footer-column h2 { color: var(--white); font-size: .95rem; font-weight: 620; line-height: 1.4; }
.footer-column ul { margin: .55rem 0 0; padding: 0; list-style: none; }

.footer-column li a, .footer-mail {
  display: inline-block;
  padding-block: .42rem;
  font-size: .95rem;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - .3rem) / 0 1px no-repeat;
  transition: color var(--dur-1) ease, background-size var(--dur-2) var(--ease-out);
}

.footer-column li a:hover, .footer-mail:hover { color: var(--white); background-size: 100% 1px; }
.footer-column address { display: grid; justify-items: start; margin-top: .55rem; font-size: .95rem; font-style: normal; line-height: 1.6; }
.footer-mail { color: var(--peach); font-weight: 560; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3rem 2rem;
  padding-block: 1.2rem 1.6rem;
  border-top: 1px solid #4a3a63;
  color: #b9aacd;
  font-size: .875rem;
}

.footer-ids { display: flex; flex-wrap: wrap; gap: 0 .45rem; }
.footer-ids span + span::before { content: "· "; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-brand { animation: rise .8s var(--ease-out) backwards; }
  .hero-copy > h1 + p { animation-delay: .08s; }
  .hero-actions { animation-delay: .16s; }
  .hero-brand { animation-delay: .12s; }
}

.menu-toggle { display: none; }
.menu-toggle path { transform-box: fill-box; transform-origin: center; transition: transform var(--dur-2) var(--ease-out); }
.menu-toggle[aria-expanded="true"] .bar-a { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar-b { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 64rem) {
  html.js .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .55rem var(--gutter);
    border-bottom: 1px solid var(--rule);
    background: var(--paper);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-.5rem);
    transition: opacity var(--dur-1) ease, transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  }

  html.js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  html.js .site-nav a { padding-block: .72rem; background-position-y: calc(100% - .5rem); border-radius: .4rem; outline-offset: -2px; }
  html.js .site-nav a:hover { background-size: 0 1.5px; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .6rem; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
  html.js .header-inner { min-height: 4.25rem; }
  html.js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    min-height: 2.75rem;
    padding: .25rem .45rem;
    border: 0;
    border-radius: .4rem;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: .875rem;
  }
}

@media (max-width: 47rem) {
  /* On a phone the mark, its wordmark and the slogan open the page, above the headline. */
  .hero { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-top: 1.25rem; }
  .hero-brand { order: -1; }
  .hero h1 { font-size: clamp(2.65rem, 9vw, 4.5rem); }
  html[lang="el"] .hero h1 { font-size: clamp(2.35rem, 8.2vw, 4rem); }
  .hero h1 em, html[lang="el"] .hero h1 em { max-width: 100%; }
  .hero h1 em { text-wrap: balance; }
  .hero-copy > p { margin-top: 1.1rem; }
  .hero-actions { margin-top: 1.1rem; }
  .hero .mark-slot { width: min(100%, 10.5rem); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .services > .wrap, .contact-layout, .example { grid-template-columns: minmax(0, 1fr); }
  .funding-frame { margin-inline-start: -.5rem; }
  .service-visual { grid-column: 1; grid-row: auto; order: -1; min-height: 0; margin-bottom: 1.5rem; }
  .service-visual .mark-slot { min-height: 13rem; }
  .contact-slot { display: none; }
  .section-heading h2, .example-copy h3 { text-wrap: pretty; }
  .example-copy h3 { max-width: 25ch; }
  .header-cta { display: none; }
  .site-nav .mobile-cta { display: inline-flex; color: var(--iris-dark); font-weight: 600; }
}

@media (max-width: 37rem) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  /* Phone footer: the brand on top, then two columns (site links, contact) and the legal rows.
     The four service links collapse into one, since they all lead to the same section. */
  .footer-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.25rem 1rem; padding-block: 1.7rem 1.2rem; }
  .footer-brand { grid-column: 1 / -1; padding-bottom: 1.1rem; border-bottom: 1px solid #4a3a63; }
  .footer-column[aria-labelledby="footer-services"] { display: none; }
  .only-phone { display: list-item; }
  .footer-column ul, .footer-column address { margin-top: .25rem; }

  /* Phone scale: smaller type and tighter spacing, so the page reads at arm's length and
     takes less scrolling. Tap targets keep their size. */
  body { font-size: .9375rem; line-height: 1.55; }
  .header-inner, html.js .header-inner { min-height: 3.75rem; }
  .section-space { padding-block: 2.2rem; }
  .hero { gap: 1rem; padding-block: .9rem 2.1rem; }
  .hero .mark-slot { width: 8.5rem; }
  .brand-wordmark { font-size: min(2.2rem, 10.4cqi); }
  .brand-note { margin-top: .15rem; font-size: 1rem; }
  .hero h1 { font-size: clamp(1.9rem, 8.2vw, 2.6rem); }
  html[lang="el"] .hero h1 { font-size: clamp(1.75rem, 7.6vw, 2.4rem); }
  .hero-copy > p { margin-top: .75rem; font-size: .95rem; }
  .hero-actions { margin-top: .95rem; }
  .button { min-height: 2.9rem; font-size: .92rem; }
  .section-heading h2 { font-size: 1.7rem; }
  .section-heading > p { margin-top: .6rem; }
  .service-visual { margin-bottom: .9rem; }
  .service-visual .mark-slot { min-height: 10rem; }
  .service-grid { margin-top: 1rem; }
  .service-grid li { grid-template-columns: 2.35rem minmax(0, 1fr); gap: .7rem; padding-block: .8rem .9rem; }
  .service-grid svg { width: 1.3rem; height: 1.3rem; padding: .5rem; }
  .service-grid h3, .steps h3 { font-size: 1.05rem; }
  .service-grid h3 { margin-top: .3rem; }
  .service-grid p, .steps p { margin-top: .25rem; font-size: .9rem; }
  .product-invitation { margin-top: 1.25rem; padding: 1rem; }
  .product-invitation h3 { font-size: 1.15rem; }
  .product-invitation p { font-size: .9rem; }
  .example-tabs { margin-top: 1.3rem; }
  .example { gap: 1.1rem; margin-top: 1.2rem; }
  .example-copy h3 { font-size: 1.35rem; }
  .example-copy p { margin-top: .55rem; font-size: .92rem; }
  .demo { min-height: 0; }
  .demo-top { min-height: 2.75rem; }
  .demo-body { padding-block: .85rem 1rem; }
  .steps { margin-top: 1.3rem; gap: .9rem; }
  .steps li { display: grid; grid-template-columns: 1.85rem minmax(0, 1fr); column-gap: .7rem; padding-top: .8rem; }
  .steps li::before { grid-row: 1 / span 2; width: 1.85rem; height: 1.85rem; margin: 0; }
  .contact-layout { gap: 1.4rem; }
  .contact-heading .contact-note { margin-top: .9rem; }
  .brief { padding: 1rem; }
  .brief-label { margin-top: 1rem; }
  .brief textarea { min-height: 5rem; }
  .funding { padding-block: 1.1rem; }
  .funding-layout { gap: .5rem; }
  .funding h2 { font-size: .9rem; }
  .funding-text p { font-size: .75rem; line-height: 1.45; }
  .footer-brand .wordmark { font-size: 1.5rem; }
  .footer-brand .wordmark img { width: 1.75rem; height: auto; }
  .footer-slogan { margin-top: .3rem; font-size: 1.05rem; }
  .footer-about { max-width: none; margin-top: .5rem; font-size: .9rem; }
  .footer-column h2 { font-size: .9rem; }
  .footer-column li a, .footer-mail { padding-block: .3rem; font-size: .9rem; }
  .footer-column address { font-size: .9rem; }
  .footer-legal { display: grid; gap: .15rem; padding-block: .8rem 1.1rem; font-size: .8125rem; }
  .footer-ids { display: grid; gap: .15rem; }
  .footer-ids span + span::before { content: none; }
  .steps { margin-top: 1.9rem; gap: 1.2rem; }
  .steps li { padding-top: .9rem; }
  .steps li::before { margin-bottom: .65rem; }
  .example-tabs { gap: .15rem .25rem; }
  .example-tabs button { padding-inline: .45rem; font-size: .875rem; }
}

@media (max-width: 23rem) {
  .header-inner { gap: .5rem; }
  .header-actions { gap: .25rem; }
  .wordmark { font-size: 1.3rem; gap: .35rem; }
  .wordmark img { width: 1.5rem; height: auto; }
  .language button { min-width: 2.5rem; }
  .menu-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .brief-status { animation: none; }
}

@media (forced-colors: active) {
  .brief-options input:checked + span, .example-tabs button[aria-selected="true"], .language button[aria-pressed="true"] { border: 2px solid Highlight; }
  .tab-indicator { background: Highlight; }
}
