:root {
  color-scheme: light;
  --bg: #fafaf7;
  --fg: #141414;
  --muted: #5e5e5e;
  --line: #e4e2dc;
  --card: #ffffff;
  --link: #0b57d0;
}
body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: "Inter Tight", "GT America", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  line-height: 1.65;
  font-size: 1.06em;
}
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px clamp(20px, 6vw, 48px) 64px;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 18px;
  font-size: 0.9em;
}
nav a {
  color: var(--muted);
}
nav .brand {
  color: var(--fg);
  font-weight: 600;
  margin-right: auto;
}
/* Language switch: the flag and the language's own name, on phones only the code. */
nav .lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border: 1px solid var(--fg);
  border-radius: 20px;
  color: var(--fg);
  font-weight: 500;
}
nav .lang:hover {
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}
nav .lang .short {
  display: none;
}
.flag {
  flex: none;
  width: 20px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
/* Shown by lang.js only to visitors whose browser points to the other language. */
.lang-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 40px 8px 12px;
  position: relative;
  background: #eaf1fd;
  border-radius: 10px;
  font-size: 0.9em;
}
.lang-hint[hidden] {
  display: none;
}
.lang-hint a {
  font-weight: 600;
}
.lang-hint-close {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.2em;
  color: var(--muted);
  cursor: pointer;
}
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 55%;
  border-radius: 12px;
}
.kicker {
  color: var(--muted);
  margin: 0 0 8px;
}
h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  line-height: 1.05;
}
.lead {
  font-size: clamp(1.08rem, 2.1vw, 1.25rem);
  font-weight: 300;
  line-height: 1.45;
  margin: 0 0 28px;
}
.hero .lead {
  margin-bottom: 16px;
}
.hero .lead:last-of-type {
  margin-bottom: 28px;
}
/* Links under the intro paragraphs: on their own line, so they read as actions, not as text. */
.hero .lead .go {
  display: block;
  width: fit-content;
  margin-top: 8px;
  font-size: 0.8em;
  font-weight: 500;
}
.hero .lead .go::after {
  content: " →";
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.15s;
}
.hero .lead .go:hover::after {
  transform: translateX(3px);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-block;
  border: 1px solid var(--fg);
  color: var(--fg);
  background: none;
  font: inherit;
  font-size: 0.95em;
  padding: 8px 20px;
  border-radius: 40px;
  cursor: pointer;
}
.btn.primary {
  background: var(--fg);
  color: var(--bg);
}
.btn:hover {
  text-decoration: none;
  background: #ecebe6;
  color: var(--fg);
}
section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.sub {
  color: var(--muted);
  margin: -16px 0 32px;
  max-width: 720px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h3 {
  font-size: 1.2em;
  font-weight: 600;
  margin: 0;
}
.card p {
  margin: 0;
}
.card .btn {
  align-self: flex-start;
  margin-top: auto;
}
.ideas .card p.big {
  font-size: 1.1em;
  font-weight: 500;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}
.item .when {
  color: var(--muted);
}
.item h3 {
  margin: 0 0 4px;
  font-size: 1.15em;
}
.item p {
  margin: 0;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 36px;
  margin-top: 16px;
}
.logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: multiply;
  opacity: 0.8;
}
.logos img.short {
  height: 28px;
}
.logos img.tall {
  height: 76px;
  margin: -18px 0;
}
.press {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px 24px;
}
.press li {
  padding: 8px 0;
}
.src {
  display: block;
  color: var(--muted);
  font-size: 0.85em;
}
.more {
  margin-top: 24px;
}
.contact {
  border-bottom: none;
}
.contact p {
  max-width: 720px;
  margin: 0 0 24px;
}
footer {
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.85em;
}
footer a {
  color: var(--muted);
}
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }
  .hero img {
    max-width: 240px;
  }
  .item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.social-mini {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
/* Write-to-me button left, social icons right, on one row while they fit. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hero-actions .social-mini {
  margin-top: 0;
}
.social-mini a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  display: grid;
  place-items: center;
}
.social-mini a:hover {
  color: #fff;
  border-color: transparent;
}
.social-mini a.li:hover {
  background: #0a66c2;
}
.social-mini a.ig:hover {
  background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888);
}
.social-mini a.fb:hover {
  background: #0866ff;
}
.social-mini svg {
  width: 18px;
  height: 18px;
}
.social {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.soc {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  color: var(--fg);
  transition: transform 0.15s, box-shadow 0.15s;
}
.soc:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.soc .ico {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
}
.soc .ico svg {
  width: 26px;
  height: 26px;
}
.soc.li .ico {
  background: #0a66c2;
}
.soc.ig .ico {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}
.soc.fb .ico {
  background: #0866ff;
}
.soc .txt {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.soc .txt span {
  color: var(--muted);
  font-size: 0.9em;
}
.soc .follow {
  margin-left: auto;
  flex: none;
  font-size: 0.9em;
  font-weight: 500;
  color: #fff;
  padding: 6px 16px;
  border-radius: 40px;
}
.soc.li .follow {
  background: #0a66c2;
}
.soc.ig .follow {
  background: #dc2743;
}
.soc.fb .follow {
  background: #0866ff;
}
/* The latest posts from Facebook, Instagram and LinkedIn above the follow buttons, filled in by
   posts.js. A carousel that starts at the text's left edge and runs to the edge of the screen, so a
   wide display shows more cards. Back and forward buttons under it, swiping on a phone. A card: the
   network's logo, name and date on top, the picture if there is one, the text, a link to the network
   at the bottom. All cards have one height and the text fills what is left, fading out at the end. */
.feed {
  --gutter: 0px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(290px, 23vw, 380px);
  gap: 16px;
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar {
  display: none;
}
.feed[hidden],
.feed-nav[hidden] {
  display: none;
}
.feed-post {
  display: flex;
  flex-direction: column;
  height: 480px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  color: var(--fg);
  transition: border-color 0.15s;
}
.feed-post:hover {
  text-decoration: none;
  border-color: #c9c5bc;
}
.feed-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 0.88em;
}
.feed-head svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.feed-post.facebook .feed-head svg {
  color: #0866ff;
}
.feed-post.instagram .feed-head svg {
  color: #dc2743;
}
.feed-post.linkedin .feed-head svg {
  color: #0a66c2;
}
.feed-head strong {
  font-weight: 600;
}
.feed-date {
  margin-left: auto;
  color: var(--muted);
}
.feed-pic {
  position: relative;
  display: block;
  background: var(--line);
}
.feed-pic img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 30%;
}
.feed-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}
.feed-play svg {
  width: 18px;
  height: 18px;
}
.feed-pic {
  flex: none;
}
.feed-text {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  margin: 14px 16px 0;
  font-size: 0.95em;
  line-height: 1.5;
  white-space: pre-line;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3em), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 3em), transparent);
}
/* Without a picture the text is the post, a little larger. */
.feed-post.no-pic .feed-text {
  margin-top: 0;
  font-size: 1em;
}
.feed-open {
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 0.85em;
  font-weight: 500;
}
.feed-post:hover .feed-open {
  color: var(--link);
}
.feed-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 12px 0 16px;
}
.feed-nav button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: 1.3em;
  line-height: 1;
  cursor: pointer;
}
.feed-nav button:hover:not(:disabled) {
  border-color: #c9c5bc;
}
.feed-nav button:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (max-width: 560px) {
  .feed {
    grid-auto-columns: 84%;
    gap: 12px;
  }
  .feed-post {
    height: 460px;
  }
  .feed-nav {
    display: none;
  }
  .feed + .feed-nav + .social {
    margin-top: 16px;
  }
}
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.contact-form .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9em;
  font-weight: 500;
}
.contact-form label .opt {
  color: var(--muted);
  font-weight: 400;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}
.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: -1px;
}
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form .form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.contact-form .fine {
  margin: 0;
  color: var(--muted);
  font-size: 0.85em;
}
.contact-form .fine a {
  color: var(--muted);
  text-decoration: underline;
}
.contact-form .form-status {
  margin: 0;
  font-size: 0.9em;
}
.contact-form .form-status:empty {
  display: none;
}
.contact-form .form-status.error {
  color: #b3261e;
}
.contact-form .form-done {
  margin: 0;
  font-size: 1.1em;
}
/* The newsletter box under the follow buttons: the contact form's look, with its own title and line. */
.newsletter {
  margin-top: 24px;
}
.newsletter h3 {
  margin: 0;
  font-size: 1.15em;
}
.newsletter .nl-lead {
  margin: -8px 0 0;
  line-height: 1.55;
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
/* Press: thumbnail, outlet and date, title, one line on what the piece is. Opens in a new tab. */
.press-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.press-list li {
  display: grid;
  grid-template-columns: clamp(140px, 22vw, 200px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.press-list li:first-child {
  border-top: none;
  padding-top: 0;
}
.press-list img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
}
.press-meta {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.press-t {
  display: block;
  color: var(--fg);
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.3;
}
.press-t:hover {
  color: var(--link);
  text-decoration: none;
}
.press-d {
  display: block;
  margin-top: 6px;
  font-size: 0.95em;
  line-height: 1.55;
}
@media (max-width: 560px) {
  .press-list li {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.press-open {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 40px;
  background: #ecebe6;
  color: var(--fg);
  font-size: 0.82em;
  font-weight: 500;
}
.press-open:hover {
  background: #e0ded7;
  text-decoration: none;
}
/* "Vezi mai multe" under the press list expands the rest in place. */
.press-more summary {
  list-style: none;
  margin-top: 8px;
}
.press-more summary::-webkit-details-marker {
  display: none;
}
.press-more[open] > summary .closed,
.press-more:not([open]) > summary .open {
  display: none;
}
.press-more > .press-list {
  margin-top: 24px;
}
.press-more .press-more {
  margin-top: 8px;
}
.logos.partners img {
  height: 34px;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: 0.75;
}
/* Despre mine: a timeline like a LinkedIn profile. A rail with a dot per entry, the title, the
   dates under it. Ongoing entries ("prezent") get a filled dot. */
:is(#despre, #built) .timeline {
  position: relative;
  gap: 44px;
  padding-left: 40px;
}
:is(#despre, #built) .item {
  display: block;
  position: relative;
}
:is(#despre, #built) .item::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 6px;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 2px solid var(--fg);
  background: var(--bg);
  z-index: 1;
}
:is(#despre, #built) .item.ongoing::before {
  background: var(--fg);
}
:is(#despre, #built) .item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: -33px;
  top: 22px;
  bottom: -44px;
  width: 2px;
  background: var(--line);
}
:is(#despre, #built) .item h3 {
  margin: 0;
  font-size: 1.2em;
  line-height: 28px;
}
:is(#despre, #built) .item .when {
  margin: 2px 0 10px;
  color: var(--muted);
  font-size: 0.9em;
  font-weight: 500;
  letter-spacing: 0.01em;
}
:is(#despre, #built) .item p + p:not(.when) {
  margin-top: 10px;
}
:is(#despre, #built) .item .h3-sub {
  font-weight: 400;
  color: var(--muted);
}
:is(#despre, #built) .logos {
  margin-top: 18px;
}
@media (max-width: 720px) {
  :is(#despre, #built) .timeline {
    padding-left: 32px;
  }
  :is(#despre, #built) .item::before {
    left: -32px;
  }
  :is(#despre, #built) .item:not(:last-child)::after {
    left: -25px;
  }
}
/* After a message is sent only the confirmation stays. */
.contact-form.sent > :not(.form-status) {
  display: none;
}
.contact-form .form-status.form-done:focus {
  outline: none;
}
/* The two press expanders sit side by side while they fit. */
.press-block > .press-more {
  display: inline-block;
  vertical-align: top;
  margin-right: 8px;
}
.press-block > .press-more[open] {
  display: block;
}
/* Social cards: the follow button drops under the name when the card gets narrow. */
@media (max-width: 400px) {
  .soc {
    flex-wrap: wrap;
  }
  .soc .follow {
    margin-left: 68px;
  }
}

/* Why Romania (EN): the one dark band on the page, the figure first. */
#why {
  background: var(--fg);
  color: #f2f0ec;
  border-bottom: 0;
  box-shadow: 0 0 0 100vmax var(--fg);
  clip-path: inset(0 -100vmax);
  padding: 64px 0;
}
#why h2 {
  color: #ffffff;
}
#why .grid {
  gap: 32px;
}
#why .card {
  background: transparent;
  border: 0;
  border-top: 2px solid #f2f0ec;
  border-radius: 0;
  padding: 20px 0 0;
  color: #f2f0ec;
}
#why .card .num {
  margin: 0 0 14px;
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #ffffff;
}
#why .card strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff;
}
#why a {
  color: #9ec1ff;
}

/* Phones: the menu stays on one line, the photo comes first and smaller,
   long example text fits the field, and the footer stacks without loose dots. */
@media (max-width: 480px) {
  nav {
    gap: 12px;
    font-size: 0.8em;
  }
  nav .lang {
    padding: 2px 8px;
    gap: 5px;
  }
  nav .lang .long {
    display: none;
  }
  nav .lang .short {
    display: inline;
  }
  /* Photo on the left, kicker and name on the right, the rest full width under them. */
  nav {
    justify-content: center;
  }
  .hero {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 0;
    align-items: center;
  }
  .hero > div {
    display: contents;
  }
  .hero img {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 96px;
    max-width: none;
  }
  .hero .kicker {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0 0 4px;
    font-size: 0.9em;
  }
  .hero h1 {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0;
    font-size: 1.75rem;
  }
  .hero > div > :not(.kicker):not(h1) {
    grid-column: 1 / -1;
  }
  .hero h1 + .lead {
    margin-top: 24px;
  }
  /* Client logos: trimmed versions (the <source> for phones), three per row, same width each, the last row centered. */
  .logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 22px 20px;
  }
  .logos picture {
    display: block;
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: 92px;
  }
  .logos img,
  .logos img.tall,
  .logos img.short {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
  }
  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    font-size: 0.8em;
  }
  footer .sep {
    display: none;
  }
  footer > span,
  footer > a,
  footer > button {
    display: block;
  }
  footer > * + * {
    margin-top: 2px;
  }
}
